hw/pc: Support system flash memory with -pflash parameter
PATCH 1/1 hw/pc: Support system flash memory with -pflash parameter
From: Jordan Justen <[email protected]>
When -pflash is specified, it will be mapped just below the system rom (wjust below 4GB).
If -pflash is specified on the command line, but -bios is not specified, then 'bios.bin' will NOT be loaded, and instead the -pflash flash image will be mapped just below 4GB in place of the normal rom image.
--- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/pc.c | 155 +++++++++++++++++++++++++++--------- 3 files changed, 119 insertions(+), 38 deletions(-)
default-configs/i386-softmmu.mak +1 -0
@@ -18,3 +18,4 @@ CONFIG_IDE_PIIX=y CONFIG_NE2000_ISA=y CONFIG_PIIX_PCI=y CONFIG_SOUND=y +CONFIG_PFLASH_CFI01=y
default-configs/x86_64-softmmu.mak +1 -0
@@ -18,3 +18,4 @@ CONFIG_IDE_PIIX=y CONFIG_NE2000_ISA=y CONFIG_PIIX_PCI=y CONFIG_SOUND=y +CONFIG_PFLASH_CFI01=y
hw/pc.c +117 -38
184 lines not on this page · raw message
Signature · 1 line
1.7.1