summaryrefslogtreecommitdiff
path: root/target-alpha/translate.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-07-08 10:11:06 -0700
committerRichard Henderson <rth@twiddle.net>2015-05-18 13:03:47 -0700
commitb99e80694cc635aa6ed5a3716e89645a8afa261c (patch)
treea866e348753af9ca27b6fd0f9fa3a03e8168545b /target-alpha/translate.c
parented0851380c8ed181ddd6ed3542b14fcb0bca6700 (diff)
downloadqemu-b99e80694cc635aa6ed5a3716e89645a8afa261c.tar.gz
target-alpha: Raise EXC_M_INV properly for fp inputs
Ignore DNZ if software completion isn't used. Raise INV for denormals in system mode so the OS completion handler sees them. Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-alpha/translate.c')
-rw-r--r--target-alpha/translate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index f0556b0ef3..4c441a91a3 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -658,6 +658,13 @@ static TCGv gen_ieee_input(DisasContext *ctx, int reg, int fn11, int is_cmp)
} else {
gen_helper_ieee_input(cpu_env, val);
}
+ } else {
+#ifndef CONFIG_USER_ONLY
+ /* In system mode, raise exceptions for denormals like real
+ hardware. In user mode, proceed as if the OS completion
+ handler is handling the denormal as per spec. */
+ gen_helper_ieee_input_s(cpu_env, val);
+#endif
}
}
return val;