diff mbox

[02/18] ppc_prep: convert to memory API

Message ID 4F05C27F.5010505@suse.de
State New
Headers show

Commit Message

Andreas Färber Jan. 5, 2012, 3:32 p.m. UTC
Am 05.01.2012 15:57, schrieb Avi Kivity:
> On 01/05/2012 04:45 PM, Andreas Färber wrote:
>> Am 17.10.2011 16:02, schrieb Avi Kivity:
>>> Signed-off-by: Avi Kivity <avi@redhat.com>
>>
>> This one originally broke the prep machine:
>>
> 
> Instructions on how to reproduce, please.

ppc-softmmu/qemu-system-ppc -M prep

plus by now:



My current theory is that bios_addr and bios_size are insufficient for
the MemoryRegion - binary ppc_rom.bin is 524.3 KB only and may be trying
to relocate parts of itself to the exception vectors, so we may need to
use a fixed size of 1 MB and location 0xfff00000 for the MemoryRegion.
Checking...

Andreas
diff mbox

Patch

diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 2d67d1f..e3fe023 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -66,7 +66,7 @@ 
 #define TARGET_PAGE_BITS 12
 #endif /* defined(TARGET_PPCEMB) */

-#define TARGET_PHYS_ADDR_SPACE_BITS 36
+#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #define TARGET_VIRT_ADDR_SPACE_BITS 32

 #endif /* defined (TARGET_PPC64) */