OSDN Git Service

gdbstub: move register helpers into standalone include
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 3 Mar 2023 02:57:56 +0000 (18:57 -0800)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 7 Mar 2023 20:44:08 +0000 (20:44 +0000)
commit4ea5fe997db4c5d893b69072f488880c07857a54
tree8a1b3ff28c3fae82f1b62224619a2f1ead68bcfa
parent379b42e8b7681ebea45cde4af8ffd1694f98949d
gdbstub: move register helpers into standalone include

These inline helpers are all used by target specific code so move them
out of the general header so we don't needlessly pollute the rest of
the API with target specific stuff.

Note we have to include cpu.h in semihosting as it was relying on a
side effect before.

Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230302190846.2593720-21-alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-21-richard.henderson@linaro.org>
48 files changed:
include/exec/gdbstub.h
include/gdbstub/helpers.h [new file with mode: 0644]
semihosting/syscalls.c
target/alpha/gdbstub.c
target/arm/gdbstub.c
target/arm/gdbstub64.c
target/arm/tcg/helper-a64.c
target/arm/tcg/m_helper.c
target/avr/gdbstub.c
target/cris/gdbstub.c
target/hexagon/gdbstub.c
target/hppa/gdbstub.c
target/i386/gdbstub.c
target/i386/whpx/whpx-all.c
target/loongarch/gdbstub.c
target/m68k/gdbstub.c
target/m68k/helper.c
target/m68k/m68k-semi.c
target/microblaze/gdbstub.c
target/mips/gdbstub.c
target/mips/tcg/sysemu/mips-semi.c
target/nios2/cpu.c
target/nios2/nios2-semi.c
target/openrisc/gdbstub.c
target/openrisc/interrupt.c
target/openrisc/mmu.c
target/ppc/cpu_init.c
target/ppc/gdbstub.c
target/riscv/gdbstub.c
target/rx/gdbstub.c
target/s390x/gdbstub.c
target/s390x/helper.c
target/sh4/gdbstub.c
target/sparc/gdbstub.c
target/tricore/gdbstub.c
target/xtensa/core-dc232b.c
target/xtensa/core-dc233c.c
target/xtensa/core-de212.c
target/xtensa/core-de233_fpu.c
target/xtensa/core-dsp3400.c
target/xtensa/core-fsf.c
target/xtensa/core-lx106.c
target/xtensa/core-sample_controller.c
target/xtensa/core-test_kc705_be.c
target/xtensa/core-test_mmuhifi_c3.c
target/xtensa/gdbstub.c
target/xtensa/helper.c
target/xtensa/import_core.sh