diff options
author | Richard Henderson <rth@twiddle.net> | 2009-12-21 13:02:40 -0800 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-23 07:13:45 +0100 |
commit | 2edd07ef03782827245ce55ca4b3a882512ac514 (patch) | |
tree | f79626491abc90b0d8bdb784a61a62f0845f811e /target-alpha | |
parent | 56f4927e34c63fc02b2fb8f7b09b1900075b6f26 (diff) |
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>
Diffstat (limited to 'target-alpha')
-rw-r--r-- | target-alpha/translate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 5e0647b034..87813e7dd3 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2748,6 +2748,8 @@ CPUAlphaState * cpu_alpha_init (const char *cpu_model) env->ps = 0x1F00; #if defined (CONFIG_USER_ONLY) env->ps |= 1 << 3; + cpu_alpha_store_fpcr(env, (FPCR_INVD | FPCR_DZED | FPCR_OVFD + | FPCR_UNFD | FPCR_INED | FPCR_DNOD)); #endif pal_init(env); /* Initialize IPR */ |