unknown.hh (12321:8cdccf77eb3c) | unknown.hh (12849:7f43ad13ebf0) |
---|---|
1/* 2 * Copyright (c) 2015 RISC-V Foundation 3 * Copyright (c) 2017 The University of Virginia 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 --- 45 unchanged lines hidden (view full) --- 54 public: 55 Unknown(MachInst _machInst) 56 : RiscvStaticInst("unknown", _machInst, No_OpClass) 57 {} 58 59 Fault 60 execute(ExecContext *, Trace::InstRecord *) const override 61 { | 1/* 2 * Copyright (c) 2015 RISC-V Foundation 3 * Copyright (c) 2017 The University of Virginia 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 --- 45 unchanged lines hidden (view full) --- 54 public: 55 Unknown(MachInst _machInst) 56 : RiscvStaticInst("unknown", _machInst, No_OpClass) 57 {} 58 59 Fault 60 execute(ExecContext *, Trace::InstRecord *) const override 61 { |
62 return std::make_shared | 62 return std::make_shared<UnknownInstFault>(machInst); |
63 } 64 65 std::string 66 generateDisassembly(Addr pc, const SymbolTable *symtab) const override 67 { 68 return csprintf("unknown opcode %#02x", OPCODE); 69 } 70}; 71 72} 73 74#endif // __ARCH_RISCV_UNKNOWN_INST_HH__ | 63 } 64 65 std::string 66 generateDisassembly(Addr pc, const SymbolTable *symtab) const override 67 { 68 return csprintf("unknown opcode %#02x", OPCODE); 69 } 70}; 71 72} 73 74#endif // __ARCH_RISCV_UNKNOWN_INST_HH__ |