On 10/1/25 12:32 AM, Anton Johansson wrote:
According to version 20250508 of the privileged specification, mcyclecfg
is a 64-bit register and mcyclecfgh refers to the top 32 bits of this
register when XLEN == 32. No real advantage is gained by keeping
them separate, and combining them allows for slight simplification.
Signed-off-by: Anton Johansson <[email protected]>
---
target/riscv/cpu.h | 3 +--
target/riscv/csr.c | 28 +++++++++++++++++-----------
2 files changed, 18 insertions(+), 13 deletions(-)
Clearer on this patch.
Reviewed-by: Pierrick Bouvier <[email protected]>