mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
ppc4xx: correct SDRAM controller warning message condition
The message "Truncating memory to %d MiB to fit SDRAM controller limits" should be displayed only when a user chooses an amount of RAM which can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which would only be valid if the controller supports a bank size of 1MB). Signed-off-by: Hollis Blanchard <hollis@penguinppc.org>
This commit is contained in:
parent
52ba784d35
commit
d23ab92064
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@ ram_addr_t ppc4xx_sdram_adjust(ram_addr_t ram_size, int nr_banks,
|
|||
}
|
||||
|
||||
ram_size -= size_left;
|
||||
if (ram_size)
|
||||
if (size_left)
|
||||
printf("Truncating memory to %d MiB to fit SDRAM controller limits.\n",
|
||||
(int)(ram_size >> 20));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue