summaryrefslogtreecommitdiffstats
path: root/hw/ppc/mpc8544ds.c
diff options
context:
space:
mode:
authorAlexander Graf2014-11-12 22:35:33 +0100
committerAlexander Graf2015-01-07 16:16:24 +0100
commit44045ce9740945056a58ecb53d2af9ae00083632 (patch)
treeabc7323f89f87a83ef49c6da2c148c946adc17b5 /hw/ppc/mpc8544ds.c
parentPPC: e500: Move CCSR and MMIO space to upper end of address space (diff)
downloadqemu-44045ce9740945056a58ecb53d2af9ae00083632.tar.gz
qemu-44045ce9740945056a58ecb53d2af9ae00083632.tar.xz
qemu-44045ce9740945056a58ecb53d2af9ae00083632.zip
PPC: mpc8554ds: Tell user about exceeding RAM limits
The mpc8544ds board only supports up to 3GB of RAM due to its limited address space. When the user requests more, abort and tell him that he should use less. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/mpc8544ds.c')
-rw-r--r--hw/ppc/mpc8544ds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ppc/mpc8544ds.c b/hw/ppc/mpc8544ds.c
index f13163308e..fb74b3ff80 100644
--- a/hw/ppc/mpc8544ds.c
+++ b/hw/ppc/mpc8544ds.c
@@ -15,6 +15,7 @@
#include "hw/boards.h"
#include "sysemu/device_tree.h"
#include "hw/ppc/openpic.h"
+#include "qemu/error-report.h"
static void mpc8544ds_fixup_devtree(PPCE500Params *params, void *fdt)
{
@@ -38,6 +39,11 @@ static void mpc8544ds_init(MachineState *machine)
.spin_base = 0xEF000000ULL,
};
+ if (machine->ram_size > 0xc0000000) {
+ error_report("The MPC8544DS board only supports up to 3GB of RAM");
+ exit(1);
+ }
+
ppce500_init(machine, &params);
}