commit | 96b1b00058fc95de6c76c441a8b941003de3a54d | [log] [tgz] |
---|---|---|
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | Fri Feb 24 14:45:18 2023 -0300 |
committer | Palmer Dabbelt <palmer@rivosinc.com> | Wed Mar 01 17:40:13 2023 -0800 |
tree | c07b28fd34d7d5353beb9f61c5a7a5f4d9b24e95 | |
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>