On 1/1/26 04:08, Peter Maydell wrote:
In v7A HCR.TID1 is defined to trap for TCMTR, TLBTR, REVIDR and AIDR.
We incorrectly use an accessfn for REVIDR and AIDR that only traps on
v8A cores.  Fix this by collapsing access_aa64_tid1() and
access_aa32_tid1() together and never doing a check for v8 vs v7.

The accessfn is also used for SMIDR_EL1, which is fine as this
register is AArch64 only.

Cc:[email protected]
Signed-off-by: Peter Maydell<[email protected]>
---
  target/arm/helper.c | 24 +++++++-----------------
  1 file changed, 7 insertions(+), 17 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to