Re: [PATCH v1 2/4] target/riscv: Add itrigger support when icount is enabled

2022-11-09 Thread Alistair Francis
On Thu, Oct 13, 2022 at 4:43 PM LIU Zhiwei wrote: > > The max count in itrigger can be 0x3FFF, which will cause a no trivial > translation and execution overload. > > When icount is enabled, QEMU provides API that can fetch guest > instruction number. Thus, we can set an timer for itrigger with >

[PATCH v1 2/4] target/riscv: Add itrigger support when icount is enabled

2022-10-12 Thread LIU Zhiwei
The max count in itrigger can be 0x3FFF, which will cause a no trivial translation and execution overload. When icount is enabled, QEMU provides API that can fetch guest instruction number. Thus, we can set an timer for itrigger with the count as deadline. Only when timer expires or priviledge mo