Skip to content

target/riscv: add zicntr and zihpm flags

Daniel Henrique Barboza qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target/riscv/cpu.c: add zicntr extension flagtarget/riscv/cpu.c target/riscv/cpu_cfg.h+12 -01 reply
2/2target/riscv/cpu.c: add zihpm extension flagtarget/riscv/cpu.c target/riscv/cpu_cfg.h+14 -71 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlistair Francis
1/2R-b
2/2R-b

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 for-8.2 0/2] target/riscv: add zicntr and zihpm flags

Hi,

I decided to include flags for both timer/counter extensions to make it easier for us later on when dealing with the RVA22 profile (which includes both).

The features were already implemented by Atish Patra some time ago, but back then these 2 extensions weren't introduced yet. This means that, aside from extra stuff in riscv,isa FDT no other functional changes were made.

Both are defaulted to 'true' since QEMU already implements both features, but the flag can be disabled if Zicsr isn't present or, in the case of zihpm, if pmu_num = 0.

Daniel Henrique Barboza (2):
target/riscv/cpu.c: add zicntr extension flag
target/riscv/cpu.c: add zihpm extension flag

 target/riscv/cpu.c     | 29 +++++++++++++++++++++++------
 target/riscv/cpu_cfg.h |  2 ++
 2 files changed, 25 insertions(+), 6 deletions(-)
Signature · 1 line
2.41.0