diff options
author | Laurent Vivier <laurent@vivier.eu> | 2017-06-20 22:51:18 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2017-06-21 22:10:29 +0200 |
commit | f83311e4764f1f25a8abdec2b32c64483be1759b (patch) | |
tree | fa45a69dfb46f430d10ed6ff2a3e8b3cc257fc74 /target/m68k/cpu.c | |
parent | f4a6ce5155aab2a7ed7b9032a72187b37b3bfffe (diff) | |
download | qemu-f83311e4764f1f25a8abdec2b32c64483be1759b.zip qemu-f83311e4764f1f25a8abdec2b32c64483be1759b.tar.gz qemu-f83311e4764f1f25a8abdec2b32c64483be1759b.tar.bz2 |
target-m68k: use floatx80 internally
Coldfire uses float64, but 680x0 use floatx80.
This patch introduces the use of floatx80 internally
and enables 680x0 80bits FPU.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-Id: <20170620205121.26515-4-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/cpu.c')
-rw-r--r-- | target/m68k/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index f2e031f..435456f 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -49,7 +49,7 @@ static void m68k_cpu_reset(CPUState *s) M68kCPU *cpu = M68K_CPU(s); M68kCPUClass *mcc = M68K_CPU_GET_CLASS(cpu); CPUM68KState *env = &cpu->env; - float64 nan = float64_default_nan(NULL); + floatx80 nan = floatx80_default_nan(NULL); int i; mcc->parent_reset(s); @@ -60,7 +60,7 @@ static void m68k_cpu_reset(CPUState *s) #endif m68k_switch_sp(env); for (i = 0; i < 8; i++) { - env->fregs[i] = nan; + env->fregs[i].d = nan; } env->fpcr = 0; env->fpsr = 0; |