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
--- 256 unchanged lines hidden (view full) ---
265 flattenIntIndex(int reg)
266 {
267 assert(reg >= 0);
268 if (reg < NUM_ARCH_INTREGS) {
269 return intRegMap[reg];
270 } else if (reg < NUM_INTREGS) {
271 return reg;
272 } else {
273 reg -= NUM_INTREGS;
274 assert(reg < NUM_ARCH_INTREGS);
275 return reg;
276 }
277 }
278
279 int
280 flattenFloatIndex(int reg)
281 {
282 return reg;
283 }
--- 15 unchanged lines hidden ---
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
--- 256 unchanged lines hidden (view full) ---
265 flattenIntIndex(int reg)
266 {
267 assert(reg >= 0);
268 if (reg < NUM_ARCH_INTREGS) {
269 return intRegMap[reg];
270 } else if (reg < NUM_INTREGS) {
271 return reg;
272 } else {
273 reg -= NUM_INTREGS;
274 assert(reg < NUM_ARCH_INTREGS);
275 return reg;
276 }
277 }
278
279 int
280 flattenFloatIndex(int reg)
281 {
282 return reg;
283 }
--- 15 unchanged lines hidden ---