target/riscv: Allow AIA device emulation to set ireg rmw callback
commit69077dd687a5e388943548b0eb8e3747cc047324
authorAnup Patel <anup.patel@wdc.com>
Fri, 4 Feb 2022 17:46:44 +0000 (4 23:16 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 16 Feb 2022 02:24:18 +0000 (16 12:24 +1000)
tree3c32236661f0cf2dfbee932e7e3b5c340f0655ea
parentaa7508bbc63afe5c9fb65ce3353c9828ee12c4b3
target/riscv: Allow AIA device emulation to set ireg rmw callback

The AIA device emulation (such as AIA IMSIC) should be able to set
(or provide) AIA ireg read-modify-write callback for each privilege
level of a RISC-V HART.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Message-id: 20220204174700.534953-9-anup@brainfault.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.h
target/riscv/cpu_helper.c