When I build a 1024-kB Coreboot image (emulation/qemu-x86 mainboard), qemu goes into a loop, resetting just after the "Jumping to boot code" message. This can be avoided by removing the "| IO_MEM_ROM" from the call to cpu_register_physical_memory(0x100000 - isa_bios_size, ...) call in pc_memory_init().
The next problem I hit is the complaint "ERROR: No valid CBFS header found! Maybe the ROM isn't entirely mapped yet?". I can work around this by allocating a separate chunk of RAM for the top 128 kB of the BIOS image in ISA space and copying it rather than mapping it from the full ROM image.
Both of these changes are the result of random hacking rather than any real understanding of the issues involved. I'd appreciate any better ideas.
Signed-off-by: Ed Swierk eswierk@aristanetworks.com --- hw/pc.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)