Skip to content

target/riscv: Add Zihintpause support

Dao Lu qemu-devel qemu-riscv 8 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest1 patch 5 repliesApplied
  2. v4 posting 2/21 patch 4 repliesSuperseded
  3. v4 posting 1/21 patch 14 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v3 posting 3/31 patch2 repliesSuperseded
v3 posting 2/31 patch4 repliesSuperseded
v3 posting 1/31 patch1 replySuperseded
v21 patch3 repliesSuperseded
v11 patch5 repliesSuperseded

Changes in v5 from the cover letter

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/1target/riscv: Add Zihintpause supporttarget/riscv/cpu.c target/riscv/cpu.h target/riscv/insn32.decode +1 more+25 -12 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchHeiko StuebnerAlistair Francis
1/1T-b R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/1] target/riscv: Add Zihintpause support

This patch adds RISC-V Zihintpause support. The extension is set to be enabled by default and opcode has been added to insn32.decode.

Added trans_pause to exit the TB and return to main loop.

The change can also be found in:
https://github.com/dlu42/qemu/tree/zihintpause_support_v1

Tested along with pause support added to cpu_relax function for linux, the changes I made to linux to test can be found here:
https://github.com/dlu42/linux/tree/pause_support_v1

--------
Changelog:

v1 -> v2
1. Pause now also exit the TB and return to main loop
2. Move the REQUIRE_ZIHINTPAUSE macro inside the trans_pause function

v2 -> v3
No changes, v2 was lost from the list

v3 -> v4
No longer break the reservation in trans_pause

v4 -> v5
Rabase on top of https://github.com/alistair23/qemu/tree/riscv-to-apply.next

Dao Lu (1):
Add Zihintpause support

 target/riscv/cpu.c                      |  2 ++
 target/riscv/cpu.h                      |  1 +
 target/riscv/insn32.decode              |  7 ++++++-
 target/riscv/insn_trans/trans_rvi.c.inc | 16 ++++++++++++++++
 4 files changed, 25 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1