mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
ed0851380c
commit
b99e80694c
3 changed files with 30 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue