basic.isa (3918:1f9a98d198e8) basic.isa (3931:de791fa53d04)
1// Copyright (c) 2006-2007 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

33 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const;
34}};
35
36// Definitions of execute methods that panic.
37def template BasicExecPanic {{
38 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
39 {
40 panic("Execute method called when it shouldn't!");
1// Copyright (c) 2006-2007 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

33 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const;
34}};
35
36// Definitions of execute methods that panic.
37def template BasicExecPanic {{
38 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
39 {
40 panic("Execute method called when it shouldn't!");
41 M5_DUMMY_RETURN
42 }
43}};
44
45// Basic instruction class declaration template.
46def template BasicDeclare {{
47 /**
48 * Static instruction class for "%(mnemonic)s".
49 */

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

67
68// Basic instruction class execute method template.
69def template BasicExecute {{
70 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
71 Trace::InstRecord *traceData) const
72 {
73 Fault fault = NoFault;
74
41 }
42}};
43
44// Basic instruction class declaration template.
45def template BasicDeclare {{
46 /**
47 * Static instruction class for "%(mnemonic)s".
48 */

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

66
67// Basic instruction class execute method template.
68def template BasicExecute {{
69 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
70 Trace::InstRecord *traceData) const
71 {
72 Fault fault = NoFault;
73
74 %(fp_enable_check)s;
75 %(op_decl)s;
76 %(op_rd)s;
77 %(code)s;
78
79 if(fault == NoFault)
80 {
81 %(op_wb)s;
82 }

--- 23 unchanged lines hidden ---
75 %(op_decl)s;
76 %(op_rd)s;
77 %(code)s;
78
79 if(fault == NoFault)
80 {
81 %(op_wb)s;
82 }

--- 23 unchanged lines hidden ---