configure | 7 +-
Makefile | 46 +-
default-configs/devices/arm-softmmu.mak | 1 +
default-configs/devices/riscv32-softmmu.mak | 2 +
default-configs/devices/riscv64-softmmu.mak | 2 +
default-configs/targets/aarch64-linux-user.mak | 1 +
default-configs/targets/aarch64_be-linux-user.mak | 1 +
default-configs/targets/arm-linux-user.mak | 1 +
default-configs/targets/armeb-linux-user.mak | 1 +
default-configs/targets/riscv32-linux-user.mak | 1 +
default-configs/targets/riscv64-linux-user.mak | 1 +
hw/semihosting/common-semi.h | 39 ++
include/exec/gdbstub.h | 14 +-
include/qemu/timer.h | 2 +
linux-user/qemu.h | 4 +-
target/arm/cpu.h | 8 -
target/riscv/cpu_bits.h | 1 +
bsd-user/syscall.c | 6 +-
gdbstub.c | 65 ++-
.../arm-semi.c => hw/semihosting/arm-compat-semi.c | 525 ++++++++++++++-------
linux-user/aarch64/cpu_loop.c | 3 +-
linux-user/arm/cpu_loop.c | 3 +-
linux-user/exit.c | 2 +-
linux-user/riscv/cpu_loop.c | 5 +
linux-user/{arm => }/semihost.c | 8 +-
softmmu/runstate.c | 2 +-
stubs/yank.c | 29 ++
target/arm/gdbstub.c | 75 ++-
target/arm/helper.c | 7 +-
target/arm/m_helper.c | 7 +-
target/m68k/m68k-semi.c | 2 +-
target/nios2/nios2-semi.c | 2 +-
target/riscv/cpu_helper.c | 10 +
target/riscv/translate.c | 11 +
util/qemu-timer-common.c | 4 +
target/riscv/insn_trans/trans_privileged.c.inc | 37 +-
.gitignore | 3 +
.gitlab-ci.yml | 30 +-
.shippable.yml | 14 +-
.travis.yml | 25 -
MAINTAINERS | 2 +
hw/semihosting/Kconfig | 4 +
hw/semihosting/meson.build | 3 +
linux-user/arm/meson.build | 3 -
linux-user/meson.build | 1 +
qemu-options.hx | 10 +-
scripts/checkpatch.pl | 2 +-
stubs/meson.build | 1 +
target/arm/meson.build | 2 -
tests/docker/Makefile.include | 1 -
tests/docker/docker.py | 4 +-
tests/docker/dockerfiles/debian-amd64.docker | 5 +-
tests/guest-debug/run-test.py | 35 +-
tests/tcg/aarch64/Makefile.softmmu-target | 1 +
tests/tcg/aarch64/gdbstub/test-sve-ioctl.py | 11 +
tests/tcg/aarch64/system/boot.S | 1 +
tests/tcg/i386/Makefile.softmmu-target | 1 +
tests/tcg/i386/system/boot.S | 2 +-
tests/tcg/multiarch/Makefile.target | 13 +-
tests/tcg/multiarch/gdbstub/memory.py | 130 +++++
.../tcg/multiarch/gdbstub/test-qxfer-auxv-read.py | 57 +++
tests/tcg/multiarch/system/Makefile.softmmu-target | 19 +-
tests/tcg/x86_64/Makefile.softmmu-target | 1 +
tests/tcg/x86_64/system/boot.S | 2 +-
64 files changed, 982 insertions(+), 336 deletions(-)
create mode 100644 hw/semihosting/common-semi.h
rename target/arm/arm-semi.c => hw/semihosting/arm-compat-semi.c (66%)
rename linux-user/{arm => }/semihost.c (89%)
create mode 100644 stubs/yank.c
create mode 100644 tests/tcg/multiarch/gdbstub/memory.py
create mode 100644 tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py