Re: [PATCH 1/2] target/riscv: Emulate TIME CSRs for privileged mode

2020-01-21 Thread Alistair Francis
On Tue, Jan 21, 2020 at 7:03 PM Anup Patel wrote: > > Currently, TIME CSRs are emulated only for user-only mode. This > patch add TIME CSRs emulation for privileged mode. > > For privileged mode, the TIME CSRs will return value provided > by rdtime callback which is registered by QEMU machine/plat

[PATCH 1/2] target/riscv: Emulate TIME CSRs for privileged mode

2020-01-21 Thread Anup Patel
Currently, TIME CSRs are emulated only for user-only mode. This patch add TIME CSRs emulation for privileged mode. For privileged mode, the TIME CSRs will return value provided by rdtime callback which is registered by QEMU machine/platform emulation (i.e. CLINT emulation). If rdtime callback is n