mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-02 06:51:53 -06:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue