qemu/target
Xu Lu 5cb0e7abe1 target/riscv: Fix mcycle/minstret increment behavior
The mcycle/minstret counter's stop flag is mistakenly updated on a copy
on stack. Thus the counter increments even when the CY/IR bit in the
mcountinhibit register is set. This commit corrects its behavior.

Fixes: 3780e33732 (target/riscv: Support mcycle/minstret write operation)
Signed-off-by: Xu Lu <luxu.kernel@bytedance.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-01-05 22:28:54 +03:00
..
alpha target/alpha: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
arm target: Use generic cpu_model_from_type() 2024-01-05 16:20:14 +01:00
avr target/avr: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
cris target/cris: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
hexagon target/hexagon: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
hppa target/hppa: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
i386 target: Use generic cpu_model_from_type() 2024-01-05 16:20:14 +01:00
loongarch target: Use generic cpu_model_from_type() 2024-01-05 16:20:14 +01:00
m68k target/m68k: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
microblaze target/microblaze: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
mips target: Use generic cpu_model_from_type() 2024-01-05 16:20:14 +01:00
nios2 target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
openrisc target/openrisc: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
ppc target: Use generic cpu_model_from_type() 2024-01-05 16:20:14 +01:00
riscv target/riscv: Fix mcycle/minstret increment behavior 2024-01-05 22:28:54 +03:00
rx target/rx: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
s390x target/s390x: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
sh4 target/sh4: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
sparc target/sparc: Simplify qemu_irq_ack 2024-01-05 16:20:15 +01:00
tricore target/tricore: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
xtensa target/xtensa: Use generic cpu_list() 2024-01-05 16:20:14 +01:00
Kconfig hw/loongarch: Add support loongson3 virt machine type. 2022-06-06 18:09:03 +00:00
meson.build target/loongarch: Add target build suport 2022-06-06 18:09:03 +00:00