Hi Peter, This is v4 of the semihosting changes with your proposed algorithm for finding the largest gap in the various loaded ROMS. The included test is fairly simple but I also did a bit of manual testing with guest-loader and loader stanzas and it seemed to do the right thing. I think this is ready if you are happy with it.
Currently all patches need fresh review and testing given the change from the originally very simple implementation I proposed on v1 ;-) Alex Bennée (2): semihosting/arm-compat: replace heuristic for softmmu SYS_HEAPINFO tests/tcg: port SYS_HEAPINFO to a system test include/hw/loader.h | 16 ++++ hw/core/loader.c | 74 ++++++++++++++++ semihosting/arm-compat-semi.c | 129 +++++++++++++++------------- tests/tcg/aarch64/system/semiheap.c | 74 ++++++++++++++++ 4 files changed, 232 insertions(+), 61 deletions(-) create mode 100644 tests/tcg/aarch64/system/semiheap.c -- 2.20.1