limmop.isa (4524:f051dcff22b3) limmop.isa (4539:6eeeea62b7c4)
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

--- 58 unchanged lines hidden (view full) ---

67 %(op_rd)s;
68 %(code)s;
69 %(op_wb)s;
70 return NoFault;
71 }
72}};
73
74def template MicroLimmOpDeclare {{
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

--- 58 unchanged lines hidden (view full) ---

67 %(op_rd)s;
68 %(code)s;
69 %(op_wb)s;
70 return NoFault;
71 }
72}};
73
74def template MicroLimmOpDeclare {{
75 class %(class_name)s : public X86MicroOpBase
75 class %(class_name)s : public X86MicroopBase
76 {
77 protected:
78 const RegIndex dest;
79 const uint64_t imm;
80 void buildMe();
81
82 public:
83 %(class_name)s(ExtMachInst _machInst,

--- 52 unchanged lines hidden (view full) ---

136 "flags" : self.microFlagsText(microFlags),
137 "dest" : self.dest, "imm" : self.imm }
138
139 microopClasses["limm"] = LimmOp
140}};
141
142let {{
143 # Build up the all register version of this micro op
76 {
77 protected:
78 const RegIndex dest;
79 const uint64_t imm;
80 void buildMe();
81
82 public:
83 %(class_name)s(ExtMachInst _machInst,

--- 52 unchanged lines hidden (view full) ---

136 "flags" : self.microFlagsText(microFlags),
137 "dest" : self.dest, "imm" : self.imm }
138
139 microopClasses["limm"] = LimmOp
140}};
141
142let {{
143 # Build up the all register version of this micro op
144 iop = InstObjParams("limm", "Limm", 'X86MicroOpBase',
144 iop = InstObjParams("limm", "Limm", 'X86MicroopBase',
145 {"code" : "DestReg = imm;"})
146 header_output += MicroLimmOpDeclare.subst(iop)
147 decoder_output += MicroLimmOpConstructor.subst(iop)
148 exec_output += MicroLimmOpExecute.subst(iop)
149}};
145 {"code" : "DestReg = imm;"})
146 header_output += MicroLimmOpDeclare.subst(iop)
147 decoder_output += MicroLimmOpConstructor.subst(iop)
148 exec_output += MicroLimmOpExecute.subst(iop)
149}};