]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Propagate error from PMU setup
authorRob Bradford <rbradford@rivosinc.com>
Tue, 31 Oct 2023 15:37:13 +0000 (15:37 +0000)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 7 Nov 2023 01:06:02 +0000 (11:06 +1000)
commit755b41d09f516109f5ddc49aae86358c72e656d5
tree55b0c8b135651241bd9058d4544eea89a0530638
parentc541b07de79daa293e9ccc07f3c98f575ad09f2a
target/riscv: Propagate error from PMU setup

More closely follow the QEMU style by returning an Error and propagating
it there is an error relating to the PMU setup.

Further simplify the function by removing the num_counters parameter as
this is available from the passed in cpu pointer.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Message-ID: <20231031154000.18134-2-rbradford@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/pmu.c
target/riscv/pmu.h
target/riscv/tcg/tcg-cpu.c