micromediaop.hh (6515:a785733109e7) | micromediaop.hh (6545:9c68aea7b1e6) |
---|---|
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; --- 28 unchanged lines hidden (view full) --- 37{ 38 class MediaOpBase : public X86MicroopBase 39 { 40 protected: 41 const RegIndex src1; 42 const RegIndex dest; 43 const uint8_t srcSize; 44 const uint8_t destSize; | 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; --- 28 unchanged lines hidden (view full) --- 37{ 38 class MediaOpBase : public X86MicroopBase 39 { 40 protected: 41 const RegIndex src1; 42 const RegIndex dest; 43 const uint8_t srcSize; 44 const uint8_t destSize; |
45 const uint8_t sel; | 45 const uint8_t ext; |
46 static const RegIndex foldOBit = 0; 47 48 // Constructor 49 MediaOpBase(ExtMachInst _machInst, 50 const char *mnem, const char *_instMnem, 51 bool isMicro, bool isDelayed, 52 bool isFirst, bool isLast, 53 InstRegIndex _src1, InstRegIndex _dest, | 46 static const RegIndex foldOBit = 0; 47 48 // Constructor 49 MediaOpBase(ExtMachInst _machInst, 50 const char *mnem, const char *_instMnem, 51 bool isMicro, bool isDelayed, 52 bool isFirst, bool isLast, 53 InstRegIndex _src1, InstRegIndex _dest, |
54 uint8_t _srcSize, uint8_t _destSize, uint8_t _sel, | 54 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, |
55 OpClass __opClass) : 56 X86MicroopBase(_machInst, mnem, _instMnem, 57 isMicro, isDelayed, isFirst, isLast, 58 __opClass), 59 src1(_src1.idx), dest(_dest.idx), | 55 OpClass __opClass) : 56 X86MicroopBase(_machInst, mnem, _instMnem, 57 isMicro, isDelayed, isFirst, isLast, 58 __opClass), 59 src1(_src1.idx), dest(_dest.idx), |
60 srcSize(_srcSize), destSize(_destSize), sel(_sel) | 60 srcSize(_srcSize), destSize(_destSize), ext(_ext) |
61 {} 62 }; 63 64 class MediaOpReg : public MediaOpBase 65 { 66 protected: 67 const RegIndex src2; 68 69 // Constructor 70 MediaOpReg(ExtMachInst _machInst, 71 const char *mnem, const char *_instMnem, 72 bool isMicro, bool isDelayed, 73 bool isFirst, bool isLast, 74 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, | 61 {} 62 }; 63 64 class MediaOpReg : public MediaOpBase 65 { 66 protected: 67 const RegIndex src2; 68 69 // Constructor 70 MediaOpReg(ExtMachInst _machInst, 71 const char *mnem, const char *_instMnem, 72 bool isMicro, bool isDelayed, 73 bool isFirst, bool isLast, 74 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, |
75 uint8_t _srcSize, uint8_t _destSize, uint8_t _sel, | 75 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, |
76 OpClass __opClass) : 77 MediaOpBase(_machInst, mnem, _instMnem, 78 isMicro, isDelayed, isFirst, isLast, | 76 OpClass __opClass) : 77 MediaOpBase(_machInst, mnem, _instMnem, 78 isMicro, isDelayed, isFirst, isLast, |
79 _src1, _dest, _srcSize, _destSize, _sel, | 79 _src1, _dest, _srcSize, _destSize, _ext, |
80 __opClass), 81 src2(_src2.idx) 82 {} 83 84 std::string generateDisassembly(Addr pc, 85 const SymbolTable *symtab) const; 86 }; 87 88 class MediaOpImm : public MediaOpBase 89 { 90 protected: 91 uint8_t imm8; 92 93 // Constructor 94 MediaOpImm(ExtMachInst _machInst, 95 const char *mnem, const char *_instMnem, 96 bool isMicro, bool isDelayed, 97 bool isFirst, bool isLast, 98 InstRegIndex _src1, uint8_t _imm8, InstRegIndex _dest, | 80 __opClass), 81 src2(_src2.idx) 82 {} 83 84 std::string generateDisassembly(Addr pc, 85 const SymbolTable *symtab) const; 86 }; 87 88 class MediaOpImm : public MediaOpBase 89 { 90 protected: 91 uint8_t imm8; 92 93 // Constructor 94 MediaOpImm(ExtMachInst _machInst, 95 const char *mnem, const char *_instMnem, 96 bool isMicro, bool isDelayed, 97 bool isFirst, bool isLast, 98 InstRegIndex _src1, uint8_t _imm8, InstRegIndex _dest, |
99 uint8_t _srcSize, uint8_t _destSize, uint8_t _sel, | 99 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, |
100 OpClass __opClass) : 101 MediaOpBase(_machInst, mnem, _instMnem, 102 isMicro, isDelayed, isFirst, isLast, | 100 OpClass __opClass) : 101 MediaOpBase(_machInst, mnem, _instMnem, 102 isMicro, isDelayed, isFirst, isLast, |
103 _src1, _dest, _srcSize, _destSize, _sel, | 103 _src1, _dest, _srcSize, _destSize, _ext, |
104 __opClass), 105 imm8(_imm8) 106 {} 107 108 std::string generateDisassembly(Addr pc, 109 const SymbolTable *symtab) const; 110 }; 111} 112 113#endif //__ARCH_X86_INSTS_MICROMEDIAOP_HH__ | 104 __opClass), 105 imm8(_imm8) 106 {} 107 108 std::string generateDisassembly(Addr pc, 109 const SymbolTable *symtab) const; 110 }; 111} 112 113#endif //__ARCH_X86_INSTS_MICROMEDIAOP_HH__ |