hw/misc/mps2-fpgaio: Support AN547 DBGCTRL register
commit39901aea063fb4be77a89d7badfed3998ad8fb4a
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Feb 2021 14:46:11 +0000 (19 14:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Mar 2021 17:20:03 +0000 (8 17:20 +0000)
treeea84f7ef9794300b0e1e2616e4fb421dc746a20d
parent7fa859914f58607bf874b9efecbe4be5726d91ac
hw/misc/mps2-fpgaio: Support AN547 DBGCTRL register

For the AN547 image, the FPGAIO block has an extra DBGCTRL register,
which is used to control the SPNIDEN, SPIDEN, NPIDEN and DBGEN inputs
to the CPU.  These signals control when the CPU permits use of the
external debug interface.  Our CPU models don't implement the
external debug interface, so we model the register as
reads-as-written.

Implement the register, with a property defining whether it is
present, and allow mps2-tz boards to specify that it is present.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210219144617.4782-39-peter.maydell@linaro.org
hw/arm/mps2-tz.c
hw/misc/mps2-fpgaio.c
include/hw/misc/mps2-fpgaio.h