Re: Emulated macppc with qemu

Jason Thorpe <[email protected]> Mon, 5 Apr 2021 10:16:00 -0700
Newsgroups gmane.os.netbsd.ports.macppc
Message-ID <[email protected]>
> On Apr 5, 2021, at 9:30 AM, Michael <[email protected]> wrote:
> 
> This caught my eye a bit late, but...
> How is >2GB RAM supposed to work on even an emulated 32bit macppc?
> The address space is divided up by hardware into 0x0 - 0x7fffffff for
> RAM, and above that lives PCI space, various onboard devices and
> firmware ROMs. If you map extra RAM into this range NetBSD will need
> adjustments since we BAT-map most of this space 1:1.
> That said, it shouldn't be hard to get this working, just have to pay
> more attention when entering BAT mappings, and the RAM counting code
> may ignore areas above 0x80000000.

Right, this is what I meant in my previous message.  The physical memory map on G4 Macs doesn't have room for more than 2G of RAM.

Mark -- it might be a good idea to place a limit of 2G in the 32-bit Mac emulation.

-- thorpej