Skip to contentSkip to conversation

hw/pc: Support system flash memory with -pflash parameter

PATCH Superseded [email protected] 1 participant 1 message Mar 14, 2011

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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
index 323fafb..ed1e364 100644
@@ -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
index eff26d2..21223b8 100644
@@ -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