base.isa (5254:c555f8b07345) base.isa (5269:0bdd8bbdc79f)
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

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

77 {
78 std::stringstream ss;
79
80 ccprintf(ss, "%-10s ", mnemonic);
81
82 // Need to find standard way to not print
83 // this info. Maybe add bool variable to
84 // class?
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

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

77 {
78 std::stringstream ss;
79
80 ccprintf(ss, "%-10s ", mnemonic);
81
82 // Need to find standard way to not print
83 // this info. Maybe add bool variable to
84 // class?
85 if (mnemonic != "syscall") {
85 if (strcmp(mnemonic, "syscall") != 0) {
86 if(_numDestRegs > 0){
87 printReg(ss, _destRegIdx[0]);
88 }
89
90 if(_numSrcRegs > 0) {
91 ss << ", ";
92 printReg(ss, _srcRegIdx[0]);
93 }
94
95 if(_numSrcRegs > 1) {
96 ss << ", ";
97 printReg(ss, _srcRegIdx[1]);
98 }
99 }
100
101 // Should we define a separate inst. class
102 // just for two insts?
86 if(_numDestRegs > 0){
87 printReg(ss, _destRegIdx[0]);
88 }
89
90 if(_numSrcRegs > 0) {
91 ss << ", ";
92 printReg(ss, _srcRegIdx[0]);
93 }
94
95 if(_numSrcRegs > 1) {
96 ss << ", ";
97 printReg(ss, _srcRegIdx[1]);
98 }
99 }
100
101 // Should we define a separate inst. class
102 // just for two insts?
103 if(mnemonic == "sll" || mnemonic == "sra"){
103 if (strcmp(mnemonic, "sll") == 0 || strcmp(mnemonic, "sra") == 0) {
104 ccprintf(ss,", %d",SA);
105 }
106
107 return ss.str();
108 }
109
110}};
111
104 ccprintf(ss,", %d",SA);
105 }
106
107 return ss.str();
108 }
109
110}};
111