hw/ppc/mac_newworld: Restrict RAM to 2 GiB
commit03b3542ac93cb196bf6a6d85e92fa68a894f5256
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 6 Apr 2021 08:48:42 +0000 (6 10:48 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 May 2021 01:41:24 +0000 (4 11:41 +1000)
tree35b2d05039de5fb29f4acaeded24b87ac0ffcdf5
parent15106f7dc3290ff3254611f265849a314a93eb0e
hw/ppc/mac_newworld: Restrict RAM to 2 GiB

On Mac99 and newer machines, the Uninorth PCI host bridge maps
the PCI hole region at 2GiB, so the RAM area beside 2GiB is not
accessible by the CPU. Restrict the memory to 2GiB to avoid
problems such the one reported in the buglink.

Buglink: https://bugs.launchpad.net/qemu/+bug/1922391
Reported-by: Håvard Eidnes <he@NetBSD.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210406084842.2859664-1-f4bug@amsat.org>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/mac_newworld.c