Deleted Added
sdiff udiff text old ( 7175:db22937a4e0f ) new ( 7190:e6240d7be030 )
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

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

62 uint32_t addr = 0;
63
64 if (!up)
65 addr = (ones << 2) - 4;
66
67 if (!index)
68 addr += 4;
69
70 // Add 0 to Rn and stick it in ureg0.
71 // This is equivalent to a move.
72 microOps[0] = new MicroAddiUop(machInst, INTREG_UREG0, rn, 0);
73
74 unsigned reg = 0;
75 bool force_user = user & !bits(reglist, 15);
76 bool exception_ret = user & bits(reglist, 15);
77
78 for (int i = 1; i < ones + 1; i++) {
79 // Find the next register.
80 while (!bits(regs, reg))
81 reg++;
82 replaceBits(regs, reg, 0);
83
84 unsigned regIdx = reg;
85 if (force_user) {
86 regIdx = intRegForceUser(regIdx);
87 }
88
89 if (load) {
90 if (reg == INTREG_PC && exception_ret) {
91 // This must be the exception return form of ldm.
92 microOps[i] =
93 new MicroLdrRetUop(machInst, regIdx,
94 INTREG_UREG0, up, addr);
95 } else {
96 microOps[i] =
97 new MicroLdrUop(machInst, regIdx, INTREG_UREG0, up, addr);
98 }
99 } else {
100 microOps[i] =
101 new MicroStrUop(machInst, regIdx, INTREG_UREG0, up, addr);
102 }
103
104 if (up)
105 addr += 4;
106 else
107 addr -= 4;
108 }
109
110 StaticInstPtr &lastUop = microOps[numMicroops - 1];
111 if (writeback) {
112 if (up) {
113 lastUop = new MicroAddiUop(machInst, rn, rn, ones * 4);
114 } else {
115 lastUop = new MicroSubiUop(machInst, rn, rn, ones * 4);
116 }
117 }
118 lastUop->setLastMicroop();
119}
120
121MacroVFPMemOp::MacroVFPMemOp(const char *mnem, ExtMachInst machInst,
122 OpClass __opClass, IntRegIndex rn,
123 RegIndex vd, bool single, bool up,
124 bool writeback, bool load, uint32_t offset) :
125 PredMacroOp(mnem, machInst, __opClass)
126{

--- 55 unchanged lines hidden ---