OSDN Git Service

target/riscv: Enable privileged spec version 1.12
authorAtish Patra <atishp@rivosinc.com>
Thu, 3 Mar 2022 18:54:40 +0000 (10:54 -0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 22 Apr 2022 00:35:16 +0000 (10:35 +1000)
commit7100fe6c2441741ca6fa7c28b8a372d8ff7c2953
tree53c2c7def10dd8115433063960df4a69d6632b4a
parent29a9ec9bd8a7a7a4d98aa9a2260db6b2e815fb77
target/riscv: Enable privileged spec version 1.12

Virt machine uses privileged specification version 1.12 now.
All other machine continue to use the default one defined for that
machine unless changed to 1.12 by the user explicitly.

This commit enforces the privilege version for csrs introduced in
v1.12 or after.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Message-Id: <20220303185440.512391-7-atishp@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c
target/riscv/csr.c