summary refs log tree commit diff stats
path: root/hw/core/sysbus-fdt.c
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2022-08-24 15:16:58 -0700
committerAlistair Francis <alistair.francis@wdc.com>2022-09-07 09:19:15 +0200
commitade445ef85aa0cf711a311132cb458f11f6a6d12 (patch)
treea30b72aaefc423cc480e7fb95927fce528631e30 /hw/core/sysbus-fdt.c
parent14664483457b21235be42fbfb534e5ea881508b8 (diff)
downloadfocaccia-qemu-ade445ef85aa0cf711a311132cb458f11f6a6d12.tar.gz
focaccia-qemu-ade445ef85aa0cf711a311132cb458f11f6a6d12.zip
target/riscv: Simplify counter predicate function
All the hpmcounters and the fixed counters (CY, IR, TM) can be represented
as a unified counter. Thus, the predicate function doesn't need handle each
case separately.

Simplify the predicate function so that we just handle things differently
between RV32/RV64 and S/HS mode.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Message-Id: <20220824221701.41932-3-atishp@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/core/sysbus-fdt.c')
0 files changed, 0 insertions, 0 deletions