]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/hppa/machine: Allow up to 3840 MB total memory
authorHelge Deller <deller@gmx.de>
Sun, 31 Dec 2023 08:36:58 +0000 (09:36 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 17 Jan 2024 07:32:47 +0000 (10:32 +0300)
commitde64580f07fa4901fccc349c7f51e0e9c9e2951d
tree4ff91534b8121375bf4cf432991763d39836cb5d
parent35623388b03c6c46598be61ef8d5f901c815ed7a
hw/hppa/machine: Allow up to 3840 MB total memory

The physical hardware allows DIMMs of 4 MB size and above, allowing up
to 3840 MB of memory, but is restricted by setup code to 3 GB.
Increase the limit to allow up to the maximum amount of memory.

Btw. the memory area from 0xf000.0000 to 0xffff.ffff is reserved by
the architecture for firmware and I/O memory and can not be used for
standard memory.

An upcoming 64-bit SeaBIOS-hppa firmware will allow more than 3.75GB
on 64-bit HPPA64. In this case the ram_max for the pa20 case will change.

Signed-off-by: Helge Deller <deller@gmx.de>
Noticed-by: Nelson H. F. Beebe <beebe@math.utah.edu>
Fixes: b7746b1194c8 ("hw/hppa/machine: Restrict the total memory size to 3GB")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Bruno Haible <bruno@clisp.org>
(cherry picked from commit 92039f61af89629f268e04255946c2a3fa0c453f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/hppa/machine.c