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 |
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 |
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 --- |