mirror of https://gitee.com/openkylin/qemu.git
hw/ptimer: Do not artificially limit timers when using icount
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
838686357b
commit
f8340b360b
|
@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
|
||||||
* on the current generation of host machines.
|
* on the current generation of host machines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (limit * s->period < 10000 && s->period) {
|
if (!use_icount && limit * s->period < 10000 && s->period) {
|
||||||
limit = 10000 / s->period;
|
limit = 10000 / s->period;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue