Re: [PATCH 1/3] target/riscv: Propagate error from PMU setup

2023-10-08 Thread Alistair Francis
On Tue, Oct 3, 2023 at 10:53 PM Rob Bradford wrote: > > 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

[PATCH 1/3] target/riscv: Propagate error from PMU setup

2023-10-03 Thread Rob Bradford
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 --- target/riscv/cpu.c |