Hi, Hopefully the final revision, instead of hacking about args to reverted to the orignal code (with minor tweaks for args). Still based on my in-flight PR:
pull-testing-docs-xen-updates-080321-1 which already moves the semihosting code out of hw/. Please review: - tests/tcg: add HeapInfo checking to semihosting test - semihosting/arm-compat-semi: deref parameter register for SYS_HEAPINFO - semihosting/arm-compat-semi: unify GET/SET_ARG helpers - semihosting: move semihosting tests to multiarch Alex Bennée (4): semihosting: move semihosting tests to multiarch semihosting/arm-compat-semi: unify GET/SET_ARG helpers semihosting/arm-compat-semi: don't use SET_ARG to report SYS_HEAPINFO tests/tcg: add HeapInfo checking to semihosting test tests/tcg/aarch64/semicall.h | 18 ++++++ tests/tcg/arm/semicall.h | 15 +---- tests/tcg/riscv64/semicall.h | 22 +++++++ semihosting/arm-compat-semi.c | 62 +++++++------------ tests/tcg/arm/semihosting.c | 26 -------- .../arm-compat-semi}/semiconsole.c | 2 + .../multiarch/arm-compat-semi/semihosting.c | 62 +++++++++++++++++++ tests/tcg/Makefile.target | 3 + tests/tcg/aarch64/Makefile.target | 18 ------ tests/tcg/arm/Makefile.target | 16 +---- tests/tcg/multiarch/Makefile.target | 31 ++++++++++ 11 files changed, 165 insertions(+), 110 deletions(-) create mode 100644 tests/tcg/aarch64/semicall.h create mode 100644 tests/tcg/riscv64/semicall.h delete mode 100644 tests/tcg/arm/semihosting.c rename tests/tcg/{arm => multiarch/arm-compat-semi}/semiconsole.c (93%) create mode 100644 tests/tcg/multiarch/arm-compat-semi/semihosting.c -- 2.20.1