Skip to content

Commit 3ed016f

Browse files
lixianglaigaosong-loongson
authored andcommitted
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 <[email protected]> Reviewed-by: Song Gao <[email protected]> Message-Id: <[email protected]> Signed-off-by: Song Gao <[email protected]>
1 parent a00c22e commit 3ed016f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/hw/loongarch/virt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define VIRT_FWCFG_BASE 0x1e020000UL
2121
#define VIRT_BIOS_BASE 0x1c000000UL
2222
#define VIRT_BIOS_SIZE (16 * MiB)
23-
#define VIRT_FLASH_SECTOR_SIZE (128 * KiB)
23+
#define VIRT_FLASH_SECTOR_SIZE (256 * KiB)
2424
#define VIRT_FLASH0_BASE VIRT_BIOS_BASE
2525
#define VIRT_FLASH0_SIZE VIRT_BIOS_SIZE
2626
#define VIRT_FLASH1_BASE 0x1d000000UL

0 commit comments

Comments
 (0)