unimp.isa (10196:be0e1724eb39) unimp.isa (10474:799c8ee4ecba)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 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

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

113
114output exec {{
115 Fault
116 FailUnimplemented::execute(CPU_EXEC_CONTEXT *xc,
117 Trace::InstRecord *traceData) const
118 {
119 panic("attempt to execute unimplemented instruction '%s' "
120 "(inst 0x%08x, opcode 0x%x)", mnemonic, machInst, OPCODE);
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 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

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

113
114output exec {{
115 Fault
116 FailUnimplemented::execute(CPU_EXEC_CONTEXT *xc,
117 Trace::InstRecord *traceData) const
118 {
119 panic("attempt to execute unimplemented instruction '%s' "
120 "(inst 0x%08x, opcode 0x%x)", mnemonic, machInst, OPCODE);
121 return new UnimplementedOpcodeFault;
121 return std::make_shared<UnimplementedOpcodeFault>();
122 }
123
124 Fault
125 WarnUnimplemented::execute(CPU_EXEC_CONTEXT *xc,
126 Trace::InstRecord *traceData) const
127 {
128 if (!warned) {
129 warn("instruction '%s' unimplemented\n", mnemonic);

--- 43 unchanged lines hidden ---
122 }
123
124 Fault
125 WarnUnimplemented::execute(CPU_EXEC_CONTEXT *xc,
126 Trace::InstRecord *traceData) const
127 {
128 if (!warned) {
129 warn("instruction '%s' unimplemented\n", mnemonic);

--- 43 unchanged lines hidden ---