mem.isa (10184:bbfa3152bdea) | mem.isa (10196:be0e1724eb39) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2009 The University of Edinburgh 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 59 unchanged lines hidden (view full) --- 68 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 69 { 70 %(constructor)s; 71 } 72}}; 73 74 75def template LoadExecute {{ | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2009 The University of Edinburgh 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 59 unchanged lines hidden (view full) --- 68 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 69 { 70 %(constructor)s; 71 } 72}}; 73 74 75def template LoadExecute {{ |
76 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, | 76 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, |
77 Trace::InstRecord *traceData) const 78 { 79 Addr EA; 80 Fault fault = NoFault; 81 82 %(op_decl)s; 83 %(op_rd)s; 84 %(ea_code)s; --- 8 unchanged lines hidden (view full) --- 93 } 94 95 return fault; 96 } 97}}; 98 99 100def template LoadInitiateAcc {{ | 77 Trace::InstRecord *traceData) const 78 { 79 Addr EA; 80 Fault fault = NoFault; 81 82 %(op_decl)s; 83 %(op_rd)s; 84 %(ea_code)s; --- 8 unchanged lines hidden (view full) --- 93 } 94 95 return fault; 96 } 97}}; 98 99 100def template LoadInitiateAcc {{ |
101 Fault %(class_name)s::initiateAcc(%(CPU_exec_context)s *xc, | 101 Fault %(class_name)s::initiateAcc(CPU_EXEC_CONTEXT *xc, |
102 Trace::InstRecord *traceData) const 103 { 104 Addr EA; 105 Fault fault = NoFault; 106 107 %(op_src_decl)s; 108 %(op_rd)s; 109 %(ea_code)s; --- 5 unchanged lines hidden (view full) --- 115 116 return fault; 117 } 118}}; 119 120 121def template LoadCompleteAcc {{ 122 Fault %(class_name)s::completeAcc(PacketPtr pkt, | 102 Trace::InstRecord *traceData) const 103 { 104 Addr EA; 105 Fault fault = NoFault; 106 107 %(op_src_decl)s; 108 %(op_rd)s; 109 %(ea_code)s; --- 5 unchanged lines hidden (view full) --- 115 116 return fault; 117 } 118}}; 119 120 121def template LoadCompleteAcc {{ 122 Fault %(class_name)s::completeAcc(PacketPtr pkt, |
123 %(CPU_exec_context)s *xc, | 123 CPU_EXEC_CONTEXT *xc, |
124 Trace::InstRecord *traceData) const 125 { 126 Addr M5_VAR_USED EA; 127 Fault fault = NoFault; 128 129 %(op_decl)s; 130 %(op_rd)s; 131 --- 10 unchanged lines hidden (view full) --- 142 } 143 144 return fault; 145 } 146}}; 147 148 149def template StoreExecute {{ | 124 Trace::InstRecord *traceData) const 125 { 126 Addr M5_VAR_USED EA; 127 Fault fault = NoFault; 128 129 %(op_decl)s; 130 %(op_rd)s; 131 --- 10 unchanged lines hidden (view full) --- 142 } 143 144 return fault; 145 } 146}}; 147 148 149def template StoreExecute {{ |
150 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, | 150 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, |
151 Trace::InstRecord *traceData) const 152 { 153 Addr EA; 154 Fault fault = NoFault; 155 156 %(op_decl)s; 157 %(op_rd)s; 158 %(ea_code)s; --- 12 unchanged lines hidden (view full) --- 171 } 172 173 return fault; 174 } 175}}; 176 177 178def template StoreInitiateAcc {{ | 151 Trace::InstRecord *traceData) const 152 { 153 Addr EA; 154 Fault fault = NoFault; 155 156 %(op_decl)s; 157 %(op_rd)s; 158 %(ea_code)s; --- 12 unchanged lines hidden (view full) --- 171 } 172 173 return fault; 174 } 175}}; 176 177 178def template StoreInitiateAcc {{ |
179 Fault %(class_name)s::initiateAcc(%(CPU_exec_context)s *xc, | 179 Fault %(class_name)s::initiateAcc(CPU_EXEC_CONTEXT *xc, |
180 Trace::InstRecord *traceData) const 181 { 182 Addr EA; 183 Fault fault = NoFault; 184 185 %(op_decl)s; 186 %(op_rd)s; 187 %(ea_code)s; --- 14 unchanged lines hidden (view full) --- 202 203 return fault; 204 } 205}}; 206 207 208def template StoreCompleteAcc {{ 209 Fault %(class_name)s::completeAcc(PacketPtr pkt, | 180 Trace::InstRecord *traceData) const 181 { 182 Addr EA; 183 Fault fault = NoFault; 184 185 %(op_decl)s; 186 %(op_rd)s; 187 %(ea_code)s; --- 14 unchanged lines hidden (view full) --- 202 203 return fault; 204 } 205}}; 206 207 208def template StoreCompleteAcc {{ 209 Fault %(class_name)s::completeAcc(PacketPtr pkt, |
210 %(CPU_exec_context)s *xc, | 210 CPU_EXEC_CONTEXT *xc, |
211 Trace::InstRecord *traceData) const 212 { 213 return NoFault; 214 } 215}}; 216 217 218// The generic memory operation generator. This is called when two versions --- 121 unchanged lines hidden --- | 211 Trace::InstRecord *traceData) const 212 { 213 return NoFault; 214 } 215}}; 216 217 218// The generic memory operation generator. This is called when two versions --- 121 unchanged lines hidden --- |