projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f2e400
)
target-alpha: Fix cvttq vs inf
author
Richard Henderson
<rth@twiddle.net>
Thu, 3 Jul 2014 19:37:59 +0000
(12:37 -0700)
committer
Richard Henderson
<rth@twiddle.net>
Mon, 18 May 2015 20:03:46 +0000
(13:03 -0700)
We should raise INV for infinities as well, not OVR+INE.
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-alpha/fpu_helper.c
patch
|
blob
|
history
diff --git
a/target-alpha/fpu_helper.c
b/target-alpha/fpu_helper.c
index 9449c5724376af7d9322b1e2e38b1c5b50f24434..db523fbc309af28a04ef303e417770176760c8b7 100644
(file)
--- a/
target-alpha/fpu_helper.c
+++ b/
target-alpha/fpu_helper.c
@@
-444,7
+444,7
@@
static uint64_t do_cvttq(CPUAlphaState *env, uint64_t a, int roundmode)
goto do_underflow;
}
} else if (exp == 0x7ff) {
- exc =
(frac ? FPCR_INV : FPCR_IOV | FPCR_INE)
;
+ exc =
FPCR_INV
;
} else {
/* Restore implicit bit. */
frac |= 0x10000000000000ull;