summary refs log tree commit diff stats
path: root/hw/intc/arm_gicv3_cpuif_common.c
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2024-03-06 15:27:22 +0530
committerAlistair Francis <alistair.francis@wdc.com>2024-03-08 20:48:03 +1000
commit0678e9f29c2301d0a1afc8d01a78cdfa7ad2ddbd (patch)
treeae72bc0ce0d5f79da1bb94dd785f7eefc50d928c /hw/intc/arm_gicv3_cpuif_common.c
parentbf31cf06eb5e709a1a7b082dc7956baadc4b70fa (diff)
downloadfocaccia-qemu-0678e9f29c2301d0a1afc8d01a78cdfa7ad2ddbd.tar.gz
focaccia-qemu-0678e9f29c2301d0a1afc8d01a78cdfa7ad2ddbd.zip
hw/intc/riscv_aplic: Fix in_clrip[x] read emulation
The reads to in_clrip[x] registers return rectified input values of the
interrupt sources.

A rectified input value of an interrupt source is defined by the section
"4.5.2 Source configurations (sourcecfg[1]–sourcecfg[1023])" of the RISC-V
AIA specification as:
"rectified input value = (incoming wire value) XOR (source is inverted)"

Update the riscv_aplic_read_input_word() implementation to match the above.

Fixes: e8f79343cfc8 ("hw/intc: Add RISC-V AIA APLIC device emulation")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240306095722.463296-3-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/intc/arm_gicv3_cpuif_common.c')
0 files changed, 0 insertions, 0 deletions