target/riscv: No need to re-start QEMU timer when timecmp == UINT64_MAX
authorAnup Patel <apatel@ventanamicro.com>
Fri, 20 Jan 2023 12:59:49 +0000 (18:29 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 6 Feb 2023 22:19:23 +0000 (08:19 +1000)
commitae0edf2188b3e4346b3e72bb69c75e70869e0c7f
tree6a075fa46e92ab44aa9bfc1ca4cd6b8ea7194995
parent14cb78bfaf4f99283252d9683ea4c0d97274ddea
target/riscv: No need to re-start QEMU timer when timecmp == UINT64_MAX

The time CSR will wrap-around immediately after reaching UINT64_MAX
so we don't need to re-start QEMU timer when timecmp == UINT64_MAX
in riscv_timer_write_timecmp().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230120125950.2246378-4-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/time_helper.c