unimp.isa (6691:cd68b6ecd68d) unimp.isa (10196:be0e1724eb39)
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

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

106 const SymbolTable *symtab) const
107 {
108 return csprintf("%-10s (unimplemented)", mnemonic);
109 }
110}};
111
112output exec {{
113 Fault
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

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

106 const SymbolTable *symtab) const
107 {
108 return csprintf("%-10s (unimplemented)", mnemonic);
109 }
110}};
111
112output exec {{
113 Fault
114 FailUnimplemented::execute(%(CPU_exec_context)s *xc,
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;
121 }
122
123 Fault
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;
121 }
122
123 Fault
124 WarnUnimplemented::execute(%(CPU_exec_context)s *xc,
124 WarnUnimplemented::execute(CPU_EXEC_CONTEXT *xc,
125 Trace::InstRecord *traceData) const
126 {
127 if (!warned) {
128 warn("\tinstruction '%s' unimplemented\n", mnemonic);
129 warned = true;
130 }
131
132 return NoFault;

--- 14 unchanged lines hidden ---
125 Trace::InstRecord *traceData) const
126 {
127 if (!warned) {
128 warn("\tinstruction '%s' unimplemented\n", mnemonic);
129 warned = true;
130 }
131
132 return NoFault;

--- 14 unchanged lines hidden ---