str.isa (7593:aa32d1398dfd) | str.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 --- 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 += ";" | 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 175 if self.flavor == "fp": 176 eaCode += vfpEnabledCheckCode 177 |
|
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 += ";" | 178 self.codeBlobs["ea_code"] = eaCode 179 180 # Code that actually handles the access 181 if self.flavor == "fp": 182 accCode = 'Mem%(suffix)s = cSwap(FpDest.uw, ((CPSR)Cpsr).e);' 183 else: 184 accCode = \ 185 'Mem%(suffix)s = cSwap(Dest%(suffix)s, ((CPSR)Cpsr).e);' --- 54 unchanged lines hidden (view full) --- 240 self.Name = "%s_%s" % (self.name.upper(), self.Name) 241 242 def emit(self): 243 # Address computation code 244 eaCode = "EA = Base" 245 if not self.post: 246 eaCode += self.offset 247 eaCode += ";" |
248 249 if self.flavor == "fp": 250 eaCode += vfpEnabledCheckCode 251 |
|
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 --- | 252 self.codeBlobs["ea_code"] = eaCode 253 254 # Code that actually handles the access 255 if self.flavor == "fp": 256 accCode = ''' 257 uint64_t swappedMem = (uint64_t)FpDest.uw | 258 ((uint64_t)FpDest2.uw << 32); 259 Mem.ud = cSwap(swappedMem, ((CPSR)Cpsr).e); --- 102 unchanged lines hidden --- |