]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Move gdbstub related code out of helper.c
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 21 Sep 2021 16:28:59 +0000 (17:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Sep 2021 12:42:10 +0000 (13:42 +0100)
commit89f4f20e276e6e5dc08fca5e75e2bfbd92280072
tree59042b6ca35bd7a587b00aeb2dcd515651880711
parentd59b7cdccc6558f126c3081f7582131029c35660
target/arm: Move gdbstub related code out of helper.c

Currently helper.c includes some code which is part of the arm
target's gdbstub support.  This code has a better home: in gdbstub.c
and gdbstub64.c.  Move it there.

Because aarch64_fpu_gdb_get_reg() and aarch64_fpu_gdb_set_reg() move
into gdbstub64.c, this means that they're now compiled only for
TARGET_AARCH64 rather than always.  That is the only case when they
would ever be used, but it does mean that the ifdef in
arm_cpu_register_gdb_regs_for_features() needs to be adjusted to
match.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210921162901.17508-4-peter.maydell@linaro.org
target/arm/gdbstub.c
target/arm/gdbstub64.c
target/arm/helper.c
target/arm/internals.h