isa.hh (6723:ea7c71a3433a) | isa.hh (6726:a5322e816a2a) |
---|---|
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; --- 111 unchanged lines hidden (view full) --- 120 } 121 122 int 123 flattenIntIndex(int reg) 124 { 125 assert(reg >= 0); 126 if (reg < NUM_ARCH_INTREGS) { 127 return intRegMap[reg]; | 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; --- 111 unchanged lines hidden (view full) --- 120 } 121 122 int 123 flattenIntIndex(int reg) 124 { 125 assert(reg >= 0); 126 if (reg < NUM_ARCH_INTREGS) { 127 return intRegMap[reg]; |
128 } else if (reg < NUM_INTREGS) { 129 return reg; |
|
128 } else { | 130 } else { |
129 assert(reg < NUM_INTREGS); | 131 reg -= NUM_INTREGS; 132 assert(reg < NUM_ARCH_INTREGS); |
130 return reg; 131 } 132 } 133 134 int 135 flattenFloatIndex(int reg) 136 { 137 return reg; --- 16 unchanged lines hidden --- | 133 return reg; 134 } 135 } 136 137 int 138 flattenFloatIndex(int reg) 139 { 140 return reg; --- 16 unchanged lines hidden --- |