mem.hh (12104:edd63f9c6184) | mem.hh (12616:4b463b4dc098) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 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 --- 46 unchanged lines hidden (view full) --- 55 IntRegIndex base; 56 57 Swap(const char *mnem, ExtMachInst _machInst, OpClass __opClass, 58 IntRegIndex _dest, IntRegIndex _op1, IntRegIndex _base) 59 : PredOp(mnem, _machInst, __opClass), 60 dest(_dest), op1(_op1), base(_base) 61 {} 62 | 1/* 2 * Copyright (c) 2010 ARM Limited 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 --- 46 unchanged lines hidden (view full) --- 55 IntRegIndex base; 56 57 Swap(const char *mnem, ExtMachInst _machInst, OpClass __opClass, 58 IntRegIndex _dest, IntRegIndex _op1, IntRegIndex _base) 59 : PredOp(mnem, _machInst, __opClass), 60 dest(_dest), op1(_op1), base(_base) 61 {} 62 |
63 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; | 63 std::string generateDisassembly( 64 Addr pc, const SymbolTable *symtab) const override; |
64}; 65 66class MightBeMicro : public PredOp 67{ 68 protected: 69 MightBeMicro(const char *mnem, ExtMachInst _machInst, OpClass __opClass) 70 : PredOp(mnem, _machInst, __opClass) 71 {} --- 41 unchanged lines hidden (view full) --- 113 114 virtual 115 ~RfeOp() 116 { 117 delete [] uops; 118 } 119 120 StaticInstPtr | 65}; 66 67class MightBeMicro : public PredOp 68{ 69 protected: 70 MightBeMicro(const char *mnem, ExtMachInst _machInst, OpClass __opClass) 71 : PredOp(mnem, _machInst, __opClass) 72 {} --- 41 unchanged lines hidden (view full) --- 114 115 virtual 116 ~RfeOp() 117 { 118 delete [] uops; 119 } 120 121 StaticInstPtr |
121 fetchMicroop(MicroPC microPC) const | 122 fetchMicroop(MicroPC microPC) const override |
122 { 123 assert(uops != NULL && microPC < numMicroops); 124 return uops[microPC]; 125 } 126 | 123 { 124 assert(uops != NULL && microPC < numMicroops); 125 return uops[microPC]; 126 } 127 |
127 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; | 128 std::string generateDisassembly( 129 Addr pc, const SymbolTable *symtab) const override; |
128}; 129 130// The address is a base register plus an immediate. 131class SrsOp : public MightBeMicro 132{ 133 public: 134 enum AddrMode { 135 DecrementAfter, --- 17 unchanged lines hidden (view full) --- 153 154 virtual 155 ~SrsOp() 156 { 157 delete [] uops; 158 } 159 160 StaticInstPtr | 130}; 131 132// The address is a base register plus an immediate. 133class SrsOp : public MightBeMicro 134{ 135 public: 136 enum AddrMode { 137 DecrementAfter, --- 17 unchanged lines hidden (view full) --- 155 156 virtual 157 ~SrsOp() 158 { 159 delete [] uops; 160 } 161 162 StaticInstPtr |
161 fetchMicroop(MicroPC microPC) const | 163 fetchMicroop(MicroPC microPC) const override |
162 { 163 assert(uops != NULL && microPC < numMicroops); 164 return uops[microPC]; 165 } 166 | 164 { 165 assert(uops != NULL && microPC < numMicroops); 166 return uops[microPC]; 167 } 168 |
167 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; | 169 std::string generateDisassembly( 170 Addr pc, const SymbolTable *symtab) const override; |
168}; 169 170class Memory : public MightBeMicro 171{ 172 public: 173 enum AddrMode { 174 AddrMd_Offset, 175 AddrMd_PreIndex, --- 17 unchanged lines hidden (view full) --- 193 194 virtual 195 ~Memory() 196 { 197 delete [] uops; 198 } 199 200 StaticInstPtr | 171}; 172 173class Memory : public MightBeMicro 174{ 175 public: 176 enum AddrMode { 177 AddrMd_Offset, 178 AddrMd_PreIndex, --- 17 unchanged lines hidden (view full) --- 196 197 virtual 198 ~Memory() 199 { 200 delete [] uops; 201 } 202 203 StaticInstPtr |
201 fetchMicroop(MicroPC microPC) const | 204 fetchMicroop(MicroPC microPC) const override |
202 { 203 assert(uops != NULL && microPC < numMicroops); 204 return uops[microPC]; 205 } 206 207 virtual void 208 printOffset(std::ostream &os) const 209 {} --- 290 unchanged lines hidden --- | 205 { 206 assert(uops != NULL && microPC < numMicroops); 207 return uops[microPC]; 208 } 209 210 virtual void 211 printOffset(std::ostream &os) const 212 {} --- 290 unchanged lines hidden --- |