main.isa (12104:edd63f9c6184) | main.isa (12106:7784fac1b159) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 232 unchanged lines hidden (view full) --- 241 } 242 }; 243}}; 244 245output decoder {{ 246 void 247 AlphaStaticInst::printReg(std::ostream &os, RegId reg) const 248 { | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 232 unchanged lines hidden (view full) --- 241 } 242 }; 243}}; 244 245output decoder {{ 246 void 247 AlphaStaticInst::printReg(std::ostream &os, RegId reg) const 248 { |
249 if (reg.regClass == IntRegClass) { 250 ccprintf(os, "r%d", reg.regIdx); | 249 if (reg.isIntReg()) { 250 ccprintf(os, "r%d", reg.index()); |
251 } 252 else { | 251 } 252 else { |
253 ccprintf(os, "f%d", reg.regIdx); | 253 ccprintf(os, "f%d", reg.index()); |
254 } 255 } 256 257 std::string 258 AlphaStaticInst::generateDisassembly(Addr pc, 259 const SymbolTable *symtab) const 260 { 261 std::stringstream ss; --- 209 unchanged lines hidden --- | 254 } 255 } 256 257 std::string 258 AlphaStaticInst::generateDisassembly(Addr pc, 259 const SymbolTable *symtab) const 260 { 261 std::stringstream ss; --- 209 unchanged lines hidden --- |