All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] target/riscv: Add Zihintpause support
@ 2022-06-09  4:40 Dao Lu
  2022-06-09  4:40 ` [PATCH v3 1/1] " Dao Lu
  0 siblings, 1 reply; 8+ messages in thread
From: Dao Lu @ 2022-06-09  4:40 UTC (permalink / raw)
  To: qemu-devel
  Cc: Dao Lu, Palmer Dabbelt, Alistair Francis, Bin Meng,
	open list:RISC-V TCG CPUs

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 for TCG to mainly to break reservation and exit the TB.

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

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 | 18 ++++++++++++++++++
 4 files changed, 27 insertions(+), 1 deletion(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v3 0/1] target/riscv: Add Zihintpause support
@ 2022-06-08  3:44 Dao Lu
  2022-06-08  3:44 ` [PATCH v3 1/1] " Dao Lu
  0 siblings, 1 reply; 8+ messages in thread
From: Dao Lu @ 2022-06-08  3:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Dao Lu, Palmer Dabbelt, Alistair Francis, Bin Meng,
	open list:RISC-V TCG CPUs

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 for TCG to mainly to break reservation and exit the TB.

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

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 | 18 ++++++++++++++++++
 4 files changed, 27 insertions(+), 1 deletion(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-27 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  4:40 [PATCH v3 0/1] target/riscv: Add Zihintpause support Dao Lu
2022-06-09  4:40 ` [PATCH v3 1/1] " Dao Lu
2022-06-20 23:39   ` Alistair Francis
2022-06-21 16:17     ` Dao Lu
2022-06-27  5:12       ` Alistair Francis
2022-06-27 15:55         ` Dao Lu
  -- strict thread matches above, loose matches on Subject: below --
2022-06-08  3:44 [PATCH v3 0/1] " Dao Lu
2022-06-08  3:44 ` [PATCH v3 1/1] " Dao Lu
2022-06-08 18:26   ` Dao Lu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.