Commit 266910c4346a24dff83ec01c7e1fa87eb938243f

Authored by pbrook
1 parent b6d96bed

Avoid decremented overflow.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4862 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -1432,7 +1432,7 @@ void cpu_interrupt(CPUState *env, int mask)
1432 1432 signals are used primarily to interrupt blocking syscalls. */
1433 1433 #else
1434 1434 if (use_icount) {
1435   - env->icount_decr.u16.high = 0x8000;
  1435 + env->icount_decr.u16.high = 0xffff;
1436 1436 #ifndef CONFIG_USER_ONLY
1437 1437 /* CPU_INTERRUPT_EXIT isn't a real interrupt. It just means
1438 1438 an async event happened and we need to process it. */
... ...