]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Return the exception from invalid CSR accesses
authorAlistair Francis <alistair.francis@wdc.com>
Wed, 12 Aug 2020 19:13:46 +0000 (12:13 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 25 Aug 2020 16:11:36 +0000 (09:11 -0700)
commit57cb2083e638bb28616c059cbf067d99552a04bb
tree91af90620ee41fce6ea8e8c2450fce6feaeff556
parent83028098f45a08da209799aeea4801c362d0afeb
target/riscv: Return the exception from invalid CSR accesses

When performing a CSR access let's return a negative exception value on
an error instead of -1. This will allow us to specify the exception in
future patches.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: a487dad60c9b8fe7a2b992c5e0dcc2504a9000a7.1597259519.git.alistair.francis@wdc.com
Message-Id: <a487dad60c9b8fe7a2b992c5e0dcc2504a9000a7.1597259519.git.alistair.francis@wdc.com>
target/riscv/csr.c
target/riscv/op_helper.c