Skip to content
Unverified Commit 087b051a authored by Jonathan Behrens's avatar Jonathan Behrens Committed by Palmer Dabbelt
Browse files

target/riscv: More accurate handling of `sip` CSR



According to the spec, "All bits besides SSIP, USIP, and UEIP in the sip
register are read-only." Further, if an interrupt is not delegated to mode x,
then "the corresponding bits in xip [...] should appear to be hardwired to
zero. This patch implements both of those requirements.

Signed-off-by: default avatarJonathan Behrens <jonathan@fintelia.io>
Reviewed-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 4cc16b3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment