]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Enable S*stateen bits for AIA
authorAtish Patra <atishp@rivosinc.com>
Fri, 10 Jan 2025 08:21:31 +0000 (00:21 -0800)
committerAlistair Francis <alistair.francis@wdc.com>
Sat, 18 Jan 2025 23:44:35 +0000 (09:44 +1000)
commitdbcb6e1ccf3f25292a8700bb18997a4411fad82f
tree8cbf23f56ed236e87afee5b1aa0663eb554300eb
parentdc0280723dfc64d90e94155985853691d5ab9276
target/riscv: Enable S*stateen bits for AIA

As per the ratified AIA spec v1.0, three stateen bits control AIA CSR
access.

Bit 60 controls the indirect CSRs
Bit 59 controls the most AIA CSR state
Bit 58 controls the IMSIC state such as stopei and vstopei

Enable the corresponding bits in [m|h]stateen and enable corresponding
checks in the CSR accessor functions.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Message-ID: <20250110-counter_delegation-v5-3-e83d797ae294@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/csr.c