1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 57 unchanged lines hidden (view full) --- 66 67 return fault; 68 } 69}}; 70 71def template MicroLeaDeclare {{ 72 class %(class_name)s : public %(base_class)s 73 { |
74 public: 75 %(class_name)s(ExtMachInst _machInst, 76 const char * instMnem, uint64_t setFlags, 77 uint8_t _scale, InstRegIndex _index, InstRegIndex _base, 78 uint64_t _disp, InstRegIndex _segment, 79 InstRegIndex _data, 80 uint8_t _dataSize, uint8_t _addressSize, 81 Request::FlagsType _memFlags); 82 |
83 %(BasicExecDeclare)s 84 }; 85}}; 86 87// Load templates 88 89def template MicroLoadExecute {{ 90 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, --- 139 unchanged lines hidden (view full) --- 230//This declares the completeAcc function in memory operations 231def template CompleteAccDeclare {{ 232 Fault completeAcc(PacketPtr, %(CPU_exec_context)s *, Trace::InstRecord *) const; 233}}; 234 235def template MicroLdStOpDeclare {{ 236 class %(class_name)s : public %(base_class)s 237 { |
238 public: 239 %(class_name)s(ExtMachInst _machInst, 240 const char * instMnem, uint64_t setFlags, 241 uint8_t _scale, InstRegIndex _index, InstRegIndex _base, 242 uint64_t _disp, InstRegIndex _segment, 243 InstRegIndex _data, 244 uint8_t _dataSize, uint8_t _addressSize, 245 Request::FlagsType _memFlags); 246 |
247 %(BasicExecDeclare)s 248 249 %(InitiateAccDeclare)s 250 251 %(CompleteAccDeclare)s 252 }; 253}}; 254 255def template MicroLdStOpConstructor {{ |
256 inline %(class_name)s::%(class_name)s( |
257 ExtMachInst machInst, const char * instMnem, uint64_t setFlags, 258 uint8_t _scale, InstRegIndex _index, InstRegIndex _base, 259 uint64_t _disp, InstRegIndex _segment, 260 InstRegIndex _data, 261 uint8_t _dataSize, uint8_t _addressSize, 262 Request::FlagsType _memFlags) : 263 %(base_class)s(machInst, "%(mnemonic)s", instMnem, setFlags, 264 _scale, _index, _base, 265 _disp, _segment, _data, 266 _dataSize, _addressSize, _memFlags, %(op_class)s) 267 { |
268 %(constructor)s; |
269 } 270}}; 271 272let {{ 273 class LdStOp(X86Microop): 274 def __init__(self, data, segment, addr, disp, 275 dataSize, addressSize, baseFlags, atCPL0, prefetch): 276 self.data = data --- 172 unchanged lines hidden --- |