ldstop.isa (5175:ee904e392de2) | ldstop.isa (5178:8914ea55a0c6) |
---|---|
1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 431 unchanged lines hidden (view full) --- 440 def __init__(self, data, segment, addr, disp = 0, 441 dataSize="env.dataSize", addressSize="env.addressSize"): 442 super(LeaOp, self).__init__(data, segment, 443 addr, disp, dataSize, addressSize) 444 self.className = "Lea" 445 self.mnemonic = "lea" 446 447 microopClasses["lea"] = LeaOp | 1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 431 unchanged lines hidden (view full) --- 440 def __init__(self, data, segment, addr, disp = 0, 441 dataSize="env.dataSize", addressSize="env.addressSize"): 442 super(LeaOp, self).__init__(data, segment, 443 addr, disp, dataSize, addressSize) 444 self.className = "Lea" 445 self.mnemonic = "lea" 446 447 microopClasses["lea"] = LeaOp |
448 449 450 iop = InstObjParams("cda", "Cda", 'X86ISA::LdStOp', 451 {"code": ''' 452 Addr paddr; 453 fault = xc->translateDataWriteAddr(EA, paddr, 454 dataSize, (1 << segment)); 455 ''', 456 "ea_code": calculateEA}) 457 header_output += MicroLeaDeclare.subst(iop) 458 decoder_output += MicroLdStOpConstructor.subst(iop) 459 exec_output += MicroLeaExecute.subst(iop) 460 461 class CdaOp(LdStOp): 462 def __init__(self, segment, addr, disp = 0, 463 dataSize="env.dataSize", addressSize="env.addressSize"): 464 super(CdaOp, self).__init__("NUM_INTREGS", segment, 465 addr, disp, dataSize, addressSize) 466 self.className = "Cda" 467 self.mnemonic = "cda" 468 469 microopClasses["cda"] = CdaOp |
|
448}}; 449 | 470}}; 471 |