isa_traits.hh (4661:44458219add1) 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;

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

69 const int MaxInstDestRegs = 4;
70
71 // semantically meaningful register indices
72 const int ZeroReg = 0;
73 const int AssemblerReg = 1;
74 const int ReturnValueReg = 2;
75 const int ReturnValueReg1 = 2;
76 const int ReturnValueReg2 = 3;
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;

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

69 const int MaxInstDestRegs = 4;
70
71 // semantically meaningful register indices
72 const int ZeroReg = 0;
73 const int AssemblerReg = 1;
74 const int ReturnValueReg = 2;
75 const int ReturnValueReg1 = 2;
76 const int ReturnValueReg2 = 3;
77 const int ArgumentReg0 = 4;
78 const int ArgumentReg1 = 5;
79 const int ArgumentReg2 = 6;
80 const int ArgumentReg3 = 7;
77
78 const int ArgumentReg[] = {4, 5, 6, 7};
79 const int NumArgumentRegs = sizeof(ArgumentReg) / sizeof(const int);
80
81 const int KernelReg0 = 26;
82 const int KernelReg1 = 27;
83 const int GlobalPointerReg = 28;
84 const int StackPointerReg = 29;
85 const int FramePointerReg = 30;
86 const int ReturnAddressReg = 31;
87
88 const int SyscallNumReg = ReturnValueReg1;
89 const int SyscallPseudoReturnReg = ReturnValueReg2;
81 const int KernelReg0 = 26;
82 const int KernelReg1 = 27;
83 const int GlobalPointerReg = 28;
84 const int StackPointerReg = 29;
85 const int FramePointerReg = 30;
86 const int ReturnAddressReg = 31;
87
88 const int SyscallNumReg = ReturnValueReg1;
89 const int SyscallPseudoReturnReg = ReturnValueReg2;
90 const int SyscallSuccessReg = ArgumentReg3;
90 const int SyscallSuccessReg = ArgumentReg[3];
91
92 const int LogVMPageSize = 13; // 8K bytes
93 const int VMPageSize = (1 << LogVMPageSize);
94
95 const int BranchPredAddrShiftAmt = 2; // instructions are 4-byte aligned
96
97 const int MachineBytes = 4;
98 const int WordBytes = 4;

--- 178 unchanged lines hidden ---
91
92 const int LogVMPageSize = 13; // 8K bytes
93 const int VMPageSize = (1 << LogVMPageSize);
94
95 const int BranchPredAddrShiftAmt = 2; // instructions are 4-byte aligned
96
97 const int MachineBytes = 4;
98 const int WordBytes = 4;

--- 178 unchanged lines hidden ---