cpubase.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Contains the base types for the SPARC
  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 do not fully include the Ultra SPRAC instruction set.}
  30. { don't change the order of these opcodes! }
  31. TAsmOp=({$INCLUDE opcode.inc});
  32. {# This should define the array of instructions as string }
  33. op2strtable=array[tasmop] of string[11];
  34. Const
  35. {# First value of opcode enumeration }
  36. firstop = low(tasmop);
  37. {# Last value of opcode enumeration }
  38. lastop = high(tasmop);
  39. std_op2str:op2strtable=({$INCLUDE strinst.inc});
  40. {*****************************************************************************
  41. Registers
  42. *****************************************************************************}
  43. type
  44. { Number of registers used for indexing in tables }
  45. tregisterindex=0..{$i rspnor.inc}-1;
  46. totherregisterset = set of tregisterindex;
  47. const
  48. { Available Superregisters }
  49. {$i rspsup.inc}
  50. { No Subregisters }
  51. R_SUBWHOLE=R_SUBNONE;
  52. { Available Registers }
  53. {$i rspcon.inc}
  54. { Integer Super registers first and last }
  55. {$warning Supreg shall be $00-$1f}
  56. first_int_supreg = $00;
  57. last_int_supreg = $1f;
  58. first_int_imreg = $20;
  59. last_int_imreg = $fe;
  60. { Float Super register first and last }
  61. first_fpu_supreg = $00;
  62. last_fpu_supreg = $1f;
  63. first_fpu_imreg = $20;
  64. last_fpu_imreg = $fe;
  65. { MM Super register first and last }
  66. first_mmx_supreg = RS_INVALID;
  67. last_mmx_supreg = RS_INVALID;
  68. first_mmx_imreg = RS_INVALID;
  69. last_mmx_imreg = RS_INVALID;
  70. {$warning TODO Calculate bsstart}
  71. regnumber_count_bsstart = 128;
  72. regnumber_table : array[tregisterindex] of tregister = (
  73. {$i rspnum.inc}
  74. );
  75. regstabs_table : array[tregisterindex] of tregister = (
  76. {$i rspstab.inc}
  77. );
  78. {*****************************************************************************
  79. Conditions
  80. *****************************************************************************}
  81. type
  82. TAsmCond=(C_None,
  83. C_A,C_AE,C_B,C_BE,C_C,C_E,C_G,C_GE,C_L,C_LE,C_NA,C_NAE,
  84. C_NB,C_NBE,C_NC,C_NE,C_NG,C_NGE,C_NL,C_NLE,C_NO,C_NP,
  85. C_NS,C_NZ,C_O,C_P,C_PE,C_PO,C_S,C_Z
  86. );
  87. const
  88. cond2str:array[TAsmCond] of string[3]=('',
  89. 'gu','cc','cs','leu','cs','e','g','ge','l','le','leu','cs',
  90. 'cc','gu','cc','ne','le','l','ge','g','vc','XX',
  91. 'pos','ne','vs','XX','XX','XX','vs','e'
  92. );
  93. inverse_cond:array[TAsmCond] of TAsmCond=(C_None,
  94. C_NA,C_NAE,C_NB,C_NBE,C_NC,C_NE,C_NG,C_NGE,C_NL,C_NLE,C_A,C_AE,
  95. C_B,C_BE,C_C,C_E,C_G,C_GE,C_L,C_LE,C_O,C_P,
  96. C_S,C_Z,C_NO,C_NP,C_NP,C_P,C_NS,C_NZ
  97. );
  98. const
  99. CondAsmOps=1;
  100. CondAsmOp:array[0..CondAsmOps-1] of TAsmOp=(
  101. A_Bxx
  102. );
  103. CondAsmOpStr:array[0..CondAsmOps-1] of string[7]=(
  104. 'B'
  105. );
  106. {*****************************************************************************
  107. Flags
  108. *****************************************************************************}
  109. type
  110. TResFlags=(
  111. F_E, {Equal}
  112. F_NE, {Not Equal}
  113. F_G, {Greater}
  114. F_L, {Less}
  115. F_GE, {Greater or Equal}
  116. F_LE, {Less or Equal}
  117. F_C, {Carry}
  118. F_NC, {Not Carry}
  119. F_A, {Above}
  120. F_AE, {Above or Equal}
  121. F_B, {Below}
  122. F_BE {Below or Equal}
  123. );
  124. {*****************************************************************************
  125. Reference
  126. *****************************************************************************}
  127. type
  128. TRefOptions=(ref_none,ref_parafixup,ref_localfixup,ref_selffixup);
  129. { since we have no full 32 bit offsets, we need to be able to specify the high
  130. and low bits of the address of a symbol }
  131. trefsymaddr = (refs_no,refs_full,refs_hi,refs_lo);
  132. { reference record }
  133. preference = ^treference;
  134. treference = packed record
  135. { base register, R_NO if none }
  136. base,
  137. { index register, R_NO if none }
  138. index : tregister;
  139. { offset, 0 if none }
  140. offset : longint;
  141. { symbol this reference refers to, nil if none }
  142. symbol : tasmsymbol;
  143. { used in conjunction with symbols and offsets: refs_full means }
  144. { means a full 32bit reference, refs_hi means the upper 16 bits }
  145. { and refs_lo the lower 16 bits of the address }
  146. symaddr : trefsymaddr;
  147. { changed when inlining and possibly in other cases, don't }
  148. { set manually }
  149. offsetfixup : longint;
  150. { used in conjunction with the previous field }
  151. options : trefoptions;
  152. { alignment this reference is guaranteed to have }
  153. alignment : byte;
  154. end;
  155. { reference record }
  156. pparareference = ^tparareference;
  157. tparareference = packed record
  158. index : tregister;
  159. offset : aword;
  160. end;
  161. const
  162. symaddr2str: array[trefsymaddr] of string[3] = ('','','%hi','%lo');
  163. {*****************************************************************************
  164. Operand
  165. *****************************************************************************}
  166. type
  167. toptype=(top_none,top_reg,top_ref,top_const,top_symbol);
  168. toper=record
  169. ot:LongInt;
  170. case typ:toptype of
  171. top_none:();
  172. top_reg:(reg:tregister);
  173. top_ref:(ref:preference);
  174. top_const:(val:aword);
  175. top_symbol:(sym:tasmsymbol;symofs:LongInt);
  176. end;
  177. {*****************************************************************************
  178. Operand Sizes
  179. *****************************************************************************}
  180. {$ifdef dummy}
  181. {*****************************************************************************
  182. Argument Classification
  183. *****************************************************************************}
  184. type
  185. TArgClass = (
  186. { the following classes should be defined by all processor implemnations }
  187. AC_NOCLASS,
  188. AC_MEMORY,
  189. AC_INTEGER,
  190. AC_FPU,
  191. { the following argument classes are i386 specific }
  192. AC_FPUUP,
  193. AC_SSE,
  194. AC_SSEUP);
  195. {$endif dummy}
  196. {*****************************************************************************
  197. Generic Location
  198. *****************************************************************************}
  199. type
  200. { tparamlocation describes where a parameter for a procedure is stored.
  201. References are given from the caller's point of view. The usual
  202. TLocation isn't used, because contains a lot of unnessary fields.
  203. }
  204. tparalocation = packed record
  205. size : TCGSize;
  206. { The location type where the parameter is passed, usually
  207. LOC_REFERENCE,LOC_REGISTER or LOC_FPUREGISTER
  208. }
  209. loc : TCGLoc;
  210. { The stack pointer must be decreased by this value before
  211. the parameter is copied to the given destination.
  212. This allows to "encode" pushes with tparalocation.
  213. On the PowerPC, this field is unsed but it is there
  214. because several generic code accesses it.
  215. }
  216. sp_fixup : longint;
  217. case TCGLoc of
  218. LOC_REFERENCE : (reference : tparareference; low_in_reg: boolean; lowreg : tregister);
  219. LOC_FPUREGISTER, LOC_CFPUREGISTER, LOC_MMREGISTER, LOC_CMMREGISTER,
  220. LOC_REGISTER,LOC_CREGISTER : (
  221. case longint of
  222. 1 : (register,registerhigh : tregister);
  223. { overlay a registerlow }
  224. 2 : (registerlow : tregister);
  225. { overlay a 64 Bit register type }
  226. 3 : (reg64 : tregister64);
  227. 4 : (register64 : tregister64);
  228. );
  229. end;
  230. treglocation = packed record
  231. case longint of
  232. 1 : (register,registerhigh : tregister);
  233. { overlay a registerlow }
  234. 2 : (registerlow : tregister);
  235. { overlay a 64 Bit register type }
  236. 3 : (reg64 : tregister64);
  237. 4 : (register64 : tregister64);
  238. end;
  239. tlocation = packed record
  240. size : TCGSize;
  241. loc : tcgloc;
  242. case tcgloc of
  243. LOC_CREFERENCE,LOC_REFERENCE : (reference : treference);
  244. LOC_CONSTANT : (
  245. case longint of
  246. {$ifdef FPC_BIG_ENDIAN}
  247. 1 : (_valuedummy,value : AWord);
  248. {$else FPC_BIG_ENDIAN}
  249. 1 : (value : AWord);
  250. {$endif FPC_BIG_ENDIAN}
  251. { can't do this, this layout depends on the host cpu. Use }
  252. { lo(valueqword)/hi(valueqword) instead (JM) }
  253. { 2 : (valuelow, valuehigh:AWord); }
  254. { overlay a complete 64 Bit value }
  255. 3 : (valueqword : qword);
  256. );
  257. LOC_FPUREGISTER, LOC_CFPUREGISTER, LOC_MMREGISTER, LOC_CMMREGISTER,
  258. LOC_REGISTER,LOC_CREGISTER : (
  259. case longint of
  260. 1 : (registerlow,registerhigh : tregister);
  261. 2 : (register : tregister);
  262. { overlay a 64 Bit register type }
  263. 3 : (reg64 : tregister64);
  264. 4 : (register64 : tregister64);
  265. );
  266. LOC_FLAGS : (resflags : tresflags);
  267. end;
  268. {*****************************************************************************
  269. Constants
  270. *****************************************************************************}
  271. const
  272. max_operands = 3;
  273. {# Constant defining possibly all registers which might require saving }
  274. ALL_OTHERREGISTERS = [];
  275. general_superregisters = [RS_O0..RS_I7];
  276. {# Table of registers which can be allocated by the code generator
  277. internally, when generating the code.
  278. }
  279. { legend: }
  280. { xxxregs = set of all possibly used registers of that type in the code }
  281. { generator }
  282. { usableregsxxx = set of all 32bit components of registers that can be }
  283. { possible allocated to a regvar or using getregisterxxx (this }
  284. { excludes registers which can be only used for parameter }
  285. { passing on ABI's that define this) }
  286. { c_countusableregsxxx = amount of registers in the usableregsxxx set }
  287. maxintregs = 8;
  288. { to determine how many registers to use for regvars }
  289. maxintscratchregs = 3;
  290. usableregsint = [RS_L0..RS_L7];
  291. c_countusableregsint = 8;
  292. maxfpuregs = 8;
  293. usableregsfpu=[RS_F0..RS_F31];
  294. c_countusableregsfpu=32;
  295. mmregs = [];
  296. usableregsmm = [];
  297. c_countusableregsmm = 0;
  298. { no distinction on this platform }
  299. maxaddrregs = 0;
  300. addrregs = [];
  301. usableregsaddr = [];
  302. c_countusableregsaddr = 0;
  303. {$warning firstsaveintreg shall be RS_NO}
  304. firstsaveintreg = RS_L0; { Temporary, having RS_NO is broken }
  305. lastsaveintreg = RS_L0; { L0..L7 are already saved, I0..O7 are parameter }
  306. firstsavefpureg = RS_F2; { F0..F1 is used for return value }
  307. lastsavefpureg = RS_F31;
  308. firstsavemmreg = RS_INVALID;
  309. lastsavemmreg = RS_INVALID;
  310. maxvarregs = 8;
  311. varregs : Array [1..maxvarregs] of Tsuperregister =
  312. (RS_L0,RS_L1,RS_L2,RS_L3,RS_L4,RS_L5,RS_L6,RS_L7);
  313. maxfpuvarregs = 1;
  314. fpuvarregs : Array [1..maxfpuvarregs] of TsuperRegister =
  315. (RS_F2);
  316. {
  317. max_param_regs_int = 6;
  318. param_regs_int: Array[1..max_param_regs_int] of TCpuRegister =
  319. (R_3,R_4,R_5,R_6,R_7,R_8,R_9,R_10);
  320. max_param_regs_fpu = 13;
  321. param_regs_fpu: Array[1..max_param_regs_fpu] of TCpuRegister =
  322. (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);
  323. max_param_regs_mm = 13;
  324. param_regs_mm: Array[1..max_param_regs_mm] of TCpuRegister =
  325. (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);
  326. }
  327. {*****************************************************************************
  328. Default generic sizes
  329. *****************************************************************************}
  330. {# Defines the default address size for a processor, }
  331. OS_ADDR = OS_32;
  332. {# the natural int size for a processor, }
  333. OS_INT = OS_32;
  334. {# the maximum float size for a processor, }
  335. OS_FLOAT = OS_F64;
  336. {# the size of a vector register for a processor }
  337. OS_VECTOR = OS_M64;
  338. {*****************************************************************************
  339. Generic Register names
  340. *****************************************************************************}
  341. {# Stack pointer register }
  342. NR_STACK_POINTER_REG = NR_O6;
  343. RS_STACK_POINTER_REG = RS_O6;
  344. {# Frame pointer register }
  345. NR_FRAME_POINTER_REG = NR_I6;
  346. RS_FRAME_POINTER_REG = RS_I6;
  347. {# Register for addressing absolute data in a position independant way,
  348. such as in PIC code. The exact meaning is ABI specific. For
  349. further information look at GCC source : PIC_OFFSET_TABLE_REGNUM
  350. Taken from GCC rs6000.h
  351. }
  352. {$warning As indicated in rs6000.h, but can't find it anywhere else!}
  353. {PIC_OFFSET_REG = R_30;}
  354. { the return_result_reg, is used inside the called function to store its return
  355. value when that is a scalar value otherwise a pointer to the address of the
  356. result is placed inside it }
  357. { Results are returned in this register (32-bit values) }
  358. NR_FUNCTION_RETURN_REG = NR_I0;
  359. RS_FUNCTION_RETURN_REG = RS_I0;
  360. { Low part of 64bit return value }
  361. NR_FUNCTION_RETURN64_LOW_REG = NR_I1;
  362. RS_FUNCTION_RETURN64_LOW_REG = RS_I1;
  363. { High part of 64bit return value }
  364. NR_FUNCTION_RETURN64_HIGH_REG = NR_I0;
  365. RS_FUNCTION_RETURN64_HIGH_REG = RS_I0;
  366. { The value returned from a function is available in this register }
  367. NR_FUNCTION_RESULT_REG = NR_O0;
  368. RS_FUNCTION_RESULT_REG = RS_O0;
  369. { The lowh part of 64bit value returned from a function }
  370. NR_FUNCTION_RESULT64_LOW_REG = NR_O1;
  371. RS_FUNCTION_RESULT64_LOW_REG = RS_O1;
  372. { The high part of 64bit value returned from a function }
  373. NR_FUNCTION_RESULT64_HIGH_REG = NR_O0;
  374. RS_FUNCTION_RESULT64_HIGH_REG = RS_O0;
  375. NR_FPU_RESULT_REG = NR_F0;
  376. NR_MM_RESULT_REG = NR_NO;
  377. PARENT_FRAMEPOINTER_OFFSET = 68; { o0 }
  378. {*****************************************************************************
  379. GCC /ABI linking information
  380. *****************************************************************************}
  381. {# Registers which must be saved when calling a routine declared as
  382. cppdecl, cdecl, stdcall, safecall, palmossyscall. The registers
  383. saved should be the ones as defined in the target ABI and / or GCC.
  384. This value can be deduced from CALLED_USED_REGISTERS array in the
  385. GCC source.
  386. }
  387. std_saved_registers = [];
  388. {# Required parameter alignment when calling a routine declared as
  389. stdcall and cdecl. The alignment value should be the one defined
  390. by GCC or the target ABI.
  391. The value of this constant is equal to the constant
  392. PARM_BOUNDARY / BITS_PER_UNIT in the GCC source.
  393. }
  394. std_param_align = 4; { for 32-bit version only }
  395. {*****************************************************************************
  396. CPU Dependent Constants
  397. *****************************************************************************}
  398. const
  399. simm13lo=-4096;
  400. simm13hi=4095;
  401. {*****************************************************************************
  402. Helpers
  403. *****************************************************************************}
  404. function is_calljmp(o:tasmop):boolean;
  405. procedure inverse_flags(var f: TResFlags);
  406. function flags_to_cond(const f: TResFlags) : TAsmCond;
  407. function cgsize2subreg(s:Tcgsize):Tsubregister;
  408. function findreg_by_number(r:Tregister):tregisterindex;
  409. function std_regnum_search(const s:string):Tregister;
  410. function std_regname(r:Tregister):string;
  411. function gas_regname(r:Tregister):string;
  412. implementation
  413. uses
  414. verbose;
  415. const
  416. std_regname_table : array[tregisterindex] of string[7] = (
  417. {$i rspstd.inc}
  418. );
  419. regnumber_index : array[tregisterindex] of tregisterindex = (
  420. {$i rsprni.inc}
  421. );
  422. std_regname_index : array[tregisterindex] of tregisterindex = (
  423. {$i rspsri.inc}
  424. );
  425. {*****************************************************************************
  426. Helpers
  427. *****************************************************************************}
  428. function is_calljmp(o:tasmop):boolean;
  429. const
  430. CallJmpOp=[A_JMPL..A_CBccc];
  431. begin
  432. is_calljmp:=(o in CallJmpOp);
  433. end;
  434. procedure inverse_flags(var f: TResFlags);
  435. const
  436. inv_flags: array[TResFlags] of TResFlags =
  437. (F_NE,F_E,F_LE,F_GE,F_L,F_G,F_NC,F_C,F_BE,F_B,F_AE,F_A);
  438. begin
  439. f:=inv_flags[f];
  440. end;
  441. function flags_to_cond(const f:TResFlags):TAsmCond;
  442. const
  443. flags_2_cond:array[TResFlags] of TAsmCond=
  444. (C_E,C_NE,C_G,C_L,C_GE,C_LE,C_C,C_NC,C_A,C_AE,C_B,C_BE);
  445. begin
  446. result:=flags_2_cond[f];
  447. end;
  448. function cgsize2subreg(s:Tcgsize):Tsubregister;
  449. begin
  450. cgsize2subreg:=R_SUBWHOLE;
  451. end;
  452. function findreg_by_stdname(const s:string):byte;
  453. var
  454. i,p : tregisterindex;
  455. begin
  456. {Binary search.}
  457. p:=0;
  458. i:=regnumber_count_bsstart;
  459. repeat
  460. if (p+i<=high(tregisterindex)) and (std_regname_table[std_regname_index[p+i]]<=s) then
  461. p:=p+i;
  462. i:=i shr 1;
  463. until i=0;
  464. if std_regname_table[std_regname_index[p]]=s then
  465. result:=std_regname_index[p]
  466. else
  467. result:=0;
  468. end;
  469. function findreg_by_number(r:Tregister):tregisterindex;
  470. var
  471. i,p : tregisterindex;
  472. begin
  473. {Binary search.}
  474. p:=0;
  475. i:=regnumber_count_bsstart;
  476. repeat
  477. if (p+i<=high(tregisterindex)) and (regnumber_table[regnumber_index[p+i]]<=r) then
  478. p:=p+i;
  479. i:=i shr 1;
  480. until i=0;
  481. if regnumber_table[regnumber_index[p]]=r then
  482. result:=regnumber_index[p]
  483. else
  484. result:=0;
  485. end;
  486. function std_regnum_search(const s:string):Tregister;
  487. begin
  488. result:=regnumber_table[findreg_by_stdname(s)];
  489. end;
  490. function std_regname(r:Tregister):string;
  491. var
  492. p : tregisterindex;
  493. begin
  494. p:=findreg_by_number(r);
  495. if p<>0 then
  496. result:=std_regname_table[p]
  497. else
  498. result:=generic_regname(r);
  499. end;
  500. function gas_regname(r:Tregister):string;
  501. var
  502. p : tregisterindex;
  503. begin
  504. p:=findreg_by_number(r);
  505. if p<>0 then
  506. result:=std_regname_table[p]
  507. else
  508. result:=generic_regname(r);
  509. end;
  510. end.
  511. {
  512. $Log$
  513. Revision 1.51 2003-09-14 21:35:15 peter
  514. * new volatile registers proc
  515. Revision 1.50 2003/09/14 19:19:05 peter
  516. * updates for new ra
  517. Revision 1.49 2003/09/03 16:29:37 peter
  518. * superregisters also from .dat file
  519. Revision 1.48 2003/09/03 15:55:01 peter
  520. * NEWRA branch merged
  521. Revision 1.47.2.3 2003/09/02 17:49:17 peter
  522. * newra updates
  523. Revision 1.47.2.2 2003/09/01 21:02:55 peter
  524. * sparc updates for new tregister
  525. Revision 1.47.2.1 2003/08/31 21:08:16 peter
  526. * first batch of sparc fixes
  527. Revision 1.47 2003/08/19 13:22:51 mazen
  528. + implemented gas_regname based on convert_register_to_enum std_Reg2str
  529. Revision 1.46 2003/08/17 16:59:20 jonas
  530. * fixed regvars so they work with newra (at least for ppc)
  531. * fixed some volatile register bugs
  532. + -dnotranslation option for -dnewra, which causes the registers not to
  533. be translated from virtual to normal registers. Requires support in
  534. the assembler writer as well, which is only implemented in aggas/
  535. agppcgas currently
  536. Revision 1.45 2003/07/06 17:58:22 peter
  537. * framepointer fixes for sparc
  538. * parent framepointer code more generic
  539. Revision 1.44 2003/07/02 22:18:04 peter
  540. * paraloc splitted in callerparaloc,calleeparaloc
  541. * sparc calling convention updates
  542. Revision 1.43 2003/06/17 16:34:44 jonas
  543. * lots of newra fixes (need getfuncretparaloc implementation for i386)!
  544. * renamed all_intregisters to volatile_intregisters and made it
  545. processor dependent
  546. Revision 1.42 2003/06/13 21:08:30 peter
  547. * supreg_name added
  548. Revision 1.41 2003/06/12 19:11:34 jonas
  549. - removed ALL_INTREGISTERS (only the one in rgobj is valid)
  550. Revision 1.40 2003/06/04 21:00:54 mazen
  551. - making TOldRegister only declared for compatibility and
  552. no more used in cpubase
  553. Revision 1.39 2003/06/01 21:38:06 peter
  554. * getregisterfpu size parameter added
  555. * op_const_reg size parameter added
  556. * sparc updates
  557. Revision 1.38 2003/06/01 01:04:35 peter
  558. * reference fixes
  559. Revision 1.37 2003/05/31 15:05:28 peter
  560. * FUNCTION_RESULT64_LOW/HIGH_REG added for int64 results
  561. Revision 1.36 2003/05/31 01:00:51 peter
  562. * register fixes
  563. Revision 1.35 2003/05/30 23:57:08 peter
  564. * more sparc cleanup
  565. * accumulator removed, splitted in function_return_reg (called) and
  566. function_result_reg (caller)
  567. }