mt.isa (12234:78ece221f9f5) | mt.isa (12616:4b463b4dc098) |
---|---|
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 --- 33 unchanged lines hidden (view full) --- 42 protected: 43 44 /// Constructor 45 MTOp(const char *mnem, MachInst _machInst, OpClass __opClass) : 46 MipsStaticInst(mnem, _machInst, __opClass), user_mode(false) 47 { 48 } 49 | 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 --- 33 unchanged lines hidden (view full) --- 42 protected: 43 44 /// Constructor 45 MTOp(const char *mnem, MachInst _machInst, OpClass __opClass) : 46 MipsStaticInst(mnem, _machInst, __opClass), user_mode(false) 47 { 48 } 49 |
50 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; | 50 std::string generateDisassembly( 51 Addr pc, const SymbolTable *symtab) const override; |
51 52 bool user_mode; 53 }; 54 55 class MTUserModeOp : public MTOp 56 { 57 protected: 58 59 /// Constructor 60 MTUserModeOp(const char *mnem, MachInst _machInst, OpClass __opClass) : 61 MTOp(mnem, _machInst, __opClass) 62 { 63 user_mode = true; 64 } | 52 53 bool user_mode; 54 }; 55 56 class MTUserModeOp : public MTOp 57 { 58 protected: 59 60 /// Constructor 61 MTUserModeOp(const char *mnem, MachInst _machInst, OpClass __opClass) : 62 MTOp(mnem, _machInst, __opClass) 63 { 64 user_mode = true; 65 } |
65 66 //std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; | |
67 }; 68}}; 69 70output decoder {{ 71 std::string MTOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const 72 { 73 std::stringstream ss; 74 --- 156 unchanged lines hidden --- | 66 }; 67}}; 68 69output decoder {{ 70 std::string MTOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const 71 { 72 std::stringstream ss; 73 --- 156 unchanged lines hidden --- |