Re: Application of QEMUTimer in short timing.

2021-09-09 Thread Duo jia
Got it. Peter Maydell 于2021年9月8日周三 下午5:47写道: > On Wed, 8 Sept 2021 at 03:50, Duo jia wrote: > > Also I want to know how to make a delay in qemu. > > For example, when I send a UART data, there is a certain time interval > from setting the register to when the data is sent. Most of this time doe

Re: Application of QEMUTimer in short timing.

2021-09-08 Thread Peter Maydell
On Wed, 8 Sept 2021 at 03:50, Duo jia wrote: > Also I want to know how to make a delay in qemu. > For example, when I send a UART data, there is a certain time interval from > setting the register to when the data is sent. Most of this time does not > affect the simulation effect, but some guest

Re: Application of QEMUTimer in short timing.

2021-09-07 Thread Duo jia
thank you for your reply.I understand. Also I want to know how to make a delay in qemu. For example, when I send a UART data, there is a certain time interval from setting the register to when the data is sent. Most of this time does not affect the simulation effect, but some guest firmware will e

Re: Application of QEMUTimer in short timing.

2021-09-07 Thread Peter Maydell
On Tue, 7 Sept 2021 at 12:28, Duo jia wrote: > > In the controller, QEMUTimer will be used in the implementation of timer > simulation. > > I wrote an auto-loading timer with a period of 1ms and the clock source used > is QEMU_CLOCK_VIRTUAL. But it doesn't seem to be very accurate, because the

Application of QEMUTimer in short timing.

2021-09-07 Thread Duo jia
In the controller, QEMUTimer will be used in the implementation of timer simulation. I wrote an auto-loading timer with a period of 1ms and the clock source used is QEMU_CLOCK_VIRTUAL. But it doesn't seem to be very accurate, because the actual time after I accumulated it to 500 times took about 7