From 2edd07ef03782827245ce55ca4b3a882512ac514 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 21 Dec 2009 13:02:40 -0800 Subject: target-alpha: Initialize fpcr Linux, at least, disables exceptions by default. Signed-off-by: Richard Henderson Signed-off-by: Aurelien Jarno --- target-alpha/translate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target-alpha') 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 */ -- cgit v1.2.3