From f721eed604e0f266c9c5067d30533704075aa69c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 18 Jun 2021 11:21:43 +0100 Subject: Nobble HEAPINFO for an547 --- semihosting/arm-compat-semi.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3