Re: [PATCH v2 4/4] tests/tcg: add HeapInfo checking to semihosting test

2021-03-09 Thread Keith Packard via
Alex Bennée writes: > +asprintf(&heap_info, "heap: %p -> %p\n", info.heap_base, > info.heap_limit); > +__semi_call(SYS_WRITE0, (uintptr_t) heap_info); > +if (info.heap_base != brk) { That requires qemu to know a lot about the run-time environment, which it rarely does in my experien

[PATCH v2 4/4] tests/tcg: add HeapInfo checking to semihosting test

2021-03-09 Thread Alex Bennée
Query the SYS_HEAPINFO semicall and do some basic verification of the information via libc calls. Signed-off-by: Alex Bennée --- .../multiarch/arm-compat-semi/semihosting.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/tests/tcg/multiarch/arm-compat-se