- updated init_m68k with fpu_init() and fpu_set_integral_fpu() calls

- added exit_m68k() and handle deinitialization of the FPU
- updated m68k_reset to call fpu_reset()
This commit is contained in:
gbeauche 2000-09-05 16:53:19 +00:00
parent e1724ba3d3
commit fbc2092471

View File

@ -207,6 +207,14 @@ void init_m68k (void)
do_merges ();
build_cpufunctbl ();
fpu_init ();
fpu_set_integral_fpu (CPUType == 4);
}
void exit_m68k (void)
{
fpu_exit ();
}
struct regstruct regs, lastint_regs;
@ -1047,7 +1055,9 @@ void m68k_reset (void)
regs.spcflags = 0;
regs.intmask = 7;
regs.vbr = regs.sfc = regs.dfc = 0;
regs.fpcr = regs.fpsr = regs.fpiar = 0;
/* gb-- moved into {fpp,fpu_x86}.cpp::fpu_init()
regs.fpcr = regs.fpsr = regs.fpiar = 0; */
fpu_reset();
}
void REGPARAM2 op_illg (uae_u32 opcode)