Revision bf20dc07 vl.c
b/vl.c | ||
---|---|---|
239 | 239 |
static CPUState *cur_cpu; |
240 | 240 |
static CPUState *next_cpu; |
241 | 241 |
static int event_pending = 1; |
242 |
/* Conversion factor from emulated instrctions to virtual clock ticks. */ |
|
242 |
/* Conversion factor from emulated instructions to virtual clock ticks. */
|
|
243 | 243 |
static int icount_time_shift; |
244 |
/* Arbitrarily pick 1MIPS as the minimum alowable speed. */ |
|
244 |
/* Arbitrarily pick 1MIPS as the minimum allowable speed. */
|
|
245 | 245 |
#define MAX_ICOUNT_SHIFT 10 |
246 | 246 |
/* Compensate for varying guest execution speed. */ |
247 | 247 |
static int64_t qemu_icount_bias; |
... | ... | |
903 | 903 |
#endif /* _WIN32 */ |
904 | 904 |
|
905 | 905 |
/* Correlation between real and virtual time is always going to be |
906 |
farly approximate, so ignore small variation. |
|
906 |
fairly approximate, so ignore small variation.
|
|
907 | 907 |
When the guest is idle real and virtual time will be aligned in |
908 | 908 |
the IO wait loop. */ |
909 | 909 |
#define ICOUNT_WOBBLE (QEMU_TIMER_BASE / 10) |
... | ... | |
7262 | 7262 |
if (use_icount == 1) { |
7263 | 7263 |
/* When not using an adaptive execution frequency |
7264 | 7264 |
we tend to get badly out of sync with real time, |
7265 |
so just delay for a resonable amount of time. */ |
|
7265 |
so just delay for a reasonable amount of time. */
|
|
7266 | 7266 |
delta = 0; |
7267 | 7267 |
} else { |
7268 | 7268 |
delta = cpu_get_icount() - cpu_get_clock(); |
Also available in: Unified diff