cpubase.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Contains the base types for the PowerPC
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. { This Unit contains the base types for the PowerPC
  19. }
  20. unit cpubase;
  21. {$i fpcdefs.inc}
  22. interface
  23. uses
  24. strings,cutils,cclasses,aasmbase,cpuinfo,cginfo;
  25. {*****************************************************************************
  26. Assembler Opcodes
  27. *****************************************************************************}
  28. type
  29. { warning: CPU32 opcodes are not fully compatible with the MC68020. }
  30. { 68000 only opcodes }
  31. tasmop = (a_abcd,
  32. a_add,a_adda,a_addi,a_addq,a_addx,a_and,a_andi,
  33. a_asl,a_asr,a_bcc,a_bcs,a_beq,a_bge,a_bgt,a_bhi,
  34. a_ble,a_bls,a_blt,a_bmi,a_bne,a_bpl,a_bvc,a_bvs,
  35. a_bchg,a_bclr,a_bra,a_bset,a_bsr,a_btst,a_chk,
  36. a_clr,a_cmp,a_cmpa,a_cmpi,a_cmpm,a_dbcc,a_dbcs,a_dbeq,a_dbge,
  37. a_dbgt,a_dbhi,a_dble,a_dbls,a_dblt,a_dbmi,a_dbne,a_dbra,
  38. a_dbpl,a_dbt,a_dbvc,a_dbvs,a_dbf,a_divs,a_divu,
  39. a_eor,a_eori,a_exg,a_illegal,a_ext,a_jmp,a_jsr,
  40. a_lea,a_link,a_lsl,a_lsr,a_move,a_movea,a_movei,a_moveq,
  41. a_movem,a_movep,a_muls,a_mulu,a_nbcd,a_neg,a_negx,
  42. a_nop,a_not,a_or,a_ori,a_pea,a_rol,a_ror,a_roxl,
  43. a_roxr,a_rtr,a_rts,a_sbcd,a_scc,a_scs,a_seq,a_sge,
  44. a_sgt,a_shi,a_sle,a_sls,a_slt,a_smi,a_sne,
  45. a_spl,a_st,a_svc,a_svs,a_sf,a_sub,a_suba,a_subi,a_subq,
  46. a_subx,a_swap,a_tas,a_trap,a_trapv,a_tst,a_unlk,
  47. a_rte,a_reset,a_stop,
  48. { mc68010 instructions }
  49. a_bkpt,a_movec,a_moves,a_rtd,
  50. { mc68020 instructions }
  51. a_bfchg,a_bfclr,a_bfexts,a_bfextu,a_bfffo,
  52. a_bfins,a_bfset,a_bftst,a_callm,a_cas,a_cas2,
  53. a_chk2,a_cmp2,a_divsl,a_divul,a_extb,a_pack,a_rtm,
  54. a_trapcc,a_tracs,a_trapeq,a_trapf,a_trapge,a_trapgt,
  55. a_traphi,a_traple,a_trapls,a_traplt,a_trapmi,a_trapne,
  56. a_trappl,a_trapt,a_trapvc,a_trapvs,a_unpk,
  57. { fpu processor instructions - directly supported only. }
  58. { ieee aware and misc. condition codes not supported }
  59. a_fabs,a_fadd,
  60. a_fbeq,a_fbne,a_fbngt,a_fbgt,a_fbge,a_fbnge,
  61. a_fblt,a_fbnlt,a_fble,a_fbgl,a_fbngl,a_fbgle,a_fbngle,
  62. a_fdbeq,a_fdbne,a_fdbgt,a_fdbngt,a_fdbge,a_fdbnge,
  63. a_fdblt,a_fdbnlt,a_fdble,a_fdbgl,a_fdbngl,a_fdbgle,a_fbdngle,
  64. a_fseq,a_fsne,a_fsgt,a_fsngt,a_fsge,a_fsnge,
  65. a_fslt,a_fsnlt,a_fsle,a_fsgl,a_fsngl,a_fsgle,a_fsngle,
  66. a_fcmp,a_fdiv,a_fmove,a_fmovem,
  67. a_fmul,a_fneg,a_fnop,a_fsqrt,a_fsub,a_fsgldiv,
  68. a_fsflmul,a_ftst,
  69. a_ftrapeq,a_ftrapne,a_ftrapgt,a_ftrapngt,a_ftrapge,a_ftrapnge,
  70. a_ftraplt,a_ftrapnlt,a_ftraple,a_ftrapgl,a_ftrapngl,a_ftrapgle,a_ftrapngle,
  71. { protected instructions }
  72. a_cprestore,a_cpsave,
  73. { fpu unit protected instructions }
  74. { and 68030/68851 common mmu instructions }
  75. { (this may include 68040 mmu instructions) }
  76. a_frestore,a_fsave,a_pflush,a_pflusha,a_pload,a_pmove,a_ptest,
  77. { useful for assembly langage output }
  78. a_label,a_none,a_dbxx,a_sxx,a_bxx,a_fbxx);
  79. {# This should define the array of instructions as string }
  80. op2strtable=array[tasmop] of string[11];
  81. Const
  82. {# First value of opcode enumeration }
  83. firstop = low(tasmop);
  84. {# Last value of opcode enumeration }
  85. lastop = high(tasmop);
  86. {*****************************************************************************
  87. Registers
  88. *****************************************************************************}
  89. type
  90. tregister = (
  91. R_NO,R_D0,R_D1,R_D2,R_D3,R_D4,R_D5,R_D6,R_D7,
  92. R_A0,R_A1,R_A2,R_A3,R_A4,R_A5,R_A6,R_SP,
  93. { PUSH/PULL- quick and dirty hack }
  94. R_SPPUSH,R_SPPULL,
  95. { misc. }
  96. R_CCR,R_FP0,R_FP1,R_FP2,R_FP3,R_FP4,R_FP5,R_FP6,
  97. R_FP7,R_FPCR,R_SR,R_SSP,R_DFC,R_SFC,R_VBR,R_FPSR);
  98. {# Set type definition for registers }
  99. tregisterset = set of tregister;
  100. { A type to store register locations for 64 Bit values. }
  101. tregister64 = packed record
  102. reglo,reghi : tregister;
  103. end;
  104. { alias for compact code }
  105. treg64 = tregister64;
  106. {# Type definition for the array of string of register nnames }
  107. reg2strtable = array[tregister] of string[7];
  108. Const
  109. {# First register in the tregister enumeration }
  110. firstreg = low(tregister);
  111. {# Last register in the tregister enumeration }
  112. lastreg = high(tregister);
  113. std_reg2str : reg2strtable =
  114. ('', 'd0','d1','d2','d3','d4','d5','d6','d7',
  115. 'a0','a1','a2','a3','a4','a5','a6','sp',
  116. '-(sp)','(sp)+',
  117. 'ccr','fp0','fp1','fp2','fp3','fp4','fp5',
  118. 'fp6','fp7','fpcr','sr','ssp','dfc',
  119. 'sfc','vbr','fpsr');
  120. {*****************************************************************************
  121. Conditions
  122. *****************************************************************************}
  123. {*****************************************************************************
  124. Conditions
  125. *****************************************************************************}
  126. type
  127. TAsmCond=(C_None,
  128. C_CC,C_LS,C_CS,C_LT,C_EQ,C_MI,C_F,C_NE,
  129. C_GE,C_PL,C_GT,C_T,C_HI,C_VC,C_LE,C_VS
  130. );
  131. const
  132. cond2str:array[TAsmCond] of string[3]=('',
  133. 'cc','ls','cs','lt','eq','mi','f','ne',
  134. 'ge','pl','gt','t','hi','vc','le','vs'
  135. );
  136. {*****************************************************************************
  137. Flags
  138. *****************************************************************************}
  139. type
  140. TResFlags = (
  141. F_E,F_NE,
  142. F_G,F_L,F_GE,F_LE,F_C,F_NC,F_A,F_AE,F_B,F_BE);
  143. {*****************************************************************************
  144. Reference
  145. *****************************************************************************}
  146. type
  147. trefoptions=(ref_none,ref_parafixup,ref_localfixup,ref_selffixup);
  148. { direction of address register : }
  149. { (An) (An)+ -(An) }
  150. tdirection = (dir_none,dir_inc,dir_dec);
  151. { reference record }
  152. preference = ^treference;
  153. treference = packed record
  154. base,
  155. index : tregister;
  156. scalefactor : byte;
  157. offset : longint;
  158. symbol : tasmsymbol;
  159. offsetfixup : longint;
  160. options : trefoptions;
  161. { indexed increment and decrement mode }
  162. { (An)+ and -(An) }
  163. direction : tdirection;
  164. end;
  165. { reference record }
  166. pparareference = ^tparareference;
  167. tparareference = packed record
  168. index : tregister;
  169. offset : longint;
  170. end;
  171. {*****************************************************************************
  172. Operands
  173. *****************************************************************************}
  174. { Types of operand }
  175. toptype=(top_none,top_reg,top_ref,top_const,top_symbol,top_reglist);
  176. tregisterlist = set of tregister;
  177. toper=record
  178. ot : longint;
  179. case typ : toptype of
  180. top_none : ();
  181. top_reg : (reg:tregister);
  182. top_ref : (ref:preference);
  183. top_const : (val:aword);
  184. top_symbol : (sym:tasmsymbol;symofs:longint);
  185. { used for pushing/popping multiple registers }
  186. top_reglist : (registerlist : tregisterlist);
  187. end;
  188. {*****************************************************************************
  189. Generic Location
  190. *****************************************************************************}
  191. type
  192. TLoc=(
  193. LOC_INVALID, { added for tracking problems}
  194. LOC_CONSTANT, { constant value }
  195. LOC_JUMP, { boolean results only, jump to false or true label }
  196. LOC_FLAGS, { boolean results only, flags are set }
  197. LOC_CREFERENCE, { in memory constant value reference (cannot change) }
  198. LOC_REFERENCE, { in memory value }
  199. LOC_REGISTER, { in a processor register }
  200. LOC_CREGISTER, { Constant register which shouldn't be modified }
  201. LOC_FPUREGISTER, { FPU stack }
  202. LOC_CFPUREGISTER { if it is a FPU register variable on the fpu stack }
  203. );
  204. { tparamlocation describes where a parameter for a procedure is stored.
  205. References are given from the caller's point of view. The usual
  206. TLocation isn't used, because contains a lot of unnessary fields.
  207. }
  208. tparalocation = packed record
  209. size : TCGSize;
  210. loc : TLoc;
  211. sp_fixup : longint;
  212. case TLoc of
  213. LOC_REFERENCE : (reference : tparareference);
  214. { segment in reference at the same place as in loc_register }
  215. LOC_REGISTER,LOC_CREGISTER : (
  216. case longint of
  217. 1 : (register,registerhigh : tregister);
  218. { overlay a registerlow }
  219. 2 : (registerlow : tregister);
  220. { overlay a 64 Bit register type }
  221. 3 : (reg64 : tregister64);
  222. 4 : (register64 : tregister64);
  223. );
  224. end;
  225. tlocation = packed record
  226. loc : TLoc;
  227. size : TCGSize;
  228. case TLoc of
  229. LOC_FLAGS : (resflags : tresflags);
  230. LOC_CONSTANT : (
  231. case longint of
  232. 1 : (value : AWord);
  233. { can't do this, this layout depends on the host cpu. Use }
  234. { lo(valueqword)/hi(valueqword) instead (JM) }
  235. { 2 : (valuelow, valuehigh:AWord); }
  236. { overlay a complete 64 Bit value }
  237. 3 : (valueqword : qword);
  238. );
  239. LOC_CREFERENCE,
  240. LOC_REFERENCE : (reference : treference);
  241. { segment in reference at the same place as in loc_register }
  242. LOC_REGISTER,LOC_CREGISTER : (
  243. case longint of
  244. 1 : (register,registerhigh,segment : tregister);
  245. { overlay a registerlow }
  246. 2 : (registerlow : tregister);
  247. { overlay a 64 Bit register type }
  248. 3 : (reg64 : tregister64);
  249. 4 : (register64 : tregister64);
  250. );
  251. end;
  252. {*****************************************************************************
  253. Operand Sizes
  254. *****************************************************************************}
  255. { S_NO = No Size of operand }
  256. { S_B = 8-bit size operand }
  257. { S_W = 16-bit size operand }
  258. { S_L = 32-bit size operand }
  259. { Floating point types }
  260. { S_FS = single type (32 bit) }
  261. { S_FD = double/64bit integer }
  262. { S_FX = Extended type }
  263. topsize = (S_NO,S_B,S_W,S_L,S_FS,S_FD,S_FX,S_IQ);
  264. {*****************************************************************************
  265. Constants
  266. *****************************************************************************}
  267. const
  268. {# maximum number of operands in assembler instruction }
  269. max_operands = 4;
  270. lvaluelocations = [LOC_REFERENCE,LOC_CFPUREGISTER,LOC_CREGISTER];
  271. {# Constant defining possibly all registers which might require saving }
  272. ALL_REGISTERS = [R_D1..R_FPCR];
  273. general_registers = [R_D0..R_D7];
  274. {# low and high of the available maximum width integer general purpose }
  275. { registers }
  276. LoGPReg = R_D0;
  277. HiGPReg = R_D7;
  278. {# low and high of every possible width general purpose register (same as }
  279. { above on most architctures apart from the 80x86) }
  280. LoReg = LoGPReg;
  281. HiReg = HiGPReg;
  282. { Table of registers which can be allocated by the code generator
  283. internally, when generating the code.
  284. legend:
  285. xxxregs = set of all possibly used registers of that type in the code
  286. generator
  287. usableregsxxx = set of all 32bit components of registers that can be
  288. possible allocated to a regvar or using getregisterxxx (this
  289. excludes registers which can be only used for parameter
  290. passing on ABI's that define this)
  291. c_countusableregsxxx = amount of registers in the usableregsxxx set }
  292. maxintregs = 8;
  293. intregs = [R_D0..R_D7];
  294. usableregsint = [R_D2..R_D7];
  295. c_countusableregsint = 6;
  296. maxfpuregs = 8;
  297. fpuregs = [R_FP0..R_FP7];
  298. usableregsfpu = [R_FP2..R_FP7];
  299. c_countusableregsfpu = 6;
  300. mmregs = [];
  301. usableregsmm = [];
  302. c_countusableregsmm = 0;
  303. maxaddrregs = 8;
  304. addrregs = [R_A0..R_SP];
  305. usableregsaddr = [R_A2..R_A4];
  306. c_countusableregsaddr = 3;
  307. { The first register in the usableregsint array }
  308. firstsaveintreg = R_D2;
  309. { The last register in the usableregsint array }
  310. lastsaveintreg = R_D7;
  311. { The first register in the usableregsfpu array }
  312. firstsavefpureg = R_FP2;
  313. { The last register in the usableregsfpu array }
  314. lastsavefpureg = R_FP7;
  315. { these constants are m68k specific }
  316. { The first register in the usableregsaddr array }
  317. firstsaveaddrreg = R_A2;
  318. { The last register in the usableregsaddr array }
  319. lastsaveaddrreg = R_A4;
  320. firstsavemmreg = R_NO;
  321. lastsavemmreg = R_NO;
  322. {
  323. Defines the maxinum number of integer registers which can be used as variable registers
  324. }
  325. maxvarregs = 6;
  326. { Array of integer registers which can be used as variable registers }
  327. varregs : Array [1..maxvarregs] of Tregister =
  328. (R_D2,R_D3,R_D4,R_D5,R_D6,R_D7);
  329. {
  330. Defines the maxinum number of float registers which can be used as variable registers
  331. }
  332. maxfpuvarregs = 6;
  333. { Array of float registers which can be used as variable registers }
  334. fpuvarregs : Array [1..maxfpuvarregs] of Tregister =
  335. (R_FP2,R_FP3,R_FP4,R_FP5,R_FP6,R_FP7);
  336. {
  337. Defines the number of integer registers which are used in the ABI to pass parameters
  338. (might be empty on systems which use the stack to pass parameters)
  339. }
  340. max_param_regs_int = 0;
  341. {param_regs_int: Array[1..max_param_regs_int] of tregister =
  342. (R_3,R_4,R_5,R_6,R_7,R_8,R_9,R_10);}
  343. {
  344. Defines the number of float registers which are used in the ABI to pass parameters
  345. (might be empty on systems which use the stack to pass parameters)
  346. }
  347. max_param_regs_fpu = 0;
  348. {param_regs_fpu: Array[1..max_param_regs_fpu] of tregister =
  349. (R_F1,R_F2,R_F3,R_F4,R_F5,R_F6,R_F7,R_F8,R_F9,R_F10,R_F11,R_F12,R_F13);}
  350. {
  351. Defines the number of mmx registers which are used in the ABI to pass parameters
  352. (might be empty on systems which use the stack to pass parameters)
  353. }
  354. max_param_regs_mm = 0;
  355. {param_regs_mm: Array[1..max_param_regs_mm] of tregister =
  356. (R_M1,R_M2,R_M3,R_M4,R_M5,R_M6,R_M7,R_M8,R_M9,R_M10,R_M11,R_M12,R_M13);}
  357. {# Registers which are defined as scratch integer and no need to save across
  358. routine calls or in assembler blocks.
  359. }
  360. max_scratch_regs = 2;
  361. scratch_regs: Array[1..max_scratch_regs] of TRegister = (R_D0,R_D1);
  362. {*****************************************************************************
  363. Default generic sizes
  364. *****************************************************************************}
  365. {# Defines the default address size for a processor, }
  366. OS_ADDR = OS_32;
  367. {# the natural int size for a processor, }
  368. OS_INT = OS_32;
  369. {# the maximum float size for a processor, }
  370. OS_FLOAT = OS_F64;
  371. {# the size of a vector register for a processor }
  372. OS_VECTOR = OS_M128;
  373. {*****************************************************************************
  374. GDB Information
  375. *****************************************************************************}
  376. {# Register indexes for stabs information, when some
  377. parameters or variables are stored in registers.
  378. Taken from m68kelf.h (DBX_REGISTER_NUMBER)
  379. from GCC 3.x source code.
  380. This is not compatible with the m68k-sun
  381. implementation.
  382. }
  383. stab_regindex : array[tregister] of shortint =
  384. (-1, { R_NO }
  385. 0,1,2,3,4,5,6,7, { R_D0..R_D7 }
  386. 8,9,10,11,12,13,14,15, { R_A0..R_A7 }
  387. -1,-1,-1, { R_SPPUSH, R_SPPULL, R_CCR }
  388. 18,19,20,21,22,23,24,25, { R_FP0..R_FP7 }
  389. -1,-1,-1,-1,-1,-1,-1);
  390. {*****************************************************************************
  391. Generic Register names
  392. *****************************************************************************}
  393. {# Stack pointer register }
  394. stack_pointer_reg = R_SP;
  395. {# Frame pointer register }
  396. frame_pointer_reg = R_A6;
  397. {# Self pointer register : contains the instance address of an
  398. object or class. }
  399. self_pointer_reg = R_A5;
  400. {# Register for addressing absolute data in a position independant way,
  401. such as in PIC code. The exact meaning is ABI specific. For
  402. further information look at GCC source : PIC_OFFSET_TABLE_REGNUM
  403. }
  404. pic_offset_reg = R_A5;
  405. {# Results are returned in this register (32-bit values) }
  406. accumulator = R_D0;
  407. {# Hi-Results are returned in this register (64-bit value high register) }
  408. accumulatorhigh = R_D1;
  409. {# Floating point results will be placed into this register }
  410. FPU_RESULT_REG = R_FP0;
  411. mmresultreg = R_NO;
  412. {*****************************************************************************
  413. GCC /ABI linking information
  414. *****************************************************************************}
  415. {# Registers which must be saved when calling a routine declared as
  416. cppdecl, cdecl, stdcall, safecall, palmossyscall. The registers
  417. saved should be the ones as defined in the target ABI and / or GCC.
  418. This value can be deduced from CALLED_USED_REGISTERS array in the
  419. GCC source.
  420. }
  421. std_saved_registers = [R_D2..R_D7,R_A2..R_A5];
  422. {# Required parameter alignment when calling a routine declared as
  423. stdcall and cdecl. The alignment value should be the one defined
  424. by GCC or the target ABI.
  425. The value of this constant is equal to the constant
  426. PARM_BOUNDARY / BITS_PER_UNIT in the GCC source.
  427. }
  428. std_param_align = 4; { for 32-bit version only }
  429. {*****************************************************************************
  430. CPU Dependent Constants
  431. *****************************************************************************}
  432. {*****************************************************************************
  433. Helpers
  434. *****************************************************************************}
  435. function is_calljmp(o:tasmop):boolean;
  436. procedure inverse_flags(var r : TResFlags);
  437. function flags_to_cond(const f: TResFlags) : TAsmCond;
  438. implementation
  439. uses
  440. verbose;
  441. {*****************************************************************************
  442. Helpers
  443. *****************************************************************************}
  444. function is_calljmp(o:tasmop):boolean;
  445. begin
  446. is_calljmp := false;
  447. if o in [A_BXX,A_FBXX,A_DBXX,A_BCC..A_BVS,A_DBCC..A_DBVS,A_FBEQ..A_FSNGLE,
  448. A_JSR,A_BSR,A_JMP] then
  449. is_calljmp := true;
  450. end;
  451. procedure inverse_flags(var r: TResFlags);
  452. const flagsinvers : array[F_E..F_BE] of tresflags =
  453. (F_NE,F_E,
  454. F_LE,F_GE,
  455. F_L,F_G,
  456. F_NC,F_C,
  457. F_BE,F_B,
  458. F_AE,F_A);
  459. begin
  460. r:=flagsinvers[r];
  461. end;
  462. function flags_to_cond(const f: TResFlags) : TAsmCond;
  463. begin
  464. end;
  465. end.
  466. {
  467. $Log$
  468. Revision 1.9 2002-08-15 08:13:54 carl
  469. - a_load_sym_ofs_reg removed
  470. * loadvmt now calls loadaddr_ref_reg instead
  471. Revision 1.8 2002/08/14 18:41:47 jonas
  472. - remove valuelow/valuehigh fields from tlocation, because they depend
  473. on the endianess of the host operating system -> difficult to get
  474. right. Use lo/hi(location.valueqword) instead (remember to use
  475. valueqword and not value!!)
  476. Revision 1.7 2002/08/13 21:40:58 florian
  477. * more fixes for ppc calling conventions
  478. Revision 1.6 2002/08/13 18:58:54 carl
  479. + m68k problems with cvs fixed?()!
  480. Revision 1.4 2002/08/12 15:08:44 carl
  481. + stab register indexes for powerpc (moved from gdb to cpubase)
  482. + tprocessor enumeration moved to cpuinfo
  483. + linker in target_info is now a class
  484. * many many updates for m68k (will soon start to compile)
  485. - removed some ifdef or correct them for correct cpu
  486. Revision 1.3 2002/07/29 17:51:32 carl
  487. + restart m68k support
  488. }