diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2023-02-24 14:45:18 -0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-01 17:40:13 -0800 |
commit | 96b1b00058fc95de6c76c441a8b941003de3a54d (patch) | |
tree | c07b28fd34d7d5353beb9f61c5a7a5f4d9b24e95 /fsdev/9p-iov-marshal.c | |
parent | 3c7d54f945f1b5b474ea35c0815a1618927c9384 (diff) |
target/riscv/csr.c: simplify mctr()
Use riscv_cpu_cfg() to retrieve pmu_num.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20230224174520.92490-3-dbarboza@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'fsdev/9p-iov-marshal.c')
0 files changed, 0 insertions, 0 deletions