qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/5] target/arm: Move define_debug_regs() to debug_helper.c


From: Richard Henderson
Subject: Re: [PATCH 2/5] target/arm: Move define_debug_regs() to debug_helper.c
Date: Sat, 2 Jul 2022 19:27:19 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 7/1/22 01:11, Peter Maydell wrote:
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(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]