isa.hh (10037:5cac77888310) | isa.hh (10338:8bee5f4edb92) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2010, 2012-2013 ARM Limited | 2 * Copyright (c) 2010, 2012-2014 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 252 unchanged lines hidden (view full) --- 263 } else { 264 return flattenIntRegModeIndex(reg); 265 } 266 } 267 268 int 269 flattenFloatIndex(int reg) const 270 { | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 252 unchanged lines hidden (view full) --- 263 } else { 264 return flattenIntRegModeIndex(reg); 265 } 266 } 267 268 int 269 flattenFloatIndex(int reg) const 270 { |
271 assert(reg >= 0); |
|
271 return reg; 272 } 273 | 272 return reg; 273 } 274 |
274 // dummy | |
275 int 276 flattenCCIndex(int reg) const 277 { | 275 int 276 flattenCCIndex(int reg) const 277 { |
278 assert(reg >= 0); |
|
278 return reg; 279 } 280 281 int 282 flattenMiscIndex(int reg) const 283 { | 279 return reg; 280 } 281 282 int 283 flattenMiscIndex(int reg) const 284 { |
285 assert(reg >= 0); |
|
284 int flat_idx = reg; 285 286 if (reg == MISCREG_SPSR) { 287 CPSR cpsr = miscRegs[MISCREG_CPSR]; 288 switch (cpsr.mode) { 289 case MODE_EL0T: 290 warn("User mode does not have SPSR\n"); 291 flat_idx = MISCREG_SPSR; --- 142 unchanged lines hidden --- | 286 int flat_idx = reg; 287 288 if (reg == MISCREG_SPSR) { 289 CPSR cpsr = miscRegs[MISCREG_CPSR]; 290 switch (cpsr.mode) { 291 case MODE_EL0T: 292 warn("User mode does not have SPSR\n"); 293 flat_idx = MISCREG_SPSR; --- 142 unchanged lines hidden --- |