@@ -45,6 +45,7 @@
#define LMB_BRAM_SIZE (128 * KiB)
#define FLASH_SIZE (32 * MiB)
+#define FLASH_SECTOR_SIZE (64 * KiB)
#define BINARY_DEVICE_TREE_FILE "petalogix-ml605.dtb"
@@ -107,7 +108,7 @@ petalogix_ml605_init(MachineState *machine)
* 10th paremeter 0 means little-endian */
pflash_cfi01_register(FLASH_BASEADDR, "petalogix_ml605.flash", FLASH_SIZE,
dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
- 64 * KiB, 2, 0x89, 0x18, 0x0000, 0x0, 0);
+ FLASH_SECTOR_SIZE, 2, 0x89, 0x18, 0x0000, 0x0, 0);
dev = qdev_new("xlnx.xps-intc");
@@ -40,6 +40,7 @@
#define LMB_BRAM_SIZE (128 * KiB)
#define FLASH_SIZE (16 * MiB)
+#define FLASH_SECTOR_SIZE (64 * KiB)
#define BINARY_DEVICE_TREE_FILE "petalogix-s3adsp1800.dtb"
@@ -87,7 +88,7 @@ petalogix_s3adsp1800_init(MachineState *machine)
pflash_cfi01_register(FLASH_BASEADDR,
"petalogix_s3adsp1800.flash", FLASH_SIZE,
dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
- 64 * KiB, 1, 0x89, 0x18, 0x0000, 0x0, 1);
+ FLASH_SECTOR_SIZE, 1, 0x89, 0x18, 0x0000, 0x0, 1);
dev = qdev_new("xlnx.xps-intc");
qdev_prop_set_uint32(dev, "kind-of-intr",
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/microblaze/petalogix_ml605_mmu.c | 3 ++- hw/microblaze/petalogix_s3adsp1800_mmu.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)