microop.hh (7087:fb8d5786ff30) microop.hh (7620:3d8a23caa1ef)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

91 {
92 protected:
93 const char * instMnem;
94 uint8_t opSize;
95 uint8_t addrSize;
96
97 X86MicroopBase(ExtMachInst _machInst,
98 const char *mnem, const char *_instMnem,
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

91 {
92 protected:
93 const char * instMnem;
94 uint8_t opSize;
95 uint8_t addrSize;
96
97 X86MicroopBase(ExtMachInst _machInst,
98 const char *mnem, const char *_instMnem,
99 bool isMicro, bool isDelayed,
100 bool isFirst, bool isLast,
101 OpClass __opClass) :
99 uint64_t setFlags, OpClass __opClass) :
102 X86ISA::X86StaticInst(mnem, _machInst, __opClass),
103 instMnem(_instMnem)
104 {
100 X86ISA::X86StaticInst(mnem, _machInst, __opClass),
101 instMnem(_instMnem)
102 {
105 flags[IsMicroop] = isMicro;
106 flags[IsDelayedCommit] = isDelayed;
107 flags[IsFirstMicroop] = isFirst;
108 flags[IsLastMicroop] = isLast;
103 flags |= setFlags;
109 }
110
111 std::string generateDisassembly(Addr pc,
112 const SymbolTable *symtab) const
113 {
114 std::stringstream ss;
115
116 ccprintf(ss, "\t%s.%s", instMnem, mnemonic);
117
118 return ss.str();
119 }
120
121 bool checkCondition(uint64_t flags, int condition) const;
122 };
123}
124
125#endif //__ARCH_X86_INSTS_MICROOP_HH__
104 }
105
106 std::string generateDisassembly(Addr pc,
107 const SymbolTable *symtab) const
108 {
109 std::stringstream ss;
110
111 ccprintf(ss, "\t%s.%s", instMnem, mnemonic);
112
113 return ss.str();
114 }
115
116 bool checkCondition(uint64_t flags, int condition) const;
117 };
118}
119
120#endif //__ARCH_X86_INSTS_MICROOP_HH__