aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-06-18 11:21:43 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-06-18 11:21:43 +0100
commitf721eed604e0f266c9c5067d30533704075aa69c (patch)
tree11597c8fac9fd56d2c432526cb8689a2a635ac99
parent8f33be3cb87b9e967ba902959918629745186a9a (diff)
downloadqemu-arm-fpcxt-ns-fix.tar.gz
Nobble HEAPINFO for an547fpcxt-ns-fix
-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