target/riscv: Implement AIA hvictl and hviprioX CSRs
authorAnup Patel <anup.patel@wdc.com>
Fri, 4 Feb 2022 17:46:47 +0000 (23:16 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 16 Feb 2022 02:24:19 +0000 (12:24 +1000)
commit2b6023987955a887aae3ad6882557960b2253a4f
treedca20684b97bdb2a8ccb8be36d814ae62152d09b
parentd028ac7512f1a781a5cba7659a1d25dc972afdd4
target/riscv: Implement AIA hvictl and hviprioX CSRs

The AIA hvictl and hviprioX CSRs allow hypervisor to control
interrupts visible at VS-level. This patch implements AIA hvictl
and hviprioX CSRs.

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-12-anup@brainfault.org
[ Changes by AF:
 - Fix possible unintilised variable error in rmw_sie()
]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.h
target/riscv/csr.c
target/riscv/machine.c