Deleted Added
sdiff udiff text old ( 5091:662c1d7b4795 ) new ( 7741:340b6f01d69b )
full compact
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

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

30
31// Declarations for execute() methods.
32def template BasicExecDeclare {{
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 {{

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

86 : %(base_class)s(mnemonic, machInst, %(op_class)s)
87 {
88 %(constructor)s;
89 }
90}};
91
92// Basic instruction class execute method template.
93def template BasicExecute {{
94 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
95 Trace::InstRecord *traceData) const
96 {
97 Fault fault = NoFault;
98
99 %(fp_enable_check)s;
100 %(op_decl)s;
101 %(op_rd)s;
102 %(code)s;
103
104 if(fault == NoFault)
105 {
106 %(op_wb)s;
107 }
108 return fault;
109 }
110}};
111
112// Basic decode template.
113def template BasicDecode {{

--- 46 unchanged lines hidden ---