target/arm: Restrict semi-hosting to TCG
commit91f78c58da9ba78c8ed00f5d822b701765be8499
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 4 Jul 2019 16:14:43 +0000 (4 17:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 4 Jul 2019 16:14:43 +0000 (4 17:14 +0100)
tree20d51e99146ef79f6e977fd01eb4a69eb01bff12
parent9dd5cca42448770a940fa2145f1ff18cdc7b01a9
target/arm: Restrict semi-hosting to TCG

Per Peter Maydell:

  Semihosting hooks either SVC or HLT instructions, and inside KVM
  both of those go to EL1, ie to the guest, and can't be trapped to
  KVM.

Let check_for_semihosting() return False when not running on TCG.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190701194942.10092-3-philmd@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/Makefile.objs
target/arm/cpu.h
target/arm/helper.c