ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/newcpu.cpp
(Generate patch)

Comparing BasiliskII/src/uae_cpu/newcpu.cpp (file contents):
Revision 1.5 by cebix, 1999-11-03T10:56:43Z vs.
Revision 1.7 by gbeauche, 2000-09-22T17:21:25Z

# Line 207 | Line 207 | void init_m68k (void)
207      do_merges ();
208  
209      build_cpufunctbl ();
210 +    
211 +    fpu_init ();
212 +    fpu_set_integral_fpu (CPUType == 4);
213 + }
214 +
215 + void exit_m68k (void)
216 + {
217 +        fpu_exit ();
218   }
219  
220   struct regstruct regs, lastint_regs;
# Line 215 | Line 223 | static int backup_pointer = 0;
223   static long int m68kpc_offset;
224   int lastint_no;
225  
226 + #if REAL_ADDRESSING || DIRECT_ADDRESSING
227 + #define get_ibyte_1(o) get_byte(get_virtual_address(regs.pc_p) + (o) + 1)
228 + #define get_iword_1(o) get_word(get_virtual_address(regs.pc_p) + (o))
229 + #define get_ilong_1(o) get_long(get_virtual_address(regs.pc_p) + (o))
230 + #else
231   #define get_ibyte_1(o) get_byte(regs.pc + (regs.pc_p - regs.pc_oldp) + (o) + 1)
232   #define get_iword_1(o) get_word(regs.pc + (regs.pc_p - regs.pc_oldp) + (o))
233   #define get_ilong_1(o) get_long(regs.pc + (regs.pc_p - regs.pc_oldp) + (o))
234 + #endif
235  
236   uae_s32 ShowEA (int reg, amodes mode, wordsizes size, char *buf)
237   {
# Line 1047 | Line 1061 | void m68k_reset (void)
1061      regs.spcflags = 0;
1062      regs.intmask = 7;
1063      regs.vbr = regs.sfc = regs.dfc = 0;
1064 <    regs.fpcr = regs.fpsr = regs.fpiar = 0;
1064 >    /* gb-- moved into {fpp,fpu_x86}.cpp::fpu_init()
1065 >    regs.fpcr = regs.fpsr = regs.fpiar = 0; */
1066 >    fpu_reset();
1067   }
1068  
1069   void REGPARAM2 op_illg (uae_u32 opcode)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines