trap.isa (12234:78ece221f9f5) | trap.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 { 43 protected: 44 45 /// Constructor 46 Trap(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass) 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 { 43 protected: 44 45 /// Constructor 46 Trap(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass) 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 class TrapImm : public MipsStaticInst 53 { 54 protected: 55 56 int16_t imm; 57 58 /// Constructor 59 TrapImm(const char *mnem, MachInst _machInst, OpClass __opClass) : 60 MipsStaticInst(mnem, _machInst, __opClass),imm(INTIMM) 61 { 62 } 63 | 52 }; 53 class TrapImm : public MipsStaticInst 54 { 55 protected: 56 57 int16_t imm; 58 59 /// Constructor 60 TrapImm(const char *mnem, MachInst _machInst, OpClass __opClass) : 61 MipsStaticInst(mnem, _machInst, __opClass),imm(INTIMM) 62 { 63 } 64 |
64 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; 65 66 | 65 std::string generateDisassembly( 66 Addr pc, const SymbolTable *symtab) const override; |
67 }; 68 69}}; 70 71output decoder {{ 72 std::string Trap::generateDisassembly(Addr pc, const SymbolTable *symtab) const 73 { 74 return "Disassembly of trap instruction\n"; --- 42 unchanged lines hidden --- | 67 }; 68 69}}; 70 71output decoder {{ 72 std::string Trap::generateDisassembly(Addr pc, const SymbolTable *symtab) const 73 { 74 return "Disassembly of trap instruction\n"; --- 42 unchanged lines hidden --- |