miscregs.cc (14229:eb52acecf179) | miscregs.cc (14242:076b215de8d4) |
---|---|
1/* 2 * Copyright (c) 2010-2013, 2015-2019 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 --- 1061 unchanged lines hidden (view full) --- 1070 int reg_as_int = static_cast<int>(reg); 1071 if (miscRegInfo[reg][MISCREG_BANKED]) { 1072 reg_as_int += (ArmSystem::haveSecurity(tc) && 1073 !ArmSystem::highestELIs64(tc) && !ns) ? 2 : 1; 1074 } 1075 return reg_as_int; 1076} 1077 | 1/* 2 * Copyright (c) 2010-2013, 2015-2019 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 --- 1061 unchanged lines hidden (view full) --- 1070 int reg_as_int = static_cast<int>(reg); 1071 if (miscRegInfo[reg][MISCREG_BANKED]) { 1072 reg_as_int += (ArmSystem::haveSecurity(tc) && 1073 !ArmSystem::highestELIs64(tc) && !ns) ? 2 : 1; 1074 } 1075 return reg_as_int; 1076} 1077 |
1078int 1079snsBankedIndex64(MiscRegIndex reg, ThreadContext *tc) 1080{ 1081 SCR scr = tc->readMiscReg(MISCREG_SCR); 1082 return tc->getIsaPtr()->snsBankedIndex64(reg, scr.ns); 1083} |
|
1078 1079/** 1080 * If the reg is a child reg of a banked set, then the parent is the last 1081 * banked one in the list. This is messy, and the wish is to eventually have 1082 * the bitmap replaced with a better data structure. the preUnflatten function 1083 * initializes a lookup table to speed up the search for these banked 1084 * registers. 1085 */ --- 3965 unchanged lines hidden --- | 1084 1085/** 1086 * If the reg is a child reg of a banked set, then the parent is the last 1087 * banked one in the list. This is messy, and the wish is to eventually have 1088 * the bitmap replaced with a better data structure. the preUnflatten function 1089 * initializes a lookup table to speed up the search for these banked 1090 * registers. 1091 */ --- 3965 unchanged lines hidden --- |