Deleted Added
sdiff udiff text old ( 7615:50f6494d9b55 ) new ( 7639:8c09b7ff5b57 )
full compact
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

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

75 void
76 setDelayedCommit()
77 {
78 flags[IsDelayedCommit] = true;
79 }
80};
81
82/**
83 * Microops of the form IntRegA = IntRegB op Imm
84 */
85class MicroIntOp : public MicroOp
86{
87 protected:
88 RegIndex ura, urb;
89 uint8_t imm;
90
91 MicroIntOp(const char *mnem, ExtMachInst machInst, OpClass __opClass,
92 RegIndex _ura, RegIndex _urb, uint8_t _imm)
93 : MicroOp(mnem, machInst, __opClass),
94 ura(_ura), urb(_urb), imm(_imm)
95 {
96 }
97
98 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const;
99};
100
101/**
102 * Memory microops which use IntReg + Imm addressing
103 */
104class MicroMemOp : public MicroIntOp
105{
106 protected:
107 bool up;
108 unsigned memAccessFlags;
109
110 MicroMemOp(const char *mnem, ExtMachInst machInst, OpClass __opClass,
111 RegIndex _ura, RegIndex _urb, bool _up, uint8_t _imm)
112 : MicroIntOp(mnem, machInst, __opClass, _ura, _urb, _imm),
113 up(_up), memAccessFlags(TLB::MustBeOne | TLB::AlignWord)
114 {
115 }
116
117 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const;
118};
119
120/**
121 * Base class for microcoded integer memory instructions.
122 */
123class MacroMemOp : public PredMacroOp
124{
125 protected:
126 MacroMemOp(const char *mnem, ExtMachInst machInst, OpClass __opClass,
127 IntRegIndex rn, bool index, bool up, bool user,
128 bool writeback, bool load, uint32_t reglist);
129};
130
131/**
132 * Base class for microcoded floating point memory instructions.
133 */
134class MacroVFPMemOp : public PredMacroOp
135{
136 protected:
137 MacroVFPMemOp(const char *mnem, ExtMachInst machInst, OpClass __opClass,
138 IntRegIndex rn, RegIndex vd, bool single, bool up,
139 bool writeback, bool load, uint32_t offset);
140};
141
142}
143
144#endif //__ARCH_ARM_INSTS_MACROMEM_HH__