]> git.proxmox.com Git - mirror_qemu.git/commit - target/riscv/cpu_helper.c
target/riscv: Add vstimecmp support
authorAtish Patra <atishp@rivosinc.com>
Wed, 24 Aug 2022 22:13:57 +0000 (15:13 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 7 Sep 2022 07:19:15 +0000 (09:19 +0200)
commit3ec0fe18a31fabfe999b480e4c21847ac0d51560
tree944238c6356ff239d1a06129b81121b0ecaa5590
parent43888c2f1823212b1064a6a94d65d8acaf954478
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>
target/riscv/cpu.h
target/riscv/cpu_bits.h
target/riscv/cpu_helper.c
target/riscv/csr.c
target/riscv/machine.c
target/riscv/time_helper.c