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; |
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 |
|
{ |
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) |