priv.isa (10474:799c8ee4ecba) priv.isa (12104:edd63f9c6184)
1// Copyright (c) 2006-2007 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

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

150 {
151 std::stringstream response;
152
153 printMnemonic(response, mnemonic);
154
155 ccprintf(response, " ");
156 // If the first reg is %g0, don't print it.
157 // This improves readability
1// Copyright (c) 2006-2007 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

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

150 {
151 std::stringstream response;
152
153 printMnemonic(response, mnemonic);
154
155 ccprintf(response, " ");
156 // If the first reg is %g0, don't print it.
157 // This improves readability
158 if (_srcRegIdx[0] != 0) {
158 if (_srcRegIdx[0].regIdx != 0) {
159 printSrcReg(response, 0);
160 ccprintf(response, ", ");
161 }
162 printSrcReg(response, 1);
163 ccprintf(response, ", %%%s", regName);
164
165 return response.str();
166 }
167
168 std::string WrPrivImm::generateDisassembly(Addr pc,
169 const SymbolTable *symtab) const
170 {
171 std::stringstream response;
172
173 printMnemonic(response, mnemonic);
174
175 ccprintf(response, " ");
176 // If the first reg is %g0, don't print it.
177 // This improves readability
159 printSrcReg(response, 0);
160 ccprintf(response, ", ");
161 }
162 printSrcReg(response, 1);
163 ccprintf(response, ", %%%s", regName);
164
165 return response.str();
166 }
167
168 std::string WrPrivImm::generateDisassembly(Addr pc,
169 const SymbolTable *symtab) const
170 {
171 std::stringstream response;
172
173 printMnemonic(response, mnemonic);
174
175 ccprintf(response, " ");
176 // If the first reg is %g0, don't print it.
177 // This improves readability
178 if (_srcRegIdx[0] != 0) {
178 if (_srcRegIdx[0].regIdx != 0) {
179 printSrcReg(response, 0);
180 ccprintf(response, ", ");
181 }
182 ccprintf(response, "0x%x, %%%s", imm, regName);
183
184 return response.str();
185 }
186}};

--- 115 unchanged lines hidden ---
179 printSrcReg(response, 0);
180 ccprintf(response, ", ");
181 }
182 ccprintf(response, "0x%x, %%%s", imm, regName);
183
184 return response.str();
185 }
186}};

--- 115 unchanged lines hidden ---