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:
Edgar E. Iglesias 2014-09-10 18:33:58 +10:00
parent 838686357b
commit f8340b360b
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
* 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;
}