diff options
author | Yong-Xuan Wang <yongxuan.wang@sifive.com> | 2024-10-29 16:53:47 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2024-12-20 11:19:16 +1000 |
commit | 0d0141fadc9063e527865ee420b2baf34e306093 (patch) | |
tree | 1787d898b2f5af67c24fc893d39941ee61699040 /scripts/xml-preprocess-test.py | |
parent | e5d28bf2b3064e986bfd7e0f0c9653017e20f3d8 (diff) | |
download | qemu-0d0141fadc9063e527865ee420b2baf34e306093.zip qemu-0d0141fadc9063e527865ee420b2baf34e306093.tar.gz qemu-0d0141fadc9063e527865ee420b2baf34e306093.tar.bz2 |
hw/intc/riscv_aplic: Fix APLIC in_clrip and clripnum write emulation
In the section "4.7 Precise effects on interrupt-pending bits"
of the RISC-V AIA specification defines that:
"If the source mode is Level1 or Level0 and the interrupt domain
is configured in MSI delivery mode (domaincfg.DM = 1):
The pending bit is cleared whenever the rectified input value is
low, when the interrupt is forwarded by MSI, or by a relevant
write to an in_clrip register or to clripnum."
Update the riscv_aplic_set_pending() to match the spec.
Fixes: bf31cf06eb ("hw/intc/riscv_aplic: Fix setipnum_le write emulation for APLIC MSI-mode")
Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20241029085349.30412-1-yongxuan.wang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/xml-preprocess-test.py')
0 files changed, 0 insertions, 0 deletions