basic.isa (4394:dbaff14bb974) basic.isa (5091:662c1d7b4795)
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

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

51 {
52 public:
53 // Constructor.
54 %(class_name)s(ExtMachInst machInst);
55 %(BasicExecDeclare)s
56 };
57}};
58
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

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

51 {
52 public:
53 // Constructor.
54 %(class_name)s(ExtMachInst machInst);
55 %(BasicExecDeclare)s
56 };
57}};
58
59// Basic instruction class declaration template.
60def template BasicDeclareWithMnemonic {{
61 /**
62 * Static instruction class for "%(mnemonic)s".
63 */
64 class %(class_name)s : public %(base_class)s
65 {
66 public:
67 // Constructor.
68 %(class_name)s(const char * mnemonic, ExtMachInst machInst);
69 %(BasicExecDeclare)s
70 };
71}};
72
59// Basic instruction class constructor template.
60def template BasicConstructor {{
61 inline %(class_name)s::%(class_name)s(ExtMachInst machInst)
62 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
63 {
64 %(constructor)s;
65 }
66}};
67
73// Basic instruction class constructor template.
74def template BasicConstructor {{
75 inline %(class_name)s::%(class_name)s(ExtMachInst machInst)
76 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
77 {
78 %(constructor)s;
79 }
80}};
81
82// Basic instruction class constructor template.
83def template BasicConstructorWithMnemonic {{
84 inline %(class_name)s::%(class_name)s(const char * mnemonic,
85 ExtMachInst machInst)
86 : %(base_class)s(mnemonic, machInst, %(op_class)s)
87 {
88 %(constructor)s;
89 }
90}};
91
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
75 %(fp_enable_check)s;

--- 60 unchanged lines hidden ---
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;

--- 60 unchanged lines hidden ---