As discussed earlier this year, the lm32-sys device is a hack. Therefore, this patchset adds semihosting support for the lm32 target and make the tcg tests use it. The last patch finally removes the lm32-sys device.
If no one has any comments or objections, i'll post a pull request in a few days. Michael Walle (4): test: lm32: make test cases independent target-lm32: add semihosting support test: lm32: use semihosting for testing lm32: remove lm32_sys hw/misc/Makefile.objs | 1 - hw/misc/lm32_sys.c | 180 ------------------------------------ qemu-options.hx | 3 +- target-lm32/Makefile.objs | 1 + target-lm32/README | 15 ++- target-lm32/helper.h | 1 + target-lm32/lm32-semi.c | 212 +++++++++++++++++++++++++++++++++++++++++++ target-lm32/translate.c | 19 +++- tests/tcg/lm32/Makefile | 15 +-- tests/tcg/lm32/crt.S | 4 +- tests/tcg/lm32/helper.S | 65 +++++++++++++ tests/tcg/lm32/macros.inc | 37 +++++--- tests/tcg/lm32/test_lb.S | 4 + tests/tcg/lm32/test_lbu.S | 4 + tests/tcg/lm32/test_lh.S | 4 + tests/tcg/lm32/test_lhu.S | 4 + tests/tcg/lm32/test_lw.S | 2 + tests/tcg/lm32/test_sb.S | 2 + tests/tcg/lm32/test_scall.S | 4 + tests/tcg/lm32/test_sh.S | 2 + tests/tcg/lm32/test_sw.S | 3 + trace-events | 3 - 22 files changed, 367 insertions(+), 218 deletions(-) delete mode 100644 hw/misc/lm32_sys.c create mode 100644 target-lm32/lm32-semi.c create mode 100644 tests/tcg/lm32/helper.S -- 1.7.10.4
