]> git.proxmox.com Git - mirror_qemu.git/commit
target/riscv: Update VS timer whenever htimedelta changes
authorAnup Patel <apatel@ventanamicro.com>
Fri, 20 Jan 2023 12:59:47 +0000 (18:29 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 6 Feb 2023 22:19:22 +0000 (08:19 +1000)
commit2cfb3b6c9b78fd9d47a2934ba53293c73c680406
tree417dfe4a435f6c9c63897d715db1e8472fe6ee83
parent32c435a1ae9be183a309fb102d0fc38a4d2cd669
target/riscv: Update VS timer whenever htimedelta changes

The htimedelta[h] CSR has impact on the VS timer comparison so we
should call riscv_timer_write_timecmp() whenever htimedelta changes.

Fixes: 3ec0fe18a31f ("target/riscv: Add vstimecmp suppor")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230120125950.2246378-2-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/csr.c