]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Fix read and write accesses to vsip and vsie
authorGeorg Kotheimer <georg.kotheimer@kernkonzept.com>
Thu, 11 Mar 2021 09:47:38 +0000 (10:47 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 23 Mar 2021 01:54:40 +0000 (21:54 -0400)
commit9d5451e077cd84809bcdf460c39b5f4fec17fc79
treef35cb6358f9d048430957f77f99d880f944f2f2d
parentc346749ee9d75fcb11bb816d0665ce174425d667
target/riscv: Fix read and write accesses to vsip and vsie

The previous implementation was broken in many ways:
 - Used mideleg instead of hideleg to mask accesses
 - Used MIP_VSSIP instead of VS_MODE_INTERRUPTS to mask writes to vsie
 - Did not shift between S bits and VS bits (VSEIP <-> SEIP, ...)

Signed-off-by: Georg Kotheimer <georg.kotheimer@kernkonzept.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210311094738.1376795-1-georg.kotheimer@kernkonzept.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/csr.c