mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/riscv: Add vstimecmp support
vstimecmp CSR allows the guest OS or to program the next guest timer interrupt directly. Thus, hypervisor no longer need to inject the timer interrupt to the guest if vstimecmp is used. This was ratified as a part of the Sstc extension. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Message-Id: <20220824221357.41070-4-atishp@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
43888c2f18
commit
3ec0fe18a3
6 changed files with 118 additions and 6 deletions
|
@ -92,6 +92,7 @@ static const VMStateDescription vmstate_hyper = {
|
|||
VMSTATE_UINTTL(env.hgeie, RISCVCPU),
|
||||
VMSTATE_UINTTL(env.hgeip, RISCVCPU),
|
||||
VMSTATE_UINT64(env.htimedelta, RISCVCPU),
|
||||
VMSTATE_UINT64(env.vstimecmp, RISCVCPU),
|
||||
|
||||
VMSTATE_UINTTL(env.hvictl, RISCVCPU),
|
||||
VMSTATE_UINT8_ARRAY(env.hviprio, RISCVCPU, 64),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue