Jason Chien e0922b73ba hw/intc: Fix upper/lower mtime write calculation
When writing the upper mtime, we should keep the original lower mtime
whose value is given by cpu_riscv_read_rtc() instead of
cpu_riscv_read_rtc_raw(). The same logic applies to writes to lower mtime.

Signed-off-by: Jason Chien <jason.chien@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20230728082502.26439-1-jason.chien@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-09-11 11:45:55 +10:00
..
2023-08-31 19:46:43 +02:00
2023-07-25 17:13:53 +03:00
2023-07-25 17:13:53 +03:00
2023-07-25 17:13:53 +03:00
2019-08-16 13:31:52 +02:00
2022-04-21 09:27:54 -07:00
2021-11-09 10:11:27 +01:00
2019-08-16 13:31:52 +02:00
2023-02-27 22:29:01 +01:00
2023-02-27 22:29:01 +01:00
2021-11-09 10:11:27 +01:00
2023-07-25 17:13:45 +03:00