mem.isa (12236:126ac9da6050) mem.isa (12420:f5c80f4ed41f)
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

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

93 Fault fault = NoFault;
94
95 %(op_src_decl)s;
96 %(op_rd)s;
97 %(ea_code)s;
98
99 if (fault == NoFault) {
100 fault = initiateMemRead(xc, traceData, EA, Mem, memAccessFlags);
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

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

93 Fault fault = NoFault;
94
95 %(op_src_decl)s;
96 %(op_rd)s;
97 %(ea_code)s;
98
99 if (fault == NoFault) {
100 fault = initiateMemRead(xc, traceData, EA, Mem, memAccessFlags);
101 xc->setEA(EA);
102 }
103
104 return fault;
105 }
106}};
107
108
109def template LoadCompleteAcc {{
110 Fault %(class_name)s::completeAcc(PacketPtr pkt,
111 ExecContext *xc,
112 Trace::InstRecord *traceData) const
113 {
114 Addr M5_VAR_USED EA;
115 Fault fault = NoFault;
116
117 %(op_decl)s;
118 %(op_rd)s;
119
101 }
102
103 return fault;
104 }
105}};
106
107
108def template LoadCompleteAcc {{
109 Fault %(class_name)s::completeAcc(PacketPtr pkt,
110 ExecContext *xc,
111 Trace::InstRecord *traceData) const
112 {
113 Addr M5_VAR_USED EA;
114 Fault fault = NoFault;
115
116 %(op_decl)s;
117 %(op_rd)s;
118
120 EA = xc->getEA();
119 EA = pkt->req->getVaddr();
121
122 getMem(pkt, Mem, traceData);
123
124 if (fault == NoFault) {
125 %(memacc_code)s;
126 }
127
128 if (fault == NoFault) {

--- 198 unchanged lines hidden ---
120
121 getMem(pkt, Mem, traceData);
122
123 if (fault == NoFault) {
124 %(memacc_code)s;
125 }
126
127 if (fault == NoFault) {

--- 198 unchanged lines hidden ---