unknown.isa (11723:0596db108c53) unknown.isa (12234:78ece221f9f5)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2015 RISC-V Foundation
4// Copyright (c) 2016 The University of Virginia
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are

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

63 Unknown::generateDisassembly(Addr pc, const SymbolTable *symtab) const
64 {
65 return csprintf("unknown opcode 0x%02x", OPCODE);
66 }
67}};
68
69output exec {{
70 Fault
1// -*- mode:c++ -*-
2
3// Copyright (c) 2015 RISC-V Foundation
4// Copyright (c) 2016 The University of Virginia
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are

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

63 Unknown::generateDisassembly(Addr pc, const SymbolTable *symtab) const
64 {
65 return csprintf("unknown opcode 0x%02x", OPCODE);
66 }
67}};
68
69output exec {{
70 Fault
71 Unknown::execute(CPU_EXEC_CONTEXT *xc, Trace::InstRecord *traceData) const
71 Unknown::execute(ExecContext *xc, Trace::InstRecord *traceData) const
72 {
73 Fault fault = std::make_shared<UnknownInstFault>();
74 return fault;
75 }
76}};
77
78def format Unknown() {{
79 decode_block = 'return new Unknown(machInst);\n'
80}};
72 {
73 Fault fault = std::make_shared<UnknownInstFault>();
74 return fault;
75 }
76}};
77
78def format Unknown() {{
79 decode_block = 'return new Unknown(machInst);\n'
80}};