mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/riscv: Implement hgeie and hgeip CSRs
The hgeie and hgeip CSRs are required for emulating an external interrupt controller capable of injecting virtual external interrupt to Guest/VM running at VS-level. 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-4-anup@brainfault.org Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
881df35d3d
commit
cd032fe75c
6 changed files with 121 additions and 38 deletions
|
@ -78,8 +78,8 @@ static bool hyper_needed(void *opaque)
|
|||
|
||||
static const VMStateDescription vmstate_hyper = {
|
||||
.name = "cpu/hyper",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.version_id = 2,
|
||||
.minimum_version_id = 2,
|
||||
.needed = hyper_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINTTL(env.hstatus, RISCVCPU),
|
||||
|
@ -89,6 +89,8 @@ static const VMStateDescription vmstate_hyper = {
|
|||
VMSTATE_UINTTL(env.htval, RISCVCPU),
|
||||
VMSTATE_UINTTL(env.htinst, RISCVCPU),
|
||||
VMSTATE_UINTTL(env.hgatp, RISCVCPU),
|
||||
VMSTATE_UINTTL(env.hgeie, RISCVCPU),
|
||||
VMSTATE_UINTTL(env.hgeip, RISCVCPU),
|
||||
VMSTATE_UINT64(env.htimedelta, RISCVCPU),
|
||||
|
||||
VMSTATE_UINT64(env.vsstatus, RISCVCPU),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue