ldr.isa (7593:aa32d1398dfd) ldr.isa (7644:62873d5c2bfc)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

155 self.Name = "%s_%s" % (self.name.upper(), self.Name)
156
157 def emit(self):
158 # Address compuation code
159 eaCode = "EA = Base"
160 if not self.post:
161 eaCode += self.offset
162 eaCode += ";"
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

155 self.Name = "%s_%s" % (self.name.upper(), self.Name)
156
157 def emit(self):
158 # Address compuation code
159 eaCode = "EA = Base"
160 if not self.post:
161 eaCode += self.offset
162 eaCode += ";"
163
164 if self.flavor == "fp":
165 eaCode += vfpEnabledCheckCode
166
163 self.codeBlobs["ea_code"] = eaCode
164
165 # Code that actually handles the access
166 if self.flavor == "prefetch":
167 accCode = 'uint64_t temp = Mem%s; temp = temp;'
168 elif self.flavor == "fp":
169 accCode = "FpDest.uw = cSwap(Mem%s, ((CPSR)Cpsr).e);\n"
170 else:

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

215 self.Name = "%s_%s" % (self.name.upper(), self.Name)
216
217 def emit(self):
218 # Address computation code
219 eaCode = "EA = Base"
220 if not self.post:
221 eaCode += self.offset
222 eaCode += ";"
167 self.codeBlobs["ea_code"] = eaCode
168
169 # Code that actually handles the access
170 if self.flavor == "prefetch":
171 accCode = 'uint64_t temp = Mem%s; temp = temp;'
172 elif self.flavor == "fp":
173 accCode = "FpDest.uw = cSwap(Mem%s, ((CPSR)Cpsr).e);\n"
174 else:

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

219 self.Name = "%s_%s" % (self.name.upper(), self.Name)
220
221 def emit(self):
222 # Address computation code
223 eaCode = "EA = Base"
224 if not self.post:
225 eaCode += self.offset
226 eaCode += ";"
227
228 if self.flavor == "fp":
229 eaCode += vfpEnabledCheckCode
230
223 self.codeBlobs["ea_code"] = eaCode
224
225 # Code that actually handles the access
226 if self.flavor != "fp":
227 accCode = '''
228 CPSR cpsr = Cpsr;
229 Dest = cSwap<uint32_t>(Mem.ud, cpsr.e);
230 Dest2 = cSwap<uint32_t>(Mem.ud >> 32, cpsr.e);

--- 106 unchanged lines hidden ---
231 self.codeBlobs["ea_code"] = eaCode
232
233 # Code that actually handles the access
234 if self.flavor != "fp":
235 accCode = '''
236 CPSR cpsr = Cpsr;
237 Dest = cSwap<uint32_t>(Mem.ud, cpsr.e);
238 Dest2 = cSwap<uint32_t>(Mem.ud >> 32, cpsr.e);

--- 106 unchanged lines hidden ---