summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-09 15:31:50 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-09 15:31:50 +0000
commit871767a1a67bc1a7a0d0417c91f3b8265ea2ef9c (patch)
treeea91c9df2396b07488c8b600fc9eb64f21bc0efc /exec.c
parent7373674210ff159a05a1443a1bf5ffc412fd254d (diff)
downloadqemu-871767a1a67bc1a7a0d0417c91f3b8265ea2ef9c.tar.gz
qemu-871767a1a67bc1a7a0d0417c91f3b8265ea2ef9c.tar.bz2
qemu-871767a1a67bc1a7a0d0417c91f3b8265ea2ef9c.zip
Avoid decremented overflow.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4862 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 4f7a027d63..5b43172f36 100644
--- a/exec.c
+++ b/exec.c
@@ -1432,7 +1432,7 @@ void cpu_interrupt(CPUState *env, int mask)
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. */