unimp.isa (10196:be0e1724eb39) unimp.isa (10474:799c8ee4ecba)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
4// Copyright (c) 2009 The University of Edinburgh
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

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

112output exec {{
113 Fault
114 FailUnimplemented::execute(CPU_EXEC_CONTEXT *xc,
115 Trace::InstRecord *traceData) const
116 {
117 panic("attempt to execute unimplemented instruction '%s' "
118 "(inst 0x%08x, opcode 0x%x, binary:%s)", mnemonic, machInst, OPCODE,
119 inst2string(machInst));
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
4// Copyright (c) 2009 The University of Edinburgh
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

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

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

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

--- 18 unchanged lines hidden ---