base.isa (12104:edd63f9c6184) base.isa (12106:7784fac1b159)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
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

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

67
68}};
69
70//Ouputs to decoder.cc
71output decoder {{
72
73 void MipsStaticInst::printReg(std::ostream &os, RegId reg) const
74 {
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
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

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

67
68}};
69
70//Ouputs to decoder.cc
71output decoder {{
72
73 void MipsStaticInst::printReg(std::ostream &os, RegId reg) const
74 {
75 if (reg.regClass == IntRegClass) {
76 ccprintf(os, "r%d", reg.regIdx);
75 if (reg.isIntReg()) {
76 ccprintf(os, "r%d", reg.index());
77 }
78 else {
77 }
78 else {
79 ccprintf(os, "f%d", reg.regIdx);
79 ccprintf(os, "f%d", reg.index());
80 }
81 }
82
83 std::string MipsStaticInst::generateDisassembly(Addr pc, const SymbolTable *symtab) const
84 {
85 std::stringstream ss;
86
87 ccprintf(ss, "%-10s ", mnemonic);

--- 31 unchanged lines hidden ---
80 }
81 }
82
83 std::string MipsStaticInst::generateDisassembly(Addr pc, const SymbolTable *symtab) const
84 {
85 std::stringstream ss;
86
87 ccprintf(ss, "%-10s ", mnemonic);

--- 31 unchanged lines hidden ---