aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXianglai Li <lixianglai@loongson.cn>2024-06-24 11:33:19 +0800
committerSong Gao <gaosong@loongson.cn>2024-07-19 10:40:04 +0800
commit3ed016f525c8010e66be62d3ca6829eaa9b7cfb5 (patch)
treea2335c619ff224624bdaf21842330f832e78e179
parenta00c22e5052dacb334b5c7865f4edb0035639864 (diff)
downloadqemu-3ed016f525c8010e66be62d3ca6829eaa9b7cfb5.zip
qemu-3ed016f525c8010e66be62d3ca6829eaa9b7cfb5.tar.gz
qemu-3ed016f525c8010e66be62d3ca6829eaa9b7cfb5.tar.bz2
hw/loongarch: Modify flash block size to 256K
loongarch added a common library for edk2 to parse flash base addresses through fdt. For compatibility with other architectures, the flash block size in qemu is now changed to 256k. Signed-off-by: Xianglai Li <lixianglai@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Message-Id: <20240624033319.999631-1-lixianglai@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
-rw-r--r--include/hw/loongarch/virt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h
index 8fdfacf..603c1ce 100644
--- a/include/hw/loongarch/virt.h
+++ b/include/hw/loongarch/virt.h
@@ -20,7 +20,7 @@
#define VIRT_FWCFG_BASE 0x1e020000UL
#define VIRT_BIOS_BASE 0x1c000000UL
#define VIRT_BIOS_SIZE (16 * MiB)
-#define VIRT_FLASH_SECTOR_SIZE (128 * KiB)
+#define VIRT_FLASH_SECTOR_SIZE (256 * KiB)
#define VIRT_FLASH0_BASE VIRT_BIOS_BASE
#define VIRT_FLASH0_SIZE VIRT_BIOS_SIZE
#define VIRT_FLASH1_BASE 0x1d000000UL