Skip to contentSkip to conversation

[4862] Avoid decremented overflow.

Qemu-devel Paul Brook 1 participant 1 message Jul 9, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4862

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4862
Author:   pbrook
Date:     2008-07-09 15:31:50 +0000 (Wed, 09 Jul 2008)

Log Message:
-----------
Avoid decremented overflow.

Modified Paths:
--------------
trunk/exec.c

Modified: trunk/exec.c
===================================================================

exec.c +1 -1
@@ -1432,7 +1432,7 @@
        signals are used primarily to interrupt blocking syscalls.  */
 #else
     if (use_icount) {
-        env->icount_decr.u16.high = 0x8000;
+        env->icount_decr.u16.high = 0xffff;
 #ifndef CONFIG_USER_ONLY
         /* CPU_INTERRUPT_EXIT isn't a real interrupt.  It just means
            an async event happened and we need to process it.  */