base.isa (2944:10dcffb2904f) | base.isa (2951:b9c5f8ad38c2) |
---|---|
1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 71 unchanged lines hidden (view full) --- 80 MachInst _machInst, OpClass __opClass) 81 : StaticInst(mnem, _machInst, __opClass) 82 { 83 } 84 85 std::string generateDisassembly(Addr pc, 86 const SymbolTable *symtab) const; 87 | 1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 71 unchanged lines hidden (view full) --- 80 MachInst _machInst, OpClass __opClass) 81 : StaticInst(mnem, _machInst, __opClass) 82 { 83 } 84 85 std::string generateDisassembly(Addr pc, 86 const SymbolTable *symtab) const; 87 |
88 void printReg(std::ostream &os, RegIndex reg) const; | 88 void printReg(std::ostream &os, int reg) const; |
89 void printSrcReg(std::ostream &os, int reg) const; 90 void printDestReg(std::ostream &os, int reg) const; 91 92 void printRegArray(std::ostream &os, 93 const RegIndex indexArray[], int num) const; 94 }; 95 96 bool passesCondition(uint32_t codes, uint32_t condition); --- 81 unchanged lines hidden (view full) --- 178 void 179 SparcStaticInst::printDestReg(std::ostream &os, int reg) const 180 { 181 if(_numDestRegs > reg) 182 printReg(os, _destRegIdx[reg]); 183 } 184 185 void | 89 void printSrcReg(std::ostream &os, int reg) const; 90 void printDestReg(std::ostream &os, int reg) const; 91 92 void printRegArray(std::ostream &os, 93 const RegIndex indexArray[], int num) const; 94 }; 95 96 bool passesCondition(uint32_t codes, uint32_t condition); --- 81 unchanged lines hidden (view full) --- 178 void 179 SparcStaticInst::printDestReg(std::ostream &os, int reg) const 180 { 181 if(_numDestRegs > reg) 182 printReg(os, _destRegIdx[reg]); 183 } 184 185 void |
186 SparcStaticInst::printReg(std::ostream &os, RegIndex reg) const | 186 SparcStaticInst::printReg(std::ostream &os, int reg) const |
187 { 188 const int MaxGlobal = 8; 189 const int MaxOutput = 16; 190 const int MaxLocal = 24; 191 const int MaxInput = 32; 192 if (reg == FramePointerReg) 193 ccprintf(os, "%%fp"); 194 else if (reg == StackPointerReg) --- 90 unchanged lines hidden --- | 187 { 188 const int MaxGlobal = 8; 189 const int MaxOutput = 16; 190 const int MaxLocal = 24; 191 const int MaxInput = 32; 192 if (reg == FramePointerReg) 193 ccprintf(os, "%%fp"); 194 else if (reg == StackPointerReg) --- 90 unchanged lines hidden --- |