micromediaop.hh (6801:353726c415f4) | micromediaop.hh (7620:3d8a23caa1ef) |
---|---|
1/* 2 * Copyright (c) 2009 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 39 unchanged lines hidden (view full) --- 48 const RegIndex dest; 49 const uint8_t srcSize; 50 const uint8_t destSize; 51 const uint8_t ext; 52 static const RegIndex foldOBit = 0; 53 54 // Constructor 55 MediaOpBase(ExtMachInst _machInst, | 1/* 2 * Copyright (c) 2009 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 39 unchanged lines hidden (view full) --- 48 const RegIndex dest; 49 const uint8_t srcSize; 50 const uint8_t destSize; 51 const uint8_t ext; 52 static const RegIndex foldOBit = 0; 53 54 // Constructor 55 MediaOpBase(ExtMachInst _machInst, |
56 const char *mnem, const char *_instMnem, 57 bool isMicro, bool isDelayed, 58 bool isFirst, bool isLast, | 56 const char *mnem, const char *_instMnem, uint64_t setFlags, |
59 InstRegIndex _src1, InstRegIndex _dest, 60 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 61 OpClass __opClass) : | 57 InstRegIndex _src1, InstRegIndex _dest, 58 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 59 OpClass __opClass) : |
62 X86MicroopBase(_machInst, mnem, _instMnem, 63 isMicro, isDelayed, isFirst, isLast, | 60 X86MicroopBase(_machInst, mnem, _instMnem, setFlags, |
64 __opClass), 65 src1(_src1.idx), dest(_dest.idx), 66 srcSize(_srcSize), destSize(_destSize), ext(_ext) 67 {} 68 69 bool 70 scalarOp() const 71 { --- 21 unchanged lines hidden (view full) --- 93 94 class MediaOpReg : public MediaOpBase 95 { 96 protected: 97 const RegIndex src2; 98 99 // Constructor 100 MediaOpReg(ExtMachInst _machInst, | 61 __opClass), 62 src1(_src1.idx), dest(_dest.idx), 63 srcSize(_srcSize), destSize(_destSize), ext(_ext) 64 {} 65 66 bool 67 scalarOp() const 68 { --- 21 unchanged lines hidden (view full) --- 90 91 class MediaOpReg : public MediaOpBase 92 { 93 protected: 94 const RegIndex src2; 95 96 // Constructor 97 MediaOpReg(ExtMachInst _machInst, |
101 const char *mnem, const char *_instMnem, 102 bool isMicro, bool isDelayed, 103 bool isFirst, bool isLast, | 98 const char *mnem, const char *_instMnem, uint64_t setFlags, |
104 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, 105 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 106 OpClass __opClass) : | 99 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, 100 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 101 OpClass __opClass) : |
107 MediaOpBase(_machInst, mnem, _instMnem, 108 isMicro, isDelayed, isFirst, isLast, | 102 MediaOpBase(_machInst, mnem, _instMnem, setFlags, |
109 _src1, _dest, _srcSize, _destSize, _ext, 110 __opClass), 111 src2(_src2.idx) 112 {} 113 114 std::string generateDisassembly(Addr pc, 115 const SymbolTable *symtab) const; 116 }; 117 118 class MediaOpImm : public MediaOpBase 119 { 120 protected: 121 uint8_t imm8; 122 123 // Constructor 124 MediaOpImm(ExtMachInst _machInst, | 103 _src1, _dest, _srcSize, _destSize, _ext, 104 __opClass), 105 src2(_src2.idx) 106 {} 107 108 std::string generateDisassembly(Addr pc, 109 const SymbolTable *symtab) const; 110 }; 111 112 class MediaOpImm : public MediaOpBase 113 { 114 protected: 115 uint8_t imm8; 116 117 // Constructor 118 MediaOpImm(ExtMachInst _machInst, |
125 const char *mnem, const char *_instMnem, 126 bool isMicro, bool isDelayed, 127 bool isFirst, bool isLast, | 119 const char *mnem, const char *_instMnem, uint64_t setFlags, |
128 InstRegIndex _src1, uint8_t _imm8, InstRegIndex _dest, 129 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 130 OpClass __opClass) : | 120 InstRegIndex _src1, uint8_t _imm8, InstRegIndex _dest, 121 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 122 OpClass __opClass) : |
131 MediaOpBase(_machInst, mnem, _instMnem, 132 isMicro, isDelayed, isFirst, isLast, | 123 MediaOpBase(_machInst, mnem, _instMnem, setFlags, |
133 _src1, _dest, _srcSize, _destSize, _ext, 134 __opClass), 135 imm8(_imm8) 136 {} 137 138 std::string generateDisassembly(Addr pc, 139 const SymbolTable *symtab) const; 140 }; 141} 142 143#endif //__ARCH_X86_INSTS_MICROMEDIAOP_HH__ | 124 _src1, _dest, _srcSize, _destSize, _ext, 125 __opClass), 126 imm8(_imm8) 127 {} 128 129 std::string generateDisassembly(Addr pc, 130 const SymbolTable *symtab) const; 131 }; 132} 133 134#endif //__ARCH_X86_INSTS_MICROMEDIAOP_HH__ |