miscregs.cc (13759:9941fca869a9) miscregs.cc (14128:6ed23d07d0d1)
1/*
1/*
2 * Copyright (c) 2010-2013, 2015-2018 ARM Limited
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

1979 }
1980 break;
1981 case 2:
1982 switch (op2) {
1983 case 0:
1984 return MISCREG_SPSEL;
1985 case 2:
1986 return MISCREG_CURRENTEL;
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

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

1979 }
1980 break;
1981 case 2:
1982 switch (op2) {
1983 case 0:
1984 return MISCREG_SPSEL;
1985 case 2:
1986 return MISCREG_CURRENTEL;
1987 case 3:
1988 return MISCREG_PAN;
1987 }
1988 break;
1989 case 6:
1990 switch (op2) {
1991 case 0:
1992 return MISCREG_ICC_PMR_EL1;
1993 }
1994 break;

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

4052 InitReg(MISCREG_ELR_EL1)
4053 .allPrivileges().exceptUserMode();
4054 InitReg(MISCREG_SP_EL0)
4055 .allPrivileges().exceptUserMode();
4056 InitReg(MISCREG_SPSEL)
4057 .allPrivileges().exceptUserMode();
4058 InitReg(MISCREG_CURRENTEL)
4059 .allPrivileges().exceptUserMode().writes(0);
1989 }
1990 break;
1991 case 6:
1992 switch (op2) {
1993 case 0:
1994 return MISCREG_ICC_PMR_EL1;
1995 }
1996 break;

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

4054 InitReg(MISCREG_ELR_EL1)
4055 .allPrivileges().exceptUserMode();
4056 InitReg(MISCREG_SP_EL0)
4057 .allPrivileges().exceptUserMode();
4058 InitReg(MISCREG_SPSEL)
4059 .allPrivileges().exceptUserMode();
4060 InitReg(MISCREG_CURRENTEL)
4061 .allPrivileges().exceptUserMode().writes(0);
4062 InitReg(MISCREG_PAN)
4063 .allPrivileges().exceptUserMode()
4064 .implemented(havePAN);
4060 InitReg(MISCREG_NZCV)
4061 .allPrivileges();
4062 InitReg(MISCREG_DAIF)
4063 .allPrivileges();
4064 InitReg(MISCREG_FPCR)
4065 .allPrivileges();
4066 InitReg(MISCREG_FPSR)
4067 .allPrivileges();

--- 966 unchanged lines hidden ---
4065 InitReg(MISCREG_NZCV)
4066 .allPrivileges();
4067 InitReg(MISCREG_DAIF)
4068 .allPrivileges();
4069 InitReg(MISCREG_FPCR)
4070 .allPrivileges();
4071 InitReg(MISCREG_FPSR)
4072 .allPrivileges();

--- 966 unchanged lines hidden ---