monitor_mwait.isa (12234:78ece221f9f5) | monitor_mwait.isa (12236:126ac9da6050) |
---|---|
1// Copyright (c) AMD 2// All rights reserved. 3// 4// Authors: Marc Orr 5 6// Monitor Instruction 7 8output header {{ --- 31 unchanged lines hidden (view full) --- 40 decoder_output = BasicConstructor.subst(iop) 41 decode_block = BasicDecode.subst(iop) 42 exec_output = BasicExecute.subst(iop) 43}}; 44 45 46// Mwait instruction 47 | 1// Copyright (c) AMD 2// All rights reserved. 3// 4// Authors: Marc Orr 5 6// Monitor Instruction 7 8output header {{ --- 31 unchanged lines hidden (view full) --- 40 decoder_output = BasicConstructor.subst(iop) 41 decode_block = BasicDecode.subst(iop) 42 exec_output = BasicExecute.subst(iop) 43}}; 44 45 46// Mwait instruction 47 |
48// Declarations for execute() methods. 49def template MwaitExecDeclare {{ 50 Fault execute(ExecContext *, Trace::InstRecord *) const; 51 Fault initiateAcc(ExecContext *, Trace::InstRecord *) const; 52 Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const; 53}}; 54 | |
55def template MwaitDeclare {{ 56 class %(class_name)s : public %(base_class)s 57 { 58 public: 59 // Constructor. 60 %(class_name)s(ExtMachInst machInst); | 48def template MwaitDeclare {{ 49 class %(class_name)s : public %(base_class)s 50 { 51 public: 52 // Constructor. 53 %(class_name)s(ExtMachInst machInst); |
61 %(MwaitExecDeclare)s | 54 Fault execute(ExecContext *, Trace::InstRecord *) const; 55 Fault initiateAcc(ExecContext *, Trace::InstRecord *) const; 56 Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const; |
62 }; 63}}; 64 65def template MwaitInitiateAcc {{ 66 Fault %(class_name)s::initiateAcc(ExecContext * xc, 67 Trace::InstRecord * traceData) const 68 { 69 unsigned s = 0x8; //size --- 60 unchanged lines hidden --- | 57 }; 58}}; 59 60def template MwaitInitiateAcc {{ 61 Fault %(class_name)s::initiateAcc(ExecContext * xc, 62 Trace::InstRecord * traceData) const 63 { 64 unsigned s = 0x8; //size --- 60 unchanged lines hidden --- |