Skip to content

Hexagon: ll/sc fixes, emit TCG barriers, TLB locks

Brian Cain qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target/hexagon: emit explicit TCG memory barrierstarget/hexagon/translate.c+15 -00 replies
2/5target/hexagon: clear LL/SC reservations at context boundarieslinux-user/hexagon/cpu_loop.c target/hexagon/cpu.c+7 -00 replies
3/5hw/hexagon: protect the shared architectural TLBhw/hexagon/hexagon_tlb.c include/hw/hexagon/hexagon_tlb.h+30 -20 replies
4/5target/hexagon: publish TLB updates before flushingtarget/hexagon/hex_mmu.c+2 -40 replies
5/5tests/tcg/hexagon: cover LL/SC reservation clearingtests/tcg/hexagon/atomics.c+40 -00 replies

Reviews trailers per patch

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

PatchMarco Liebel
SeriesR-b
1/5
2/5
3/5
4/5
5/5

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/5] Hexagon: ll/sc fixes, emit TCG barriers, TLB locks

While preparing to enable MTTCG, audits and testing revealed gaps and bugs in our implementation.

LL/SC reservations should have been cleared at traps/exceptions.

TLB accesses should hold a lock to make the operations atomic.

Hexagon instructions with barrier or acquire/release semantics should emit corresponding TCG semantics.

Brian Cain (5):
target/hexagon: emit explicit TCG memory barriers target/hexagon: clear LL/SC reservations at context boundaries hw/hexagon: protect the shared architectural TLB target/hexagon: publish TLB updates before flushing tests/tcg/hexagon: cover LL/SC reservation clearing

 include/hw/hexagon/hexagon_tlb.h |  5 +++-
 hw/hexagon/hexagon_tlb.c         | 27 ++++++++++++++++++++-
 linux-user/hexagon/cpu_loop.c    |  4 ++++
 target/hexagon/cpu.c             |  3 +++
 target/hexagon/hex_mmu.c         |  6 ++---
 target/hexagon/translate.c       | 15 ++++++++++++
 tests/tcg/hexagon/atomics.c      | 40 ++++++++++++++++++++++++++++++++
 7 files changed, 94 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1