Deleted Added
sdiff udiff text old ( 7593:aa32d1398dfd ) new ( 7644:62873d5c2bfc )
full compact
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

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

166 self.Name = "%s_%s" % (self.name.upper(), self.Name)
167
168 def emit(self):
169 # Address computation
170 eaCode = "EA = Base"
171 if not self.post:
172 eaCode += self.offset
173 eaCode += ";"
174 self.codeBlobs["ea_code"] = eaCode
175
176 # Code that actually handles the access
177 if self.flavor == "fp":
178 accCode = 'Mem%(suffix)s = cSwap(FpDest.uw, ((CPSR)Cpsr).e);'
179 else:
180 accCode = \
181 'Mem%(suffix)s = cSwap(Dest%(suffix)s, ((CPSR)Cpsr).e);'

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

236 self.Name = "%s_%s" % (self.name.upper(), self.Name)
237
238 def emit(self):
239 # Address computation code
240 eaCode = "EA = Base"
241 if not self.post:
242 eaCode += self.offset
243 eaCode += ";"
244 self.codeBlobs["ea_code"] = eaCode
245
246 # Code that actually handles the access
247 if self.flavor == "fp":
248 accCode = '''
249 uint64_t swappedMem = (uint64_t)FpDest.uw |
250 ((uint64_t)FpDest2.uw << 32);
251 Mem.ud = cSwap(swappedMem, ((CPSR)Cpsr).e);

--- 102 unchanged lines hidden ---