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>
---
target/arm/cpregs.h | 3 +
target/arm/internals.h | 9 +
target/arm/debug_helper.c | 525 +++++++++++++++++++++++++++++++++++++
target/arm/helper.c | 531 +-------------------------------------
4 files changed, 538 insertions(+), 530 deletions(-)