Skip to content

target/arm: Implement remaining HSTR functionality

Peter Maydell qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target/arm: Implement HSTR.TTEEtarget/arm/cpu.h target/arm/helper.c+18 -20 replies
2/2target/arm: Implement HSTR.TJDBXtarget/arm/cpu.h target/arm/helper.c target/arm/helper.h +3 more+55 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard Henderson
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] target/arm: Implement remaining HSTR functionality

I was going through some old todo items from years back, and one of them was "implement HSTR traps". We actually already do the interesting part of this (traps of coprocessor register access), but there are a couple of small loose ends: v7A (but not v8A!) defines HSTR.TTEE and HSTR.TJDBX trap bits for trapping various bits of the trivial Thumb2EE and Jazelle implementation.

The documentation for this is in the v7A Arm ARM DDI0406C.d, section B1.14.10 and B1.14.11, but the summary is that these bits trap from NS EL0/EL1 to Hyp mode for:
* TEECR and TEEHBR accesses
* JOSCR or JMCR sysreg accesses
* execution of the BXJ insn

This patchset implements the last of the HSTR functionality, just so I can cross it off my todo list. I don't expect anybody to actually be using this :-)

thanks
-- PMM

Peter Maydell (2):
target/arm: Implement HSTR.TTEE
target/arm: Implement HSTR.TJDBX

 target/arm/cpu.h       |  3 +++
 target/arm/helper.h    |  2 ++
 target/arm/syndrome.h  |  7 +++++++
 target/arm/helper.c    | 35 +++++++++++++++++++++++++++++++++--
 target/arm/op_helper.c | 16 ++++++++++++++++
 target/arm/translate.c | 12 ++++++++++++
 6 files changed, 73 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1