isa_traits.hh (4641:7bfba41846c2) isa_traits.hh (4772:f08370a81812)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 55 unchanged lines hidden (view full) ---

64
65 // semantically meaningful register indices
66 const int ZeroReg = 0; // architecturally meaningful
67 // the rest of these depend on the ABI
68 const int StackPointerReg = 14;
69 const int ReturnAddressReg = 31; // post call, precall is 15
70 const int ReturnValueReg = 8; // Post return, 24 is pre-return.
71 const int FramePointerReg = 30;
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 55 unchanged lines hidden (view full) ---

64
65 // semantically meaningful register indices
66 const int ZeroReg = 0; // architecturally meaningful
67 // the rest of these depend on the ABI
68 const int StackPointerReg = 14;
69 const int ReturnAddressReg = 31; // post call, precall is 15
70 const int ReturnValueReg = 8; // Post return, 24 is pre-return.
71 const int FramePointerReg = 30;
72 const int ArgumentReg0 = 8;
73 const int ArgumentReg1 = 9;
74 const int ArgumentReg2 = 10;
75 const int ArgumentReg3 = 11;
76 const int ArgumentReg4 = 12;
77 const int ArgumentReg5 = 13;
72
73 const int ArgumentReg[] = {8, 9, 10, 11, 12, 13};
74 const int NumArgumentRegs = sizeof(ArgumentReg) / sizeof(const int);
75
78 // Some OS syscall use a second register (o1) to return a second value
76 // Some OS syscall use a second register (o1) to return a second value
79 const int SyscallPseudoReturnReg = ArgumentReg1;
77 const int SyscallPseudoReturnReg = ArgumentReg[1];
80
81 //XXX These numbers are bogus
82 const int MaxInstSrcRegs = 8;
83 const int MaxInstDestRegs = 9;
84
85 //8K. This value is implmentation specific; and should probably
86 //be somewhere else.
87 const int LogVMPageSize = 13;

--- 44 unchanged lines hidden ---
78
79 //XXX These numbers are bogus
80 const int MaxInstSrcRegs = 8;
81 const int MaxInstDestRegs = 9;
82
83 //8K. This value is implmentation specific; and should probably
84 //be somewhere else.
85 const int LogVMPageSize = 13;

--- 44 unchanged lines hidden ---