aboutsummaryrefslogtreecommitdiff
path: root/semihosting/arm-compat-semi.c
diff options
context:
space:
mode:
Diffstat (limited to 'semihosting/arm-compat-semi.c')
-rw-r--r--semihosting/arm-compat-semi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c
index 9bd1421c48..56595cf7b7 100644
--- a/semihosting/arm-compat-semi.c
+++ b/semihosting/arm-compat-semi.c
@@ -37,6 +37,7 @@
#include "semihosting/console.h"
#include "semihosting/common-semi.h"
#include "qemu/timer.h"
+#include "qemu/units.h"
#ifdef CONFIG_USER_ONLY
#include "qemu.h"
@@ -193,6 +194,10 @@ static LayoutInfo common_semi_find_bases(CPUState *cs)
fv = address_space_to_flatview(cs->as);
flatview_for_each_range(fv, find_ram_cb, &info);
+ /* Gross hack -- hardcode an547 values: this is SRAM2*/
+ info.rambase = 0x21000000;
+ info.ramsize = 4 * MiB;
+
/*
* If we have found the RAM lets iterate through the ROM blobs to
* workout the best place for the remainder of RAM and split it