mirror of https://gitee.com/openkylin/qemu.git
target-alpha: Initialize fpcr
Linux, at least, disables exceptions by default. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
56f4927e34
commit
2edd07ef03
|
@ -2748,6 +2748,8 @@ CPUAlphaState * cpu_alpha_init (const char *cpu_model)
|
||||||
env->ps = 0x1F00;
|
env->ps = 0x1F00;
|
||||||
#if defined (CONFIG_USER_ONLY)
|
#if defined (CONFIG_USER_ONLY)
|
||||||
env->ps |= 1 << 3;
|
env->ps |= 1 << 3;
|
||||||
|
cpu_alpha_store_fpcr(env, (FPCR_INVD | FPCR_DZED | FPCR_OVFD
|
||||||
|
| FPCR_UNFD | FPCR_INED | FPCR_DNOD));
|
||||||
#endif
|
#endif
|
||||||
pal_init(env);
|
pal_init(env);
|
||||||
/* Initialize IPR */
|
/* Initialize IPR */
|
||||||
|
|
Loading…
Reference in New Issue