micromediaop.hh (11320:42ecb523c64a) | micromediaop.hh (12104:edd63f9c6184) |
---|---|
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; --- 45 unchanged lines hidden (view full) --- 54 // Constructor 55 MediaOpBase(ExtMachInst _machInst, 56 const char *mnem, const char *_instMnem, uint64_t setFlags, 57 InstRegIndex _src1, InstRegIndex _dest, 58 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 59 OpClass __opClass) : 60 X86MicroopBase(_machInst, mnem, _instMnem, setFlags, 61 __opClass), | 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; --- 45 unchanged lines hidden (view full) --- 54 // Constructor 55 MediaOpBase(ExtMachInst _machInst, 56 const char *mnem, const char *_instMnem, uint64_t setFlags, 57 InstRegIndex _src1, InstRegIndex _dest, 58 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 59 OpClass __opClass) : 60 X86MicroopBase(_machInst, mnem, _instMnem, setFlags, 61 __opClass), |
62 src1(_src1.idx), dest(_dest.idx), | 62 src1(_src1.regIdx), dest(_dest.regIdx), |
63 srcSize(_srcSize), destSize(_destSize), ext(_ext) 64 {} 65 66 bool 67 scalarOp() const 68 { 69 return ext & MediaScalarOp; 70 } --- 26 unchanged lines hidden (view full) --- 97 MediaOpReg(ExtMachInst _machInst, 98 const char *mnem, const char *_instMnem, uint64_t setFlags, 99 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, 100 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 101 OpClass __opClass) : 102 MediaOpBase(_machInst, mnem, _instMnem, setFlags, 103 _src1, _dest, _srcSize, _destSize, _ext, 104 __opClass), | 63 srcSize(_srcSize), destSize(_destSize), ext(_ext) 64 {} 65 66 bool 67 scalarOp() const 68 { 69 return ext & MediaScalarOp; 70 } --- 26 unchanged lines hidden (view full) --- 97 MediaOpReg(ExtMachInst _machInst, 98 const char *mnem, const char *_instMnem, uint64_t setFlags, 99 InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, 100 uint8_t _srcSize, uint8_t _destSize, uint8_t _ext, 101 OpClass __opClass) : 102 MediaOpBase(_machInst, mnem, _instMnem, setFlags, 103 _src1, _dest, _srcSize, _destSize, _ext, 104 __opClass), |
105 src2(_src2.idx) | 105 src2(_src2.regIdx) |
106 {} 107 108 std::string generateDisassembly(Addr pc, 109 const SymbolTable *symtab) const; 110 }; 111 112 class MediaOpImm : public MediaOpBase 113 { --- 21 unchanged lines hidden --- | 106 {} 107 108 std::string generateDisassembly(Addr pc, 109 const SymbolTable *symtab) const; 110 }; 111 112 class MediaOpImm : public MediaOpBase 113 { --- 21 unchanged lines hidden --- |