]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/imx25_pdk: Fix error message for invalid RAM size
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 7 Apr 2021 22:56:08 +0000 (00:56 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 May 2021 16:21:54 +0000 (17:21 +0100)
commitf463684fbf859e39fcdbd0327a8bcbe8fbcbfab4
treeea9da60742cd7094288baf9ff63187b9af6f746d
parent2c316f9af4752369ac86be85cd8846d6365e4e68
hw/arm/imx25_pdk: Fix error message for invalid RAM size

The i.MX25 PDK board has 2 banks for SDRAM, each can
address up to 256 MiB. So the total RAM usable for this
board is 512M. When we ask for more we get a misleading
error message:

  $ qemu-system-arm -M imx25-pdk -m 513M
  qemu-system-arm: Invalid RAM size, should be 128 MiB

Update the error message to better match the reality:

  $ qemu-system-arm -M imx25-pdk -m 513M
  qemu-system-arm: RAM size more than 512 MiB is not supported

Fixes: bf350daae02 ("arm/imx25_pdk: drop RAM size fixup")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20210407225608.1882855-1-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/imx25_pdk.c