Deleted Added
sdiff udiff text old ( 2754:e3d023bc752c ) new ( 2965:82703e01285a )
full compact
1// -*- mode:c++ -*-
2
3// Copyright (c) 2006 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

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

74 }
75
76 std::string MipsStaticInst::generateDisassembly(Addr pc, const SymbolTable *symtab) const
77 {
78 std::stringstream ss;
79
80 ccprintf(ss, "%-10s ", mnemonic);
81
82 if(_numDestRegs > 0){
83 printReg(ss, _destRegIdx[0]);
84 }
85
86 if(_numSrcRegs > 0) {
87 ss << ", ";
88 printReg(ss, _srcRegIdx[0]);
89 }
90
91 if(_numSrcRegs > 1) {
92 ss << ", ";
93 printReg(ss, _srcRegIdx[1]);
94 }
95
96
97 if(mnemonic == "sll" || mnemonic == "sra"){
98 ccprintf(ss,", %d",SA);
99 }
100
101 return ss.str();
102 }
103
104}};
105