aboutsummaryrefslogtreecommitdiff
path: root/hw/avr/arduino.c
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2024-07-11 15:31:15 -0700
committerAlistair Francis <alistair.francis@wdc.com>2024-07-18 12:08:45 +1000
commitdd4c123636dbdabd7dcc4f76c97af90271cd5fb6 (patch)
tree9f1c9ed43d29cb209cc88f7ad92795b54ae5c710 /hw/avr/arduino.c
parent74112400df659b0edb1da35db5c948313ffeffd0 (diff)
downloadqemu-dd4c123636dbdabd7dcc4f76c97af90271cd5fb6.zip
qemu-dd4c123636dbdabd7dcc4f76c97af90271cd5fb6.tar.gz
qemu-dd4c123636dbdabd7dcc4f76c97af90271cd5fb6.tar.bz2
target/riscv: Do not setup pmu timer if OF is disabled
The timer is setup function is invoked in both hpmcounter write and mcountinhibit write path. If the OF bit set, the LCOFI interrupt is disabled. There is no benefitting in setting up the qemu timer until LCOFI is cleared to indicate that interrupts can be fired again. Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Message-ID: <20240711-smcntrpmf_v7-v8-12-b7c38ae7b263@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/avr/arduino.c')
0 files changed, 0 insertions, 0 deletions