Skip to content
Snippets Groups Projects
Commit 755b41d0 authored by Rob Bradford's avatar Rob Bradford Committed by Alistair Francis
Browse files

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: default avatarRob Bradford <rbradford@rivosinc.com>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Reviewed-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
Message-ID: <20231031154000.18134-2-rbradford@rivosinc.com>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent c541b07d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment