target/arm: Move define_debug_regs() to debug_helper.c
commitf43ee493c270a27876a55e9636bc4824881d1bbd
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jun 2022 19:41:13 +0000 (30 20:41 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 7 Jul 2022 10:37:33 +0000 (7 11:37 +0100)
tree6a683ae247b0ec275285af0f2d6842aa4c86b2b2
parent573b8ec70093d3c1b5789f106c5758a7e6c279fb
target/arm: Move define_debug_regs() to debug_helper.c

The target/arm/helper.c file is very long and is a grabbag of all
kinds of functionality.  We have already a debug_helper.c which has
code for implementing architectural debug.  Move the code which
defines the debug-related system registers out to this file also.
This affects the define_debug_regs() function and the various
functions and arrays which are used only by it.

The functions raw_write() and arm_mdcr_el2_eff() and
define_debug_regs() now need to be global rather than local to
helper.c; everything else is pure code movement.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220630194116.3438513-3-peter.maydell@linaro.org
target/arm/cpregs.h
target/arm/debug_helper.c
target/arm/helper.c
target/arm/internals.h