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

2020-03-01 Thread Bin Meng
On Sun, Feb 2, 2020 at 9:44 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

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

2020-02-02 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