]> www.infradead.org Git - qemu-nvme.git/commitdiff
semihosting: Move include/hw/semihosting/ -> include/semihosting/
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 5 Mar 2021 13:54:49 +0000 (13:54 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 10 Mar 2021 15:34:12 +0000 (15:34 +0000)
We want to move the semihosting code out of hw/ in the next patch.

This patch contains the mechanical steps, created using:

  $ git mv include/hw/semihosting/ include/
  $ sed -i s,hw/semihosting,semihosting, $(git grep -l hw/semihosting)

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210226131356.3964782-2-f4bug@amsat.org>
Message-Id: <20210305135451.15427-2-alex.bennee@linaro.org>

28 files changed:
MAINTAINERS
gdbstub.c
hw/mips/malta.c
hw/semihosting/arm-compat-semi.c
hw/semihosting/config.c
hw/semihosting/console.c
include/semihosting/console.h [moved from include/hw/semihosting/console.h with 100% similarity]
include/semihosting/semihost.h [moved from include/hw/semihosting/semihost.h with 100% similarity]
linux-user/aarch64/cpu_loop.c
linux-user/arm/cpu_loop.c
linux-user/riscv/cpu_loop.c
linux-user/semihost.c
softmmu/vl.c
stubs/semihost.c
target/arm/helper.c
target/arm/m_helper.c
target/arm/translate-a64.c
target/arm/translate.c
target/lm32/helper.c
target/m68k/op_helper.c
target/mips/cpu.c
target/mips/mips-semi.c
target/mips/translate.c
target/nios2/helper.c
target/riscv/cpu_helper.c
target/unicore32/helper.c
target/xtensa/translate.c
target/xtensa/xtensa-semi.c

index ea200aae1d5f7bf4f1894da5fd4f782b5d4f268a..c5ff881892ec43051b1355fddedb1e4aa29300f0 100644 (file)
@@ -3250,7 +3250,7 @@ Semihosting
 M: Alex Bennée <alex.bennee@linaro.org>
 S: Maintained
 F: hw/semihosting/
-F: include/hw/semihosting/
+F: include/semihosting/
 
 Multi-process QEMU
 M: Elena Ufimtseva <elena.ufimtseva@oracle.com>
index 16d7c8f534fa39823f02ddddcad75f1d085122a1..7a4cc0758443229f3f25d604ecbe7085c9895536 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -49,7 +49,7 @@
 #include "sysemu/hw_accel.h"
 #include "sysemu/kvm.h"
 #include "sysemu/runstate.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "exec/exec-all.h"
 #include "sysemu/replay.h"
 
index 9afc0b427bf7bc22a0bd00fd716b9e1ee6afb421..26e7b1bd9f6428280e21442b0772a9d35d5185fe 100644 (file)
@@ -58,7 +58,7 @@
 #include "qemu/error-report.h"
 #include "hw/misc/empty_slot.h"
 #include "sysemu/kvm.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "hw/mips/cps.h"
 #include "hw/qdev-clock.h"
 
index 23c6e3edcb6646e383676f996aed69ead335a34f..94950b6c56d94863e3a98e0106386f80d6e9aba7 100644 (file)
@@ -34,9 +34,9 @@
 #include "qemu/osdep.h"
 
 #include "cpu.h"
-#include "hw/semihosting/semihost.h"
-#include "hw/semihosting/console.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/semihost.h"
+#include "semihosting/console.h"
+#include "semihosting/common-semi.h"
 #include "qemu/log.h"
 #include "qemu/timer.h"
 #ifdef CONFIG_USER_ONLY
index 9807f10cb004ba9991b693365b617463678b47fb..3548e0f627f49546dfae9f04d648dac9ba0955bb 100644 (file)
@@ -22,7 +22,7 @@
 #include "qemu/option.h"
 #include "qemu/config-file.h"
 #include "qemu/error-report.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "chardev/char.h"
 #include "sysemu/sysemu.h"
 
index 9b4fee92602c6b1e2321ccfe327bb023178f918d..c9ebd6fdd053b12874329c84678d3fc14919f65b 100644 (file)
@@ -17,8 +17,8 @@
 
 #include "qemu/osdep.h"
 #include "cpu.h"
-#include "hw/semihosting/semihost.h"
-#include "hw/semihosting/console.h"
+#include "semihosting/semihost.h"
+#include "semihosting/console.h"
 #include "exec/gdbstub.h"
 #include "exec/exec-all.h"
 #include "qemu/log.h"
index 7c42f657068593d4c85fda802f48d4bc66db9b73..ee72a1c20f067b556291ce1112b8900dd944f806 100644 (file)
@@ -22,7 +22,7 @@
 #include "qemu.h"
 #include "cpu_loop-common.h"
 #include "qemu/guest-random.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/common-semi.h"
 #include "target/arm/syndrome.h"
 
 #define get_user_code_u32(x, gaddr, env)                \
index cadfb7fa43978f9691f5ce479cdbc3b98e212861..989d03cd89d8991f18611a807498b954881ee483 100644 (file)
@@ -22,7 +22,7 @@
 #include "qemu.h"
 #include "elf.h"
 #include "cpu_loop-common.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/common-semi.h"
 
 #define get_user_code_u32(x, gaddr, env)                \
     ({ abi_long __r = get_user_u32((x), (gaddr));       \
index 9665dabb096f6956e88c23dc6e0ed1eea7b93739..6767f941e8f2be57a427a44b621223b4043c3d1e 100644 (file)
@@ -23,7 +23,7 @@
 #include "qemu.h"
 #include "cpu_loop-common.h"
 #include "elf.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/common-semi.h"
 
 void cpu_loop(CPURISCVState *env)
 {
index c0015ee7f6c059c5ebfccc1cef10502c27498703..82013b8b48bd90ddf8e2ab71d3b8110d4b358cd1 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "qemu/osdep.h"
 #include "cpu.h"
-#include "hw/semihosting/console.h"
+#include "semihosting/console.h"
 #include "qemu.h"
 #include <termios.h>
 
index ff488ea3e7db3e86bc7fda82db05cd58211eb750..b7673b96134dd6878465c7edb2eb9407d68f6946 100644 (file)
 #include "qapi/opts-visitor.h"
 #include "qapi/clone-visitor.h"
 #include "qom/object_interfaces.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "crypto/init.h"
 #include "sysemu/replay.h"
 #include "qapi/qapi-events-run-state.h"
index 1d8b37f7b2f68d93f2a40faf8fd396308bda653b..1b30f38b03d1a39291a67d18a5474b10e880228e 100644 (file)
@@ -11,7 +11,7 @@
 #include "qemu/osdep.h"
 #include "qemu/option.h"
 #include "qemu/error-report.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "sysemu/sysemu.h"
 
 /* Empty config */
index 904b0927cd227bab2222286df80a51aefb678b81..d9220be7c5a06b98ff57e7bb297109bb5d2c16b3 100644 (file)
@@ -22,7 +22,7 @@
 #include "exec/exec-all.h"
 #include <zlib.h> /* For crc32 */
 #include "hw/irq.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "sysemu/cpus.h"
 #include "sysemu/cpu-timers.h"
 #include "sysemu/kvm.h"
@@ -34,7 +34,7 @@
 #ifdef CONFIG_TCG
 #include "arm_ldst.h"
 #include "exec/cpu_ldst.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/common-semi.h"
 #endif
 
 #define ARM_CPU_FREQ 1000000000 /* FIXME: 1 GHz, should be configurable */
index 731c435c00b350d6d53de603f6cc021b8414cd01..d63ae465e1e73e8910fd9e72496b20df2f3e85de 100644 (file)
@@ -21,7 +21,7 @@
 #include "qemu/qemu-print.h"
 #include "exec/exec-all.h"
 #include <zlib.h> /* For crc32 */
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "sysemu/cpus.h"
 #include "sysemu/kvm.h"
 #include "qemu/range.h"
@@ -31,7 +31,7 @@
 #ifdef CONFIG_TCG
 #include "arm_ldst.h"
 #include "exec/cpu_ldst.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/common-semi.h"
 #endif
 
 static void v7m_msr_xpsr(CPUARMState *env, uint32_t mask,
index b591f096dfab705e1c600576e30e16c03485bcae..0b42e53500e2a7544d10d72ddef0c828452199c4 100644 (file)
@@ -28,7 +28,7 @@
 #include "internals.h"
 #include "qemu/host-utils.h"
 
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "exec/gen-icount.h"
 
 #include "exec/helper-proto.h"
index 1653cca1aaafb408b374f7c075a56dfc710ae191..62b1c2081b68c3dfb104cab0b313ff1d92951719 100644 (file)
@@ -29,7 +29,7 @@
 #include "qemu/log.h"
 #include "qemu/bitops.h"
 #include "arm_ldst.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
index 7c52ae76d6dcceae1b84cd0a847a68df00c9f1c8..01cc3c53a50971fb6abd979c31aa5c10b7894e9c 100644 (file)
@@ -21,7 +21,7 @@
 #include "cpu.h"
 #include "exec/exec-all.h"
 #include "qemu/host-utils.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "exec/log.h"
 
 bool lm32_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
index 202498deb51af5683f770d6a0f6ba0abb39ab4ed..730cdf77444599c63b6b261808c75e92b72443d5 100644 (file)
@@ -21,7 +21,7 @@
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
 #include "exec/cpu_ldst.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 
 #if defined(CONFIG_USER_ONLY)
 
index bf70c77295f6309e402644daf355526502ce6660..bd4dca571fc0af12141b4f441e0eed54ad53aa29 100644 (file)
@@ -31,7 +31,7 @@
 #include "exec/exec-all.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-clock.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "qapi/qapi-commands-machine-target.h"
 #include "fpu_helper.h"
 
index 898251aa0233f3c7dd3438d0aade1d33b9e11fbf..6de60fa6dd7b71ff4b5b6b34641b16bfdb0c175f 100644 (file)
@@ -22,8 +22,8 @@
 #include "qemu/log.h"
 #include "exec/helper-proto.h"
 #include "exec/softmmu-semi.h"
-#include "hw/semihosting/semihost.h"
-#include "hw/semihosting/console.h"
+#include "semihosting/semihost.h"
+#include "semihosting/console.h"
 
 typedef enum UHIOp {
     UHI_exit = 1,
index 70891c37cdd4b739ebf17bf15f91122a4ccbaabc..0b6d82d228ecb6aec1d1e38abf979744151460b2 100644 (file)
@@ -29,7 +29,7 @@
 #include "exec/translator.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-gen.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 
 #include "target/mips/trace.h"
 #include "trace-tcg.h"
index 57c97bde3c6724a54dd9650177ec1e154f63cc4b..53be8398e99d1114c588df8c0e31a41b3631051f 100644 (file)
@@ -26,7 +26,7 @@
 #include "exec/cpu_ldst.h"
 #include "exec/log.h"
 #include "exec/helper-proto.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 
 #if defined(CONFIG_USER_ONLY)
 
index 2f43939fb6d4472bd6251b5731d981690e61dc8e..83a6bcfad08df1175866fb72cb34512691bcb53b 100644 (file)
@@ -24,7 +24,7 @@
 #include "exec/exec-all.h"
 #include "tcg/tcg-op.h"
 #include "trace.h"
-#include "hw/semihosting/common-semi.h"
+#include "semihosting/common-semi.h"
 
 int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch)
 {
index 54c26871feab098808f14a6332acb2dd9020c969..704393c27f991d9fbce7d8867a0128c66b6a438b 100644 (file)
@@ -14,7 +14,7 @@
 #include "cpu.h"
 #include "exec/exec-all.h"
 #include "exec/helper-proto.h"
-#include "hw/semihosting/console.h"
+#include "semihosting/console.h"
 
 #undef DEBUG_UC32
 
index 944a157747cdd7300c22274f2b2bcb6511ce5931..0ae4efc48a1750fe80bc95aa13a35012d90e94bd 100644 (file)
@@ -37,7 +37,7 @@
 #include "qemu/log.h"
 #include "qemu/qemu-print.h"
 #include "exec/cpu_ldst.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "exec/translator.h"
 
 #include "exec/helper-proto.h"
index 25f57a6500cec5b9676a8a5b214462a3918077dc..79f2b043f2334c6fbb7b440fd7f78f5dbc308809 100644 (file)
@@ -29,7 +29,7 @@
 #include "cpu.h"
 #include "chardev/char-fe.h"
 #include "exec/helper-proto.h"
-#include "hw/semihosting/semihost.h"
+#include "semihosting/semihost.h"
 #include "qapi/error.h"
 #include "qemu/log.h"