miscregs.cc revision 14128
17259Sgblack@eecs.umich.edu/* 214128Sgiacomo.travaglini@arm.com * Copyright (c) 2010-2013, 2015-2019 ARM Limited 37259Sgblack@eecs.umich.edu * All rights reserved 47259Sgblack@eecs.umich.edu * 57259Sgblack@eecs.umich.edu * The license below extends only to copyright in the software and shall 67259Sgblack@eecs.umich.edu * not be construed as granting a license to any other intellectual 77259Sgblack@eecs.umich.edu * property including but not limited to intellectual property relating 87259Sgblack@eecs.umich.edu * to a hardware implementation of the functionality of the software 97259Sgblack@eecs.umich.edu * licensed hereunder. You may use the software subject to the license 107259Sgblack@eecs.umich.edu * terms below provided that you ensure that this notice is replicated 117259Sgblack@eecs.umich.edu * unmodified and in its entirety in all distributions of the software, 127259Sgblack@eecs.umich.edu * modified or unmodified, in source code or in binary form. 137259Sgblack@eecs.umich.edu * 147259Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 157259Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are 167259Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright 177259Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 187259Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 197259Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 207259Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution; 217259Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its 227259Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 237259Sgblack@eecs.umich.edu * this software without specific prior written permission. 247259Sgblack@eecs.umich.edu * 257259Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 267259Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 277259Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 287259Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 297259Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 307259Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 317259Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 327259Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 337259Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 347259Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 357259Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 367259Sgblack@eecs.umich.edu * 377259Sgblack@eecs.umich.edu * Authors: Gabe Black 387405SAli.Saidi@ARM.com * Ali Saidi 3910037SARM gem5 Developers * Giacomo Gabrielli 407259Sgblack@eecs.umich.edu */ 417259Sgblack@eecs.umich.edu 4211793Sbrandon.potter@amd.com#include "arch/arm/miscregs.hh" 4311793Sbrandon.potter@amd.com 4411939Snikos.nikoleris@arm.com#include <tuple> 4511939Snikos.nikoleris@arm.com 467405SAli.Saidi@ARM.com#include "arch/arm/isa.hh" 4712334Sgabeblack@google.com#include "base/logging.hh" 4810037SARM gem5 Developers#include "cpu/thread_context.hh" 4910828SGiacomo.Gabrielli@arm.com#include "sim/full_system.hh" 507259Sgblack@eecs.umich.edu 517259Sgblack@eecs.umich.edunamespace ArmISA 527259Sgblack@eecs.umich.edu{ 537259Sgblack@eecs.umich.edu 547259Sgblack@eecs.umich.eduMiscRegIndex 558868SMatt.Horsnell@arm.comdecodeCP14Reg(unsigned crn, unsigned opc1, unsigned crm, unsigned opc2) 568868SMatt.Horsnell@arm.com{ 578868SMatt.Horsnell@arm.com switch(crn) { 588868SMatt.Horsnell@arm.com case 0: 5910037SARM gem5 Developers switch (opc1) { 608868SMatt.Horsnell@arm.com case 0: 6110037SARM gem5 Developers switch (opc2) { 628868SMatt.Horsnell@arm.com case 0: 6310037SARM gem5 Developers switch (crm) { 6410037SARM gem5 Developers case 0: 6510037SARM gem5 Developers return MISCREG_DBGDIDR; 6610037SARM gem5 Developers case 1: 6710037SARM gem5 Developers return MISCREG_DBGDSCRint; 6810037SARM gem5 Developers } 6910037SARM gem5 Developers break; 708868SMatt.Horsnell@arm.com } 7110037SARM gem5 Developers break; 7210037SARM gem5 Developers case 7: 7310037SARM gem5 Developers switch (opc2) { 7410037SARM gem5 Developers case 0: 7510037SARM gem5 Developers switch (crm) { 7610037SARM gem5 Developers case 0: 7710037SARM gem5 Developers return MISCREG_JIDR; 7810037SARM gem5 Developers } 7910037SARM gem5 Developers break; 8010037SARM gem5 Developers } 8110037SARM gem5 Developers break; 829959Schander.sudanthi@arm.com } 8310037SARM gem5 Developers break; 849959Schander.sudanthi@arm.com case 1: 859959Schander.sudanthi@arm.com switch (opc1) { 869959Schander.sudanthi@arm.com case 6: 879959Schander.sudanthi@arm.com switch (crm) { 889959Schander.sudanthi@arm.com case 0: 899959Schander.sudanthi@arm.com switch (opc2) { 909959Schander.sudanthi@arm.com case 0: 919959Schander.sudanthi@arm.com return MISCREG_TEEHBR; 929959Schander.sudanthi@arm.com } 9310037SARM gem5 Developers break; 949959Schander.sudanthi@arm.com } 9510037SARM gem5 Developers break; 9610037SARM gem5 Developers case 7: 9710037SARM gem5 Developers switch (crm) { 9810037SARM gem5 Developers case 0: 9910037SARM gem5 Developers switch (opc2) { 10010037SARM gem5 Developers case 0: 10110037SARM gem5 Developers return MISCREG_JOSCR; 10210037SARM gem5 Developers } 10310037SARM gem5 Developers break; 10410037SARM gem5 Developers } 10510037SARM gem5 Developers break; 1068868SMatt.Horsnell@arm.com } 10710037SARM gem5 Developers break; 10810037SARM gem5 Developers case 2: 10910037SARM gem5 Developers switch (opc1) { 11010037SARM gem5 Developers case 7: 11110037SARM gem5 Developers switch (crm) { 11210037SARM gem5 Developers case 0: 11310037SARM gem5 Developers switch (opc2) { 11410037SARM gem5 Developers case 0: 11510037SARM gem5 Developers return MISCREG_JMCR; 11610037SARM gem5 Developers } 11710037SARM gem5 Developers break; 11810037SARM gem5 Developers } 11910037SARM gem5 Developers break; 12010037SARM gem5 Developers } 12110037SARM gem5 Developers break; 1228868SMatt.Horsnell@arm.com } 12310037SARM gem5 Developers // If we get here then it must be a register that we haven't implemented 12410037SARM gem5 Developers warn("CP14 unimplemented crn[%d], opc1[%d], crm[%d], opc2[%d]", 12510037SARM gem5 Developers crn, opc1, crm, opc2); 12610037SARM gem5 Developers return MISCREG_CP14_UNIMPL; 12710037SARM gem5 Developers} 1288868SMatt.Horsnell@arm.com 12910037SARM gem5 Developersusing namespace std; 13010037SARM gem5 Developers 1318868SMatt.Horsnell@arm.comMiscRegIndex 1327259Sgblack@eecs.umich.edudecodeCP15Reg(unsigned crn, unsigned opc1, unsigned crm, unsigned opc2) 1337259Sgblack@eecs.umich.edu{ 1347259Sgblack@eecs.umich.edu switch (crn) { 1357259Sgblack@eecs.umich.edu case 0: 1367259Sgblack@eecs.umich.edu switch (opc1) { 1377259Sgblack@eecs.umich.edu case 0: 1387259Sgblack@eecs.umich.edu switch (crm) { 1397259Sgblack@eecs.umich.edu case 0: 1407259Sgblack@eecs.umich.edu switch (opc2) { 1417259Sgblack@eecs.umich.edu case 1: 1427259Sgblack@eecs.umich.edu return MISCREG_CTR; 1437259Sgblack@eecs.umich.edu case 2: 1447259Sgblack@eecs.umich.edu return MISCREG_TCMTR; 1457351Sgblack@eecs.umich.edu case 3: 1467351Sgblack@eecs.umich.edu return MISCREG_TLBTR; 1477259Sgblack@eecs.umich.edu case 5: 1487259Sgblack@eecs.umich.edu return MISCREG_MPIDR; 14910037SARM gem5 Developers case 6: 15010037SARM gem5 Developers return MISCREG_REVIDR; 1517259Sgblack@eecs.umich.edu default: 1527259Sgblack@eecs.umich.edu return MISCREG_MIDR; 1537259Sgblack@eecs.umich.edu } 1547259Sgblack@eecs.umich.edu break; 1557259Sgblack@eecs.umich.edu case 1: 1567259Sgblack@eecs.umich.edu switch (opc2) { 1577259Sgblack@eecs.umich.edu case 0: 1587259Sgblack@eecs.umich.edu return MISCREG_ID_PFR0; 1597259Sgblack@eecs.umich.edu case 1: 1607259Sgblack@eecs.umich.edu return MISCREG_ID_PFR1; 1617259Sgblack@eecs.umich.edu case 2: 1627259Sgblack@eecs.umich.edu return MISCREG_ID_DFR0; 1637259Sgblack@eecs.umich.edu case 3: 1647259Sgblack@eecs.umich.edu return MISCREG_ID_AFR0; 1657259Sgblack@eecs.umich.edu case 4: 1667259Sgblack@eecs.umich.edu return MISCREG_ID_MMFR0; 1677259Sgblack@eecs.umich.edu case 5: 1687259Sgblack@eecs.umich.edu return MISCREG_ID_MMFR1; 1697259Sgblack@eecs.umich.edu case 6: 1707259Sgblack@eecs.umich.edu return MISCREG_ID_MMFR2; 1717259Sgblack@eecs.umich.edu case 7: 1727259Sgblack@eecs.umich.edu return MISCREG_ID_MMFR3; 1737259Sgblack@eecs.umich.edu } 1747259Sgblack@eecs.umich.edu break; 1757259Sgblack@eecs.umich.edu case 2: 1767259Sgblack@eecs.umich.edu switch (opc2) { 1777259Sgblack@eecs.umich.edu case 0: 1787259Sgblack@eecs.umich.edu return MISCREG_ID_ISAR0; 1797259Sgblack@eecs.umich.edu case 1: 1807259Sgblack@eecs.umich.edu return MISCREG_ID_ISAR1; 1817259Sgblack@eecs.umich.edu case 2: 1827259Sgblack@eecs.umich.edu return MISCREG_ID_ISAR2; 1837259Sgblack@eecs.umich.edu case 3: 1847259Sgblack@eecs.umich.edu return MISCREG_ID_ISAR3; 1857259Sgblack@eecs.umich.edu case 4: 1867259Sgblack@eecs.umich.edu return MISCREG_ID_ISAR4; 1877259Sgblack@eecs.umich.edu case 5: 1887259Sgblack@eecs.umich.edu return MISCREG_ID_ISAR5; 1897259Sgblack@eecs.umich.edu case 6: 1907259Sgblack@eecs.umich.edu case 7: 1917259Sgblack@eecs.umich.edu return MISCREG_RAZ; // read as zero 1927259Sgblack@eecs.umich.edu } 1937259Sgblack@eecs.umich.edu break; 1947259Sgblack@eecs.umich.edu default: 1957259Sgblack@eecs.umich.edu return MISCREG_RAZ; // read as zero 1967259Sgblack@eecs.umich.edu } 1977259Sgblack@eecs.umich.edu break; 1987259Sgblack@eecs.umich.edu case 1: 1997259Sgblack@eecs.umich.edu if (crm == 0) { 2007259Sgblack@eecs.umich.edu switch (opc2) { 2017259Sgblack@eecs.umich.edu case 0: 2027259Sgblack@eecs.umich.edu return MISCREG_CCSIDR; 2037259Sgblack@eecs.umich.edu case 1: 2047259Sgblack@eecs.umich.edu return MISCREG_CLIDR; 2057259Sgblack@eecs.umich.edu case 7: 2067259Sgblack@eecs.umich.edu return MISCREG_AIDR; 2077259Sgblack@eecs.umich.edu } 2087259Sgblack@eecs.umich.edu } 2097259Sgblack@eecs.umich.edu break; 2107259Sgblack@eecs.umich.edu case 2: 2117259Sgblack@eecs.umich.edu if (crm == 0 && opc2 == 0) { 2127259Sgblack@eecs.umich.edu return MISCREG_CSSELR; 2137259Sgblack@eecs.umich.edu } 2147259Sgblack@eecs.umich.edu break; 21510037SARM gem5 Developers case 4: 21610037SARM gem5 Developers if (crm == 0) { 21710037SARM gem5 Developers if (opc2 == 0) 21810037SARM gem5 Developers return MISCREG_VPIDR; 21910037SARM gem5 Developers else if (opc2 == 5) 22010037SARM gem5 Developers return MISCREG_VMPIDR; 22110037SARM gem5 Developers } 22210037SARM gem5 Developers break; 2237259Sgblack@eecs.umich.edu } 2247259Sgblack@eecs.umich.edu break; 2257259Sgblack@eecs.umich.edu case 1: 2267351Sgblack@eecs.umich.edu if (opc1 == 0) { 2277351Sgblack@eecs.umich.edu if (crm == 0) { 2287351Sgblack@eecs.umich.edu switch (opc2) { 2297351Sgblack@eecs.umich.edu case 0: 2307351Sgblack@eecs.umich.edu return MISCREG_SCTLR; 2317351Sgblack@eecs.umich.edu case 1: 2327351Sgblack@eecs.umich.edu return MISCREG_ACTLR; 2337351Sgblack@eecs.umich.edu case 0x2: 2347351Sgblack@eecs.umich.edu return MISCREG_CPACR; 2357351Sgblack@eecs.umich.edu } 2367351Sgblack@eecs.umich.edu } else if (crm == 1) { 2377351Sgblack@eecs.umich.edu switch (opc2) { 2387351Sgblack@eecs.umich.edu case 0: 2397351Sgblack@eecs.umich.edu return MISCREG_SCR; 2407351Sgblack@eecs.umich.edu case 1: 2417351Sgblack@eecs.umich.edu return MISCREG_SDER; 2427351Sgblack@eecs.umich.edu case 2: 2437351Sgblack@eecs.umich.edu return MISCREG_NSACR; 2447351Sgblack@eecs.umich.edu } 2457351Sgblack@eecs.umich.edu } 24610037SARM gem5 Developers } else if (opc1 == 4) { 24710037SARM gem5 Developers if (crm == 0) { 24810037SARM gem5 Developers if (opc2 == 0) 24910037SARM gem5 Developers return MISCREG_HSCTLR; 25010037SARM gem5 Developers else if (opc2 == 1) 25110037SARM gem5 Developers return MISCREG_HACTLR; 25210037SARM gem5 Developers } else if (crm == 1) { 25310037SARM gem5 Developers switch (opc2) { 25410037SARM gem5 Developers case 0: 25510037SARM gem5 Developers return MISCREG_HCR; 25610037SARM gem5 Developers case 1: 25710037SARM gem5 Developers return MISCREG_HDCR; 25810037SARM gem5 Developers case 2: 25910037SARM gem5 Developers return MISCREG_HCPTR; 26010037SARM gem5 Developers case 3: 26110037SARM gem5 Developers return MISCREG_HSTR; 26210037SARM gem5 Developers case 7: 26310037SARM gem5 Developers return MISCREG_HACR; 26410037SARM gem5 Developers } 26510037SARM gem5 Developers } 2667351Sgblack@eecs.umich.edu } 2677351Sgblack@eecs.umich.edu break; 2687351Sgblack@eecs.umich.edu case 2: 2697406SAli.Saidi@ARM.com if (opc1 == 0 && crm == 0) { 2707259Sgblack@eecs.umich.edu switch (opc2) { 2717259Sgblack@eecs.umich.edu case 0: 2727351Sgblack@eecs.umich.edu return MISCREG_TTBR0; 2737259Sgblack@eecs.umich.edu case 1: 2747351Sgblack@eecs.umich.edu return MISCREG_TTBR1; 2757351Sgblack@eecs.umich.edu case 2: 2767351Sgblack@eecs.umich.edu return MISCREG_TTBCR; 2777259Sgblack@eecs.umich.edu } 27810037SARM gem5 Developers } else if (opc1 == 4) { 27910037SARM gem5 Developers if (crm == 0 && opc2 == 2) 28010037SARM gem5 Developers return MISCREG_HTCR; 28110037SARM gem5 Developers else if (crm == 1 && opc2 == 2) 28210037SARM gem5 Developers return MISCREG_VTCR; 2837259Sgblack@eecs.umich.edu } 2847259Sgblack@eecs.umich.edu break; 2857351Sgblack@eecs.umich.edu case 3: 2867351Sgblack@eecs.umich.edu if (opc1 == 0 && crm == 0 && opc2 == 0) { 2877351Sgblack@eecs.umich.edu return MISCREG_DACR; 2887351Sgblack@eecs.umich.edu } 2897351Sgblack@eecs.umich.edu break; 29013531Sjairo.balart@metempsy.com case 4: 29113531Sjairo.balart@metempsy.com if (opc1 == 0 && crm == 6 && opc2 == 0) { 29213531Sjairo.balart@metempsy.com return MISCREG_ICC_PMR; 29313531Sjairo.balart@metempsy.com } 29413531Sjairo.balart@metempsy.com break; 2957259Sgblack@eecs.umich.edu case 5: 2967259Sgblack@eecs.umich.edu if (opc1 == 0) { 2977259Sgblack@eecs.umich.edu if (crm == 0) { 2987259Sgblack@eecs.umich.edu if (opc2 == 0) { 2997259Sgblack@eecs.umich.edu return MISCREG_DFSR; 3007259Sgblack@eecs.umich.edu } else if (opc2 == 1) { 3017259Sgblack@eecs.umich.edu return MISCREG_IFSR; 3027259Sgblack@eecs.umich.edu } 3037259Sgblack@eecs.umich.edu } else if (crm == 1) { 3047259Sgblack@eecs.umich.edu if (opc2 == 0) { 3057259Sgblack@eecs.umich.edu return MISCREG_ADFSR; 3067259Sgblack@eecs.umich.edu } else if (opc2 == 1) { 3077259Sgblack@eecs.umich.edu return MISCREG_AIFSR; 3087259Sgblack@eecs.umich.edu } 3097259Sgblack@eecs.umich.edu } 31010037SARM gem5 Developers } else if (opc1 == 4) { 31110037SARM gem5 Developers if (crm == 1) { 31210037SARM gem5 Developers if (opc2 == 0) 31310037SARM gem5 Developers return MISCREG_HADFSR; 31410037SARM gem5 Developers else if (opc2 == 1) 31510037SARM gem5 Developers return MISCREG_HAIFSR; 31610037SARM gem5 Developers } else if (crm == 2 && opc2 == 0) { 31710037SARM gem5 Developers return MISCREG_HSR; 31810037SARM gem5 Developers } 3197259Sgblack@eecs.umich.edu } 3207259Sgblack@eecs.umich.edu break; 3217259Sgblack@eecs.umich.edu case 6: 3227351Sgblack@eecs.umich.edu if (opc1 == 0 && crm == 0) { 3237351Sgblack@eecs.umich.edu switch (opc2) { 3247259Sgblack@eecs.umich.edu case 0: 3257351Sgblack@eecs.umich.edu return MISCREG_DFAR; 3267259Sgblack@eecs.umich.edu case 2: 3277351Sgblack@eecs.umich.edu return MISCREG_IFAR; 3287259Sgblack@eecs.umich.edu } 32910037SARM gem5 Developers } else if (opc1 == 4 && crm == 0) { 33010037SARM gem5 Developers switch (opc2) { 33110037SARM gem5 Developers case 0: 33210037SARM gem5 Developers return MISCREG_HDFAR; 33310037SARM gem5 Developers case 2: 33410037SARM gem5 Developers return MISCREG_HIFAR; 33510037SARM gem5 Developers case 4: 33610037SARM gem5 Developers return MISCREG_HPFAR; 33710037SARM gem5 Developers } 3387259Sgblack@eecs.umich.edu } 3397259Sgblack@eecs.umich.edu break; 3407259Sgblack@eecs.umich.edu case 7: 3417259Sgblack@eecs.umich.edu if (opc1 == 0) { 3427259Sgblack@eecs.umich.edu switch (crm) { 3437259Sgblack@eecs.umich.edu case 0: 3447259Sgblack@eecs.umich.edu if (opc2 == 4) { 3457259Sgblack@eecs.umich.edu return MISCREG_NOP; 3467259Sgblack@eecs.umich.edu } 3477259Sgblack@eecs.umich.edu break; 3487259Sgblack@eecs.umich.edu case 1: 3497259Sgblack@eecs.umich.edu switch (opc2) { 3507259Sgblack@eecs.umich.edu case 0: 3517259Sgblack@eecs.umich.edu return MISCREG_ICIALLUIS; 3527259Sgblack@eecs.umich.edu case 6: 3537259Sgblack@eecs.umich.edu return MISCREG_BPIALLIS; 3547259Sgblack@eecs.umich.edu } 3557259Sgblack@eecs.umich.edu break; 3567351Sgblack@eecs.umich.edu case 4: 3577351Sgblack@eecs.umich.edu if (opc2 == 0) { 3587351Sgblack@eecs.umich.edu return MISCREG_PAR; 3597351Sgblack@eecs.umich.edu } 3607351Sgblack@eecs.umich.edu break; 3617259Sgblack@eecs.umich.edu case 5: 3627259Sgblack@eecs.umich.edu switch (opc2) { 3637259Sgblack@eecs.umich.edu case 0: 3647259Sgblack@eecs.umich.edu return MISCREG_ICIALLU; 3657259Sgblack@eecs.umich.edu case 1: 3667259Sgblack@eecs.umich.edu return MISCREG_ICIMVAU; 3677259Sgblack@eecs.umich.edu case 4: 3687259Sgblack@eecs.umich.edu return MISCREG_CP15ISB; 3697259Sgblack@eecs.umich.edu case 6: 3707259Sgblack@eecs.umich.edu return MISCREG_BPIALL; 3717259Sgblack@eecs.umich.edu case 7: 3727259Sgblack@eecs.umich.edu return MISCREG_BPIMVA; 3737259Sgblack@eecs.umich.edu } 3747259Sgblack@eecs.umich.edu break; 3757259Sgblack@eecs.umich.edu case 6: 3767259Sgblack@eecs.umich.edu if (opc2 == 1) { 3777259Sgblack@eecs.umich.edu return MISCREG_DCIMVAC; 3787259Sgblack@eecs.umich.edu } else if (opc2 == 2) { 3797259Sgblack@eecs.umich.edu return MISCREG_DCISW; 3807259Sgblack@eecs.umich.edu } 3817259Sgblack@eecs.umich.edu break; 3827351Sgblack@eecs.umich.edu case 8: 3837351Sgblack@eecs.umich.edu switch (opc2) { 3847351Sgblack@eecs.umich.edu case 0: 38510037SARM gem5 Developers return MISCREG_ATS1CPR; 3867351Sgblack@eecs.umich.edu case 1: 38710037SARM gem5 Developers return MISCREG_ATS1CPW; 3887351Sgblack@eecs.umich.edu case 2: 38910037SARM gem5 Developers return MISCREG_ATS1CUR; 3907351Sgblack@eecs.umich.edu case 3: 39110037SARM gem5 Developers return MISCREG_ATS1CUW; 3927351Sgblack@eecs.umich.edu case 4: 39310037SARM gem5 Developers return MISCREG_ATS12NSOPR; 3947351Sgblack@eecs.umich.edu case 5: 39510037SARM gem5 Developers return MISCREG_ATS12NSOPW; 3967351Sgblack@eecs.umich.edu case 6: 39710037SARM gem5 Developers return MISCREG_ATS12NSOUR; 3987351Sgblack@eecs.umich.edu case 7: 39910037SARM gem5 Developers return MISCREG_ATS12NSOUW; 4007351Sgblack@eecs.umich.edu } 4017351Sgblack@eecs.umich.edu break; 4027259Sgblack@eecs.umich.edu case 10: 4037259Sgblack@eecs.umich.edu switch (opc2) { 4047259Sgblack@eecs.umich.edu case 1: 4057259Sgblack@eecs.umich.edu return MISCREG_DCCMVAC; 4067259Sgblack@eecs.umich.edu case 2: 40710037SARM gem5 Developers return MISCREG_DCCSW; 4087259Sgblack@eecs.umich.edu case 4: 4097259Sgblack@eecs.umich.edu return MISCREG_CP15DSB; 4107259Sgblack@eecs.umich.edu case 5: 4117259Sgblack@eecs.umich.edu return MISCREG_CP15DMB; 4127259Sgblack@eecs.umich.edu } 4137259Sgblack@eecs.umich.edu break; 4147259Sgblack@eecs.umich.edu case 11: 4157259Sgblack@eecs.umich.edu if (opc2 == 1) { 4167259Sgblack@eecs.umich.edu return MISCREG_DCCMVAU; 4177259Sgblack@eecs.umich.edu } 4187259Sgblack@eecs.umich.edu break; 4197259Sgblack@eecs.umich.edu case 13: 4207259Sgblack@eecs.umich.edu if (opc2 == 1) { 4217259Sgblack@eecs.umich.edu return MISCREG_NOP; 4227259Sgblack@eecs.umich.edu } 4237259Sgblack@eecs.umich.edu break; 4247259Sgblack@eecs.umich.edu case 14: 4257259Sgblack@eecs.umich.edu if (opc2 == 1) { 4267259Sgblack@eecs.umich.edu return MISCREG_DCCIMVAC; 4277259Sgblack@eecs.umich.edu } else if (opc2 == 2) { 4287259Sgblack@eecs.umich.edu return MISCREG_DCCISW; 4297259Sgblack@eecs.umich.edu } 4307259Sgblack@eecs.umich.edu break; 4317259Sgblack@eecs.umich.edu } 43210037SARM gem5 Developers } else if (opc1 == 4 && crm == 8) { 43310037SARM gem5 Developers if (opc2 == 0) 43410037SARM gem5 Developers return MISCREG_ATS1HR; 43510037SARM gem5 Developers else if (opc2 == 1) 43610037SARM gem5 Developers return MISCREG_ATS1HW; 4377259Sgblack@eecs.umich.edu } 4387259Sgblack@eecs.umich.edu break; 4397351Sgblack@eecs.umich.edu case 8: 4407351Sgblack@eecs.umich.edu if (opc1 == 0) { 4417351Sgblack@eecs.umich.edu switch (crm) { 4427351Sgblack@eecs.umich.edu case 3: 4437351Sgblack@eecs.umich.edu switch (opc2) { 4447351Sgblack@eecs.umich.edu case 0: 4457351Sgblack@eecs.umich.edu return MISCREG_TLBIALLIS; 4467351Sgblack@eecs.umich.edu case 1: 4477351Sgblack@eecs.umich.edu return MISCREG_TLBIMVAIS; 4487351Sgblack@eecs.umich.edu case 2: 4497351Sgblack@eecs.umich.edu return MISCREG_TLBIASIDIS; 4507351Sgblack@eecs.umich.edu case 3: 4517351Sgblack@eecs.umich.edu return MISCREG_TLBIMVAAIS; 45212576Sgiacomo.travaglini@arm.com case 5: 45312576Sgiacomo.travaglini@arm.com return MISCREG_TLBIMVALIS; 45412576Sgiacomo.travaglini@arm.com case 7: 45512576Sgiacomo.travaglini@arm.com return MISCREG_TLBIMVAALIS; 4567351Sgblack@eecs.umich.edu } 4577351Sgblack@eecs.umich.edu break; 4587351Sgblack@eecs.umich.edu case 5: 4597351Sgblack@eecs.umich.edu switch (opc2) { 4607351Sgblack@eecs.umich.edu case 0: 4617351Sgblack@eecs.umich.edu return MISCREG_ITLBIALL; 4627351Sgblack@eecs.umich.edu case 1: 4637351Sgblack@eecs.umich.edu return MISCREG_ITLBIMVA; 4647351Sgblack@eecs.umich.edu case 2: 4657351Sgblack@eecs.umich.edu return MISCREG_ITLBIASID; 4667351Sgblack@eecs.umich.edu } 4677351Sgblack@eecs.umich.edu break; 4687351Sgblack@eecs.umich.edu case 6: 4697351Sgblack@eecs.umich.edu switch (opc2) { 4707351Sgblack@eecs.umich.edu case 0: 4717351Sgblack@eecs.umich.edu return MISCREG_DTLBIALL; 4727351Sgblack@eecs.umich.edu case 1: 4737351Sgblack@eecs.umich.edu return MISCREG_DTLBIMVA; 4747351Sgblack@eecs.umich.edu case 2: 4757351Sgblack@eecs.umich.edu return MISCREG_DTLBIASID; 4767351Sgblack@eecs.umich.edu } 4777351Sgblack@eecs.umich.edu break; 4787351Sgblack@eecs.umich.edu case 7: 4797351Sgblack@eecs.umich.edu switch (opc2) { 4807351Sgblack@eecs.umich.edu case 0: 4817351Sgblack@eecs.umich.edu return MISCREG_TLBIALL; 4827351Sgblack@eecs.umich.edu case 1: 4837351Sgblack@eecs.umich.edu return MISCREG_TLBIMVA; 4847351Sgblack@eecs.umich.edu case 2: 4857351Sgblack@eecs.umich.edu return MISCREG_TLBIASID; 4867351Sgblack@eecs.umich.edu case 3: 4877351Sgblack@eecs.umich.edu return MISCREG_TLBIMVAA; 48812576Sgiacomo.travaglini@arm.com case 5: 48912576Sgiacomo.travaglini@arm.com return MISCREG_TLBIMVAL; 49012576Sgiacomo.travaglini@arm.com case 7: 49112576Sgiacomo.travaglini@arm.com return MISCREG_TLBIMVAAL; 4927351Sgblack@eecs.umich.edu } 4937351Sgblack@eecs.umich.edu break; 4947351Sgblack@eecs.umich.edu } 49510037SARM gem5 Developers } else if (opc1 == 4) { 49612577Sgiacomo.travaglini@arm.com if (crm == 0) { 49712577Sgiacomo.travaglini@arm.com switch (opc2) { 49812577Sgiacomo.travaglini@arm.com case 1: 49912577Sgiacomo.travaglini@arm.com return MISCREG_TLBIIPAS2IS; 50012577Sgiacomo.travaglini@arm.com case 5: 50112577Sgiacomo.travaglini@arm.com return MISCREG_TLBIIPAS2LIS; 50212577Sgiacomo.travaglini@arm.com } 50312577Sgiacomo.travaglini@arm.com } else if (crm == 3) { 50410037SARM gem5 Developers switch (opc2) { 50510037SARM gem5 Developers case 0: 50610037SARM gem5 Developers return MISCREG_TLBIALLHIS; 50710037SARM gem5 Developers case 1: 50810037SARM gem5 Developers return MISCREG_TLBIMVAHIS; 50910037SARM gem5 Developers case 4: 51010037SARM gem5 Developers return MISCREG_TLBIALLNSNHIS; 51112576Sgiacomo.travaglini@arm.com case 5: 51212576Sgiacomo.travaglini@arm.com return MISCREG_TLBIMVALHIS; 51310037SARM gem5 Developers } 51412577Sgiacomo.travaglini@arm.com } else if (crm == 4) { 51512577Sgiacomo.travaglini@arm.com switch (opc2) { 51612577Sgiacomo.travaglini@arm.com case 1: 51712577Sgiacomo.travaglini@arm.com return MISCREG_TLBIIPAS2; 51812577Sgiacomo.travaglini@arm.com case 5: 51912577Sgiacomo.travaglini@arm.com return MISCREG_TLBIIPAS2L; 52012577Sgiacomo.travaglini@arm.com } 52110037SARM gem5 Developers } else if (crm == 7) { 52210037SARM gem5 Developers switch (opc2) { 52310037SARM gem5 Developers case 0: 52410037SARM gem5 Developers return MISCREG_TLBIALLH; 52510037SARM gem5 Developers case 1: 52610037SARM gem5 Developers return MISCREG_TLBIMVAH; 52710037SARM gem5 Developers case 4: 52810037SARM gem5 Developers return MISCREG_TLBIALLNSNH; 52912576Sgiacomo.travaglini@arm.com case 5: 53012576Sgiacomo.travaglini@arm.com return MISCREG_TLBIMVALH; 53110037SARM gem5 Developers } 53210037SARM gem5 Developers } 5337351Sgblack@eecs.umich.edu } 5347351Sgblack@eecs.umich.edu break; 5357259Sgblack@eecs.umich.edu case 9: 53612530Sgiacomo.travaglini@arm.com // Every cop register with CRn = 9 and CRm in 53712530Sgiacomo.travaglini@arm.com // {0-2}, {5-8} is implementation defined regardless 53812530Sgiacomo.travaglini@arm.com // of opc1 and opc2. 53912530Sgiacomo.travaglini@arm.com switch (crm) { 54012530Sgiacomo.travaglini@arm.com case 0: 54112530Sgiacomo.travaglini@arm.com case 1: 54212530Sgiacomo.travaglini@arm.com case 2: 54312530Sgiacomo.travaglini@arm.com case 5: 54412530Sgiacomo.travaglini@arm.com case 6: 54512530Sgiacomo.travaglini@arm.com case 7: 54612530Sgiacomo.travaglini@arm.com case 8: 54712530Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 54812530Sgiacomo.travaglini@arm.com } 5497583SAli.Saidi@arm.com if (opc1 == 0) { 5507259Sgblack@eecs.umich.edu switch (crm) { 5517259Sgblack@eecs.umich.edu case 12: 5527583SAli.Saidi@arm.com switch (opc2) { 5537583SAli.Saidi@arm.com case 0: 5547583SAli.Saidi@arm.com return MISCREG_PMCR; 5557583SAli.Saidi@arm.com case 1: 5567583SAli.Saidi@arm.com return MISCREG_PMCNTENSET; 5577583SAli.Saidi@arm.com case 2: 5587583SAli.Saidi@arm.com return MISCREG_PMCNTENCLR; 5597583SAli.Saidi@arm.com case 3: 5607583SAli.Saidi@arm.com return MISCREG_PMOVSR; 5617583SAli.Saidi@arm.com case 4: 5627583SAli.Saidi@arm.com return MISCREG_PMSWINC; 5637583SAli.Saidi@arm.com case 5: 5647583SAli.Saidi@arm.com return MISCREG_PMSELR; 5657583SAli.Saidi@arm.com case 6: 5667583SAli.Saidi@arm.com return MISCREG_PMCEID0; 5677583SAli.Saidi@arm.com case 7: 5687583SAli.Saidi@arm.com return MISCREG_PMCEID1; 5697583SAli.Saidi@arm.com } 5708988SAli.Saidi@ARM.com break; 5717259Sgblack@eecs.umich.edu case 13: 5727583SAli.Saidi@arm.com switch (opc2) { 5737583SAli.Saidi@arm.com case 0: 5747583SAli.Saidi@arm.com return MISCREG_PMCCNTR; 5757583SAli.Saidi@arm.com case 1: 57610037SARM gem5 Developers // Selector is PMSELR.SEL 57710037SARM gem5 Developers return MISCREG_PMXEVTYPER_PMCCFILTR; 5787583SAli.Saidi@arm.com case 2: 5797583SAli.Saidi@arm.com return MISCREG_PMXEVCNTR; 5807583SAli.Saidi@arm.com } 5818988SAli.Saidi@ARM.com break; 5827259Sgblack@eecs.umich.edu case 14: 5837583SAli.Saidi@arm.com switch (opc2) { 5847583SAli.Saidi@arm.com case 0: 5857583SAli.Saidi@arm.com return MISCREG_PMUSERENR; 5867583SAli.Saidi@arm.com case 1: 5877583SAli.Saidi@arm.com return MISCREG_PMINTENSET; 5887583SAli.Saidi@arm.com case 2: 5897583SAli.Saidi@arm.com return MISCREG_PMINTENCLR; 59010037SARM gem5 Developers case 3: 59110037SARM gem5 Developers return MISCREG_PMOVSSET; 5927583SAli.Saidi@arm.com } 5938988SAli.Saidi@ARM.com break; 5947259Sgblack@eecs.umich.edu } 5958058SAli.Saidi@ARM.com } else if (opc1 == 1) { 5968549Sdaniel.johnson@arm.com switch (crm) { 5978549Sdaniel.johnson@arm.com case 0: 5988549Sdaniel.johnson@arm.com switch (opc2) { 5998549Sdaniel.johnson@arm.com case 2: // L2CTLR, L2 Control Register 6008549Sdaniel.johnson@arm.com return MISCREG_L2CTLR; 60110037SARM gem5 Developers case 3: 60210037SARM gem5 Developers return MISCREG_L2ECTLR; 6038549Sdaniel.johnson@arm.com } 6048988SAli.Saidi@ARM.com break; 60510037SARM gem5 Developers break; 6068549Sdaniel.johnson@arm.com } 6077259Sgblack@eecs.umich.edu } 6087259Sgblack@eecs.umich.edu break; 6097351Sgblack@eecs.umich.edu case 10: 6107351Sgblack@eecs.umich.edu if (opc1 == 0) { 6117351Sgblack@eecs.umich.edu // crm 0, 1, 4, and 8, with op2 0 - 7, reserved for TLB lockdown 61212530Sgiacomo.travaglini@arm.com if (crm < 2) { 61312530Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 61412530Sgiacomo.travaglini@arm.com } else if (crm == 2) { // TEX Remap Registers 6157351Sgblack@eecs.umich.edu if (opc2 == 0) { 61610037SARM gem5 Developers // Selector is TTBCR.EAE 61710037SARM gem5 Developers return MISCREG_PRRR_MAIR0; 6187351Sgblack@eecs.umich.edu } else if (opc2 == 1) { 61910037SARM gem5 Developers // Selector is TTBCR.EAE 62010037SARM gem5 Developers return MISCREG_NMRR_MAIR1; 6217351Sgblack@eecs.umich.edu } 62210037SARM gem5 Developers } else if (crm == 3) { 62310037SARM gem5 Developers if (opc2 == 0) { 62410037SARM gem5 Developers return MISCREG_AMAIR0; 62510037SARM gem5 Developers } else if (opc2 == 1) { 62610037SARM gem5 Developers return MISCREG_AMAIR1; 62710037SARM gem5 Developers } 62810037SARM gem5 Developers } 62910037SARM gem5 Developers } else if (opc1 == 4) { 63010037SARM gem5 Developers // crm 0, 1, 4, and 8, with op2 0 - 7, reserved for TLB lockdown 63110037SARM gem5 Developers if (crm == 2) { 63210037SARM gem5 Developers if (opc2 == 0) 63310037SARM gem5 Developers return MISCREG_HMAIR0; 63410037SARM gem5 Developers else if (opc2 == 1) 63510037SARM gem5 Developers return MISCREG_HMAIR1; 63610037SARM gem5 Developers } else if (crm == 3) { 63710037SARM gem5 Developers if (opc2 == 0) 63810037SARM gem5 Developers return MISCREG_HAMAIR0; 63910037SARM gem5 Developers else if (opc2 == 1) 64010037SARM gem5 Developers return MISCREG_HAMAIR1; 6417351Sgblack@eecs.umich.edu } 6427351Sgblack@eecs.umich.edu } 6437351Sgblack@eecs.umich.edu break; 6447259Sgblack@eecs.umich.edu case 11: 6458737Skoansin.tan@gmail.com if (opc1 <=7) { 6467259Sgblack@eecs.umich.edu switch (crm) { 6477259Sgblack@eecs.umich.edu case 0: 6487259Sgblack@eecs.umich.edu case 1: 6497259Sgblack@eecs.umich.edu case 2: 6507259Sgblack@eecs.umich.edu case 3: 6517259Sgblack@eecs.umich.edu case 4: 6527259Sgblack@eecs.umich.edu case 5: 6537259Sgblack@eecs.umich.edu case 6: 6547259Sgblack@eecs.umich.edu case 7: 6557259Sgblack@eecs.umich.edu case 8: 6567259Sgblack@eecs.umich.edu case 15: 6577259Sgblack@eecs.umich.edu // Reserved for DMA operations for TCM access 65812530Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 65912530Sgiacomo.travaglini@arm.com default: 6607259Sgblack@eecs.umich.edu break; 6617259Sgblack@eecs.umich.edu } 6627259Sgblack@eecs.umich.edu } 6637259Sgblack@eecs.umich.edu break; 6647351Sgblack@eecs.umich.edu case 12: 6657351Sgblack@eecs.umich.edu if (opc1 == 0) { 6667351Sgblack@eecs.umich.edu if (crm == 0) { 6677351Sgblack@eecs.umich.edu if (opc2 == 0) { 6687351Sgblack@eecs.umich.edu return MISCREG_VBAR; 6697351Sgblack@eecs.umich.edu } else if (opc2 == 1) { 6707351Sgblack@eecs.umich.edu return MISCREG_MVBAR; 6717351Sgblack@eecs.umich.edu } 6727351Sgblack@eecs.umich.edu } else if (crm == 1) { 6737351Sgblack@eecs.umich.edu if (opc2 == 0) { 6747351Sgblack@eecs.umich.edu return MISCREG_ISR; 6757351Sgblack@eecs.umich.edu } 67613531Sjairo.balart@metempsy.com } else if (crm == 8) { 67713531Sjairo.balart@metempsy.com switch (opc2) { 67813531Sjairo.balart@metempsy.com case 0: 67913531Sjairo.balart@metempsy.com return MISCREG_ICC_IAR0; 68013531Sjairo.balart@metempsy.com case 1: 68113531Sjairo.balart@metempsy.com return MISCREG_ICC_EOIR0; 68213531Sjairo.balart@metempsy.com case 2: 68313531Sjairo.balart@metempsy.com return MISCREG_ICC_HPPIR0; 68413531Sjairo.balart@metempsy.com case 3: 68513531Sjairo.balart@metempsy.com return MISCREG_ICC_BPR0; 68613531Sjairo.balart@metempsy.com case 4: 68713531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R0; 68813531Sjairo.balart@metempsy.com case 5: 68913531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R1; 69013531Sjairo.balart@metempsy.com case 6: 69113531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R2; 69213531Sjairo.balart@metempsy.com case 7: 69313531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R3; 69413531Sjairo.balart@metempsy.com } 69513531Sjairo.balart@metempsy.com } else if (crm == 9) { 69613531Sjairo.balart@metempsy.com switch (opc2) { 69713531Sjairo.balart@metempsy.com case 0: 69813531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R0; 69913531Sjairo.balart@metempsy.com case 1: 70013531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R1; 70113531Sjairo.balart@metempsy.com case 2: 70213531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R2; 70313531Sjairo.balart@metempsy.com case 3: 70413531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R3; 70513531Sjairo.balart@metempsy.com } 70613531Sjairo.balart@metempsy.com } else if (crm == 11) { 70713531Sjairo.balart@metempsy.com switch (opc2) { 70813531Sjairo.balart@metempsy.com case 1: 70913531Sjairo.balart@metempsy.com return MISCREG_ICC_DIR; 71013531Sjairo.balart@metempsy.com case 3: 71113531Sjairo.balart@metempsy.com return MISCREG_ICC_RPR; 71213531Sjairo.balart@metempsy.com } 71313531Sjairo.balart@metempsy.com } else if (crm == 12) { 71413531Sjairo.balart@metempsy.com switch (opc2) { 71513531Sjairo.balart@metempsy.com case 0: 71613531Sjairo.balart@metempsy.com return MISCREG_ICC_IAR1; 71713531Sjairo.balart@metempsy.com case 1: 71813531Sjairo.balart@metempsy.com return MISCREG_ICC_EOIR1; 71913531Sjairo.balart@metempsy.com case 2: 72013531Sjairo.balart@metempsy.com return MISCREG_ICC_HPPIR1; 72113531Sjairo.balart@metempsy.com case 3: 72213531Sjairo.balart@metempsy.com return MISCREG_ICC_BPR1; 72313531Sjairo.balart@metempsy.com case 4: 72413531Sjairo.balart@metempsy.com return MISCREG_ICC_CTLR; 72513531Sjairo.balart@metempsy.com case 5: 72613531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE; 72713531Sjairo.balart@metempsy.com case 6: 72813531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN0; 72913531Sjairo.balart@metempsy.com case 7: 73013531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN1; 73113531Sjairo.balart@metempsy.com } 7327351Sgblack@eecs.umich.edu } 73310037SARM gem5 Developers } else if (opc1 == 4) { 73413531Sjairo.balart@metempsy.com if (crm == 0 && opc2 == 0) { 73510037SARM gem5 Developers return MISCREG_HVBAR; 73613531Sjairo.balart@metempsy.com } else if (crm == 8) { 73713531Sjairo.balart@metempsy.com switch (opc2) { 73813531Sjairo.balart@metempsy.com case 0: 73913531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R0; 74013531Sjairo.balart@metempsy.com case 1: 74113531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R1; 74213531Sjairo.balart@metempsy.com case 2: 74313531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R2; 74413531Sjairo.balart@metempsy.com case 3: 74513531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R3; 74613531Sjairo.balart@metempsy.com } 74713531Sjairo.balart@metempsy.com } else if (crm == 9) { 74813531Sjairo.balart@metempsy.com switch (opc2) { 74913531Sjairo.balart@metempsy.com case 0: 75013531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R0; 75113531Sjairo.balart@metempsy.com case 1: 75213531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R1; 75313531Sjairo.balart@metempsy.com case 2: 75413531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R2; 75513531Sjairo.balart@metempsy.com case 3: 75613531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R3; 75713531Sjairo.balart@metempsy.com case 5: 75813531Sjairo.balart@metempsy.com return MISCREG_ICC_HSRE; 75913531Sjairo.balart@metempsy.com } 76013531Sjairo.balart@metempsy.com } else if (crm == 11) { 76113531Sjairo.balart@metempsy.com switch (opc2) { 76213531Sjairo.balart@metempsy.com case 0: 76313531Sjairo.balart@metempsy.com return MISCREG_ICH_HCR; 76413531Sjairo.balart@metempsy.com case 1: 76513531Sjairo.balart@metempsy.com return MISCREG_ICH_VTR; 76613531Sjairo.balart@metempsy.com case 2: 76713531Sjairo.balart@metempsy.com return MISCREG_ICH_MISR; 76813531Sjairo.balart@metempsy.com case 3: 76913531Sjairo.balart@metempsy.com return MISCREG_ICH_EISR; 77013531Sjairo.balart@metempsy.com case 5: 77113531Sjairo.balart@metempsy.com return MISCREG_ICH_ELRSR; 77213531Sjairo.balart@metempsy.com case 7: 77313531Sjairo.balart@metempsy.com return MISCREG_ICH_VMCR; 77413531Sjairo.balart@metempsy.com } 77513531Sjairo.balart@metempsy.com } else if (crm == 12) { 77613531Sjairo.balart@metempsy.com switch (opc2) { 77713531Sjairo.balart@metempsy.com case 0: 77813531Sjairo.balart@metempsy.com return MISCREG_ICH_LR0; 77913531Sjairo.balart@metempsy.com case 1: 78013531Sjairo.balart@metempsy.com return MISCREG_ICH_LR1; 78113531Sjairo.balart@metempsy.com case 2: 78213531Sjairo.balart@metempsy.com return MISCREG_ICH_LR2; 78313531Sjairo.balart@metempsy.com case 3: 78413531Sjairo.balart@metempsy.com return MISCREG_ICH_LR3; 78513531Sjairo.balart@metempsy.com case 4: 78613531Sjairo.balart@metempsy.com return MISCREG_ICH_LR4; 78713531Sjairo.balart@metempsy.com case 5: 78813531Sjairo.balart@metempsy.com return MISCREG_ICH_LR5; 78913531Sjairo.balart@metempsy.com case 6: 79013531Sjairo.balart@metempsy.com return MISCREG_ICH_LR6; 79113531Sjairo.balart@metempsy.com case 7: 79213531Sjairo.balart@metempsy.com return MISCREG_ICH_LR7; 79313531Sjairo.balart@metempsy.com } 79413531Sjairo.balart@metempsy.com } else if (crm == 13) { 79513531Sjairo.balart@metempsy.com switch (opc2) { 79613531Sjairo.balart@metempsy.com case 0: 79713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR8; 79813531Sjairo.balart@metempsy.com case 1: 79913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR9; 80013531Sjairo.balart@metempsy.com case 2: 80113531Sjairo.balart@metempsy.com return MISCREG_ICH_LR10; 80213531Sjairo.balart@metempsy.com case 3: 80313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR11; 80413531Sjairo.balart@metempsy.com case 4: 80513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR12; 80613531Sjairo.balart@metempsy.com case 5: 80713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR13; 80813531Sjairo.balart@metempsy.com case 6: 80913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR14; 81013531Sjairo.balart@metempsy.com case 7: 81113531Sjairo.balart@metempsy.com return MISCREG_ICH_LR15; 81213531Sjairo.balart@metempsy.com } 81313531Sjairo.balart@metempsy.com } else if (crm == 14) { 81413531Sjairo.balart@metempsy.com switch (opc2) { 81513531Sjairo.balart@metempsy.com case 0: 81613531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC0; 81713531Sjairo.balart@metempsy.com case 1: 81813531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC1; 81913531Sjairo.balart@metempsy.com case 2: 82013531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC2; 82113531Sjairo.balart@metempsy.com case 3: 82213531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC3; 82313531Sjairo.balart@metempsy.com case 4: 82413531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC4; 82513531Sjairo.balart@metempsy.com case 5: 82613531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC5; 82713531Sjairo.balart@metempsy.com case 6: 82813531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC6; 82913531Sjairo.balart@metempsy.com case 7: 83013531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC7; 83113531Sjairo.balart@metempsy.com } 83213531Sjairo.balart@metempsy.com } else if (crm == 15) { 83313531Sjairo.balart@metempsy.com switch (opc2) { 83413531Sjairo.balart@metempsy.com case 0: 83513531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC8; 83613531Sjairo.balart@metempsy.com case 1: 83713531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC9; 83813531Sjairo.balart@metempsy.com case 2: 83913531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC10; 84013531Sjairo.balart@metempsy.com case 3: 84113531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC11; 84213531Sjairo.balart@metempsy.com case 4: 84313531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC12; 84413531Sjairo.balart@metempsy.com case 5: 84513531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC13; 84613531Sjairo.balart@metempsy.com case 6: 84713531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC14; 84813531Sjairo.balart@metempsy.com case 7: 84913531Sjairo.balart@metempsy.com return MISCREG_ICH_LRC15; 85013531Sjairo.balart@metempsy.com } 85113531Sjairo.balart@metempsy.com } 85213531Sjairo.balart@metempsy.com } else if (opc1 == 6) { 85313531Sjairo.balart@metempsy.com if (crm == 12) { 85413531Sjairo.balart@metempsy.com switch (opc2) { 85513531Sjairo.balart@metempsy.com case 4: 85613531Sjairo.balart@metempsy.com return MISCREG_ICC_MCTLR; 85713531Sjairo.balart@metempsy.com case 5: 85813531Sjairo.balart@metempsy.com return MISCREG_ICC_MSRE; 85913531Sjairo.balart@metempsy.com case 7: 86013531Sjairo.balart@metempsy.com return MISCREG_ICC_MGRPEN1; 86113531Sjairo.balart@metempsy.com } 86213531Sjairo.balart@metempsy.com } 8637351Sgblack@eecs.umich.edu } 8647351Sgblack@eecs.umich.edu break; 8657259Sgblack@eecs.umich.edu case 13: 8667259Sgblack@eecs.umich.edu if (opc1 == 0) { 8677259Sgblack@eecs.umich.edu if (crm == 0) { 8687406SAli.Saidi@ARM.com switch (opc2) { 8697351Sgblack@eecs.umich.edu case 0: 87010037SARM gem5 Developers return MISCREG_FCSEIDR; 8717259Sgblack@eecs.umich.edu case 1: 8727259Sgblack@eecs.umich.edu return MISCREG_CONTEXTIDR; 8737259Sgblack@eecs.umich.edu case 2: 8747259Sgblack@eecs.umich.edu return MISCREG_TPIDRURW; 8757259Sgblack@eecs.umich.edu case 3: 8767259Sgblack@eecs.umich.edu return MISCREG_TPIDRURO; 8777259Sgblack@eecs.umich.edu case 4: 8787259Sgblack@eecs.umich.edu return MISCREG_TPIDRPRW; 8797259Sgblack@eecs.umich.edu } 8807259Sgblack@eecs.umich.edu } 88110037SARM gem5 Developers } else if (opc1 == 4) { 88210037SARM gem5 Developers if (crm == 0 && opc2 == 2) 88310037SARM gem5 Developers return MISCREG_HTPIDR; 88410037SARM gem5 Developers } 88510037SARM gem5 Developers break; 88610037SARM gem5 Developers case 14: 88710037SARM gem5 Developers if (opc1 == 0) { 88810037SARM gem5 Developers switch (crm) { 88910037SARM gem5 Developers case 0: 89010037SARM gem5 Developers if (opc2 == 0) 89110037SARM gem5 Developers return MISCREG_CNTFRQ; 89210037SARM gem5 Developers break; 89310037SARM gem5 Developers case 1: 89410037SARM gem5 Developers if (opc2 == 0) 89510037SARM gem5 Developers return MISCREG_CNTKCTL; 89610037SARM gem5 Developers break; 89710037SARM gem5 Developers case 2: 89810037SARM gem5 Developers if (opc2 == 0) 89910037SARM gem5 Developers return MISCREG_CNTP_TVAL; 90010037SARM gem5 Developers else if (opc2 == 1) 90110037SARM gem5 Developers return MISCREG_CNTP_CTL; 90210037SARM gem5 Developers break; 90310037SARM gem5 Developers case 3: 90410037SARM gem5 Developers if (opc2 == 0) 90510037SARM gem5 Developers return MISCREG_CNTV_TVAL; 90610037SARM gem5 Developers else if (opc2 == 1) 90710037SARM gem5 Developers return MISCREG_CNTV_CTL; 90810037SARM gem5 Developers break; 90910037SARM gem5 Developers } 91010037SARM gem5 Developers } else if (opc1 == 4) { 91110037SARM gem5 Developers if (crm == 1 && opc2 == 0) { 91210037SARM gem5 Developers return MISCREG_CNTHCTL; 91310037SARM gem5 Developers } else if (crm == 2) { 91410037SARM gem5 Developers if (opc2 == 0) 91510037SARM gem5 Developers return MISCREG_CNTHP_TVAL; 91610037SARM gem5 Developers else if (opc2 == 1) 91710037SARM gem5 Developers return MISCREG_CNTHP_CTL; 91810037SARM gem5 Developers } 9197259Sgblack@eecs.umich.edu } 9207259Sgblack@eecs.umich.edu break; 9217259Sgblack@eecs.umich.edu case 15: 9227259Sgblack@eecs.umich.edu // Implementation defined 92312530Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 9247259Sgblack@eecs.umich.edu } 9257259Sgblack@eecs.umich.edu // Unrecognized register 92610037SARM gem5 Developers return MISCREG_CP15_UNIMPL; 9277259Sgblack@eecs.umich.edu} 9287259Sgblack@eecs.umich.edu 92910037SARM gem5 DevelopersMiscRegIndex 93010037SARM gem5 DevelopersdecodeCP15Reg64(unsigned crm, unsigned opc1) 93110037SARM gem5 Developers{ 93210037SARM gem5 Developers switch (crm) { 93310037SARM gem5 Developers case 2: 93410037SARM gem5 Developers switch (opc1) { 93510037SARM gem5 Developers case 0: 93610037SARM gem5 Developers return MISCREG_TTBR0; 93710037SARM gem5 Developers case 1: 93810037SARM gem5 Developers return MISCREG_TTBR1; 93910037SARM gem5 Developers case 4: 94010037SARM gem5 Developers return MISCREG_HTTBR; 94110037SARM gem5 Developers case 6: 94210037SARM gem5 Developers return MISCREG_VTTBR; 94310037SARM gem5 Developers } 94410037SARM gem5 Developers break; 94510037SARM gem5 Developers case 7: 94610037SARM gem5 Developers if (opc1 == 0) 94710037SARM gem5 Developers return MISCREG_PAR; 94810037SARM gem5 Developers break; 94910037SARM gem5 Developers case 14: 95010037SARM gem5 Developers switch (opc1) { 95110037SARM gem5 Developers case 0: 95210037SARM gem5 Developers return MISCREG_CNTPCT; 95310037SARM gem5 Developers case 1: 95410037SARM gem5 Developers return MISCREG_CNTVCT; 95510037SARM gem5 Developers case 2: 95610037SARM gem5 Developers return MISCREG_CNTP_CVAL; 95710037SARM gem5 Developers case 3: 95810037SARM gem5 Developers return MISCREG_CNTV_CVAL; 95910037SARM gem5 Developers case 4: 96010037SARM gem5 Developers return MISCREG_CNTVOFF; 96110037SARM gem5 Developers case 6: 96210037SARM gem5 Developers return MISCREG_CNTHP_CVAL; 96310037SARM gem5 Developers } 96410037SARM gem5 Developers break; 96510037SARM gem5 Developers case 15: 96610037SARM gem5 Developers if (opc1 == 0) 96710037SARM gem5 Developers return MISCREG_CPUMERRSR; 96810037SARM gem5 Developers else if (opc1 == 1) 96910037SARM gem5 Developers return MISCREG_L2MERRSR; 97010037SARM gem5 Developers break; 97110037SARM gem5 Developers } 97210037SARM gem5 Developers // Unrecognized register 97310037SARM gem5 Developers return MISCREG_CP15_UNIMPL; 9748902Sandreas.hansson@arm.com} 97510037SARM gem5 Developers 97611939Snikos.nikoleris@arm.comstd::tuple<bool, bool> 97711939Snikos.nikoleris@arm.comcanReadCoprocReg(MiscRegIndex reg, SCR scr, CPSR cpsr) 97810037SARM gem5 Developers{ 97910037SARM gem5 Developers bool secure = !scr.ns; 98011939Snikos.nikoleris@arm.com bool canRead = false; 98111939Snikos.nikoleris@arm.com bool undefined = false; 98210037SARM gem5 Developers 98310037SARM gem5 Developers switch (cpsr.mode) { 98410037SARM gem5 Developers case MODE_USER: 98510037SARM gem5 Developers canRead = secure ? miscRegInfo[reg][MISCREG_USR_S_RD] : 98610037SARM gem5 Developers miscRegInfo[reg][MISCREG_USR_NS_RD]; 98710037SARM gem5 Developers break; 98810037SARM gem5 Developers case MODE_FIQ: 98910037SARM gem5 Developers case MODE_IRQ: 99010037SARM gem5 Developers case MODE_SVC: 99110037SARM gem5 Developers case MODE_ABORT: 99210037SARM gem5 Developers case MODE_UNDEFINED: 99310037SARM gem5 Developers case MODE_SYSTEM: 99410037SARM gem5 Developers canRead = secure ? miscRegInfo[reg][MISCREG_PRI_S_RD] : 99510037SARM gem5 Developers miscRegInfo[reg][MISCREG_PRI_NS_RD]; 99610037SARM gem5 Developers break; 99710037SARM gem5 Developers case MODE_MON: 99810037SARM gem5 Developers canRead = secure ? miscRegInfo[reg][MISCREG_MON_NS0_RD] : 99910037SARM gem5 Developers miscRegInfo[reg][MISCREG_MON_NS1_RD]; 100010037SARM gem5 Developers break; 100110037SARM gem5 Developers case MODE_HYP: 100210037SARM gem5 Developers canRead = miscRegInfo[reg][MISCREG_HYP_RD]; 100310037SARM gem5 Developers break; 100410037SARM gem5 Developers default: 100511939Snikos.nikoleris@arm.com undefined = true; 100610037SARM gem5 Developers } 100710037SARM gem5 Developers // can't do permissions checkes on the root of a banked pair of regs 100810037SARM gem5 Developers assert(!miscRegInfo[reg][MISCREG_BANKED]); 100911939Snikos.nikoleris@arm.com return std::make_tuple(canRead, undefined); 101010037SARM gem5 Developers} 101110037SARM gem5 Developers 101211939Snikos.nikoleris@arm.comstd::tuple<bool, bool> 101311939Snikos.nikoleris@arm.comcanWriteCoprocReg(MiscRegIndex reg, SCR scr, CPSR cpsr) 101410037SARM gem5 Developers{ 101510037SARM gem5 Developers bool secure = !scr.ns; 101611939Snikos.nikoleris@arm.com bool canWrite = false; 101711939Snikos.nikoleris@arm.com bool undefined = false; 101810037SARM gem5 Developers 101910037SARM gem5 Developers switch (cpsr.mode) { 102010037SARM gem5 Developers case MODE_USER: 102110037SARM gem5 Developers canWrite = secure ? miscRegInfo[reg][MISCREG_USR_S_WR] : 102210037SARM gem5 Developers miscRegInfo[reg][MISCREG_USR_NS_WR]; 102310037SARM gem5 Developers break; 102410037SARM gem5 Developers case MODE_FIQ: 102510037SARM gem5 Developers case MODE_IRQ: 102610037SARM gem5 Developers case MODE_SVC: 102710037SARM gem5 Developers case MODE_ABORT: 102810037SARM gem5 Developers case MODE_UNDEFINED: 102910037SARM gem5 Developers case MODE_SYSTEM: 103010037SARM gem5 Developers canWrite = secure ? miscRegInfo[reg][MISCREG_PRI_S_WR] : 103110037SARM gem5 Developers miscRegInfo[reg][MISCREG_PRI_NS_WR]; 103210037SARM gem5 Developers break; 103310037SARM gem5 Developers case MODE_MON: 103410037SARM gem5 Developers canWrite = secure ? miscRegInfo[reg][MISCREG_MON_NS0_WR] : 103510037SARM gem5 Developers miscRegInfo[reg][MISCREG_MON_NS1_WR]; 103610037SARM gem5 Developers break; 103710037SARM gem5 Developers case MODE_HYP: 103810037SARM gem5 Developers canWrite = miscRegInfo[reg][MISCREG_HYP_WR]; 103910037SARM gem5 Developers break; 104010037SARM gem5 Developers default: 104111939Snikos.nikoleris@arm.com undefined = true; 104210037SARM gem5 Developers } 104310037SARM gem5 Developers // can't do permissions checkes on the root of a banked pair of regs 104410037SARM gem5 Developers assert(!miscRegInfo[reg][MISCREG_BANKED]); 104511939Snikos.nikoleris@arm.com return std::make_tuple(canWrite, undefined); 104610037SARM gem5 Developers} 104710037SARM gem5 Developers 104810037SARM gem5 Developersint 104912499Sgiacomo.travaglini@arm.comsnsBankedIndex(MiscRegIndex reg, ThreadContext *tc) 105010037SARM gem5 Developers{ 105111771SCurtis.Dunham@arm.com SCR scr = tc->readMiscReg(MISCREG_SCR); 105212499Sgiacomo.travaglini@arm.com return snsBankedIndex(reg, tc, scr.ns); 105310037SARM gem5 Developers} 105410037SARM gem5 Developers 105510037SARM gem5 Developersint 105612499Sgiacomo.travaglini@arm.comsnsBankedIndex(MiscRegIndex reg, ThreadContext *tc, bool ns) 105710037SARM gem5 Developers{ 105810421Sandreas.hansson@arm.com int reg_as_int = static_cast<int>(reg); 105910037SARM gem5 Developers if (miscRegInfo[reg][MISCREG_BANKED]) { 106011771SCurtis.Dunham@arm.com reg_as_int += (ArmSystem::haveSecurity(tc) && 106111771SCurtis.Dunham@arm.com !ArmSystem::highestELIs64(tc) && !ns) ? 2 : 1; 106210037SARM gem5 Developers } 106310421Sandreas.hansson@arm.com return reg_as_int; 106410037SARM gem5 Developers} 106510037SARM gem5 Developers 106610037SARM gem5 Developers 106710037SARM gem5 Developers/** 106810037SARM gem5 Developers * If the reg is a child reg of a banked set, then the parent is the last 106910037SARM gem5 Developers * banked one in the list. This is messy, and the wish is to eventually have 107010037SARM gem5 Developers * the bitmap replaced with a better data structure. the preUnflatten function 107110037SARM gem5 Developers * initializes a lookup table to speed up the search for these banked 107210037SARM gem5 Developers * registers. 107310037SARM gem5 Developers */ 107410037SARM gem5 Developers 107510037SARM gem5 Developersint unflattenResultMiscReg[NUM_MISCREGS]; 107610037SARM gem5 Developers 107710037SARM gem5 Developersvoid 107810037SARM gem5 DeveloperspreUnflattenMiscReg() 107910037SARM gem5 Developers{ 108010037SARM gem5 Developers int reg = -1; 108110037SARM gem5 Developers for (int i = 0 ; i < NUM_MISCREGS; i++){ 108210037SARM gem5 Developers if (miscRegInfo[i][MISCREG_BANKED]) 108310037SARM gem5 Developers reg = i; 108410037SARM gem5 Developers if (miscRegInfo[i][MISCREG_BANKED_CHILD]) 108510037SARM gem5 Developers unflattenResultMiscReg[i] = reg; 108610037SARM gem5 Developers else 108710037SARM gem5 Developers unflattenResultMiscReg[i] = i; 108810037SARM gem5 Developers // if this assert fails, no parent was found, and something is broken 108910037SARM gem5 Developers assert(unflattenResultMiscReg[i] > -1); 109010037SARM gem5 Developers } 109110037SARM gem5 Developers} 109210037SARM gem5 Developers 109310037SARM gem5 Developersint 109410037SARM gem5 DevelopersunflattenMiscReg(int reg) 109510037SARM gem5 Developers{ 109610037SARM gem5 Developers return unflattenResultMiscReg[reg]; 109710037SARM gem5 Developers} 109810037SARM gem5 Developers 109910037SARM gem5 Developersbool 110010037SARM gem5 DeveloperscanReadAArch64SysReg(MiscRegIndex reg, SCR scr, CPSR cpsr, ThreadContext *tc) 110110037SARM gem5 Developers{ 110210037SARM gem5 Developers // Check for SP_EL0 access while SPSEL == 0 110310037SARM gem5 Developers if ((reg == MISCREG_SP_EL0) && (tc->readMiscReg(MISCREG_SPSEL) == 0)) 110410037SARM gem5 Developers return false; 110510037SARM gem5 Developers 110610037SARM gem5 Developers // Check for RVBAR access 110710037SARM gem5 Developers if (reg == MISCREG_RVBAR_EL1) { 110810037SARM gem5 Developers ExceptionLevel highest_el = ArmSystem::highestEL(tc); 110910037SARM gem5 Developers if (highest_el == EL2 || highest_el == EL3) 111010037SARM gem5 Developers return false; 111110037SARM gem5 Developers } 111210037SARM gem5 Developers if (reg == MISCREG_RVBAR_EL2) { 111310037SARM gem5 Developers ExceptionLevel highest_el = ArmSystem::highestEL(tc); 111410037SARM gem5 Developers if (highest_el == EL3) 111510037SARM gem5 Developers return false; 111610037SARM gem5 Developers } 111710037SARM gem5 Developers 111810037SARM gem5 Developers bool secure = ArmSystem::haveSecurity(tc) && !scr.ns; 111910037SARM gem5 Developers 112010037SARM gem5 Developers switch (opModeToEL((OperatingMode) (uint8_t) cpsr.mode)) { 112110037SARM gem5 Developers case EL0: 112210037SARM gem5 Developers return secure ? miscRegInfo[reg][MISCREG_USR_S_RD] : 112310037SARM gem5 Developers miscRegInfo[reg][MISCREG_USR_NS_RD]; 112410037SARM gem5 Developers case EL1: 112510037SARM gem5 Developers return secure ? miscRegInfo[reg][MISCREG_PRI_S_RD] : 112610037SARM gem5 Developers miscRegInfo[reg][MISCREG_PRI_NS_RD]; 112711574SCurtis.Dunham@arm.com case EL2: 112811574SCurtis.Dunham@arm.com return miscRegInfo[reg][MISCREG_HYP_RD]; 112910037SARM gem5 Developers case EL3: 113010037SARM gem5 Developers return secure ? miscRegInfo[reg][MISCREG_MON_NS0_RD] : 113110037SARM gem5 Developers miscRegInfo[reg][MISCREG_MON_NS1_RD]; 113210037SARM gem5 Developers default: 113310037SARM gem5 Developers panic("Invalid exception level"); 113410037SARM gem5 Developers } 113510037SARM gem5 Developers} 113610037SARM gem5 Developers 113710037SARM gem5 Developersbool 113810037SARM gem5 DeveloperscanWriteAArch64SysReg(MiscRegIndex reg, SCR scr, CPSR cpsr, ThreadContext *tc) 113910037SARM gem5 Developers{ 114010037SARM gem5 Developers // Check for SP_EL0 access while SPSEL == 0 114110037SARM gem5 Developers if ((reg == MISCREG_SP_EL0) && (tc->readMiscReg(MISCREG_SPSEL) == 0)) 114210037SARM gem5 Developers return false; 114310037SARM gem5 Developers ExceptionLevel el = opModeToEL((OperatingMode) (uint8_t) cpsr.mode); 114410037SARM gem5 Developers if (reg == MISCREG_DAIF) { 114510037SARM gem5 Developers SCTLR sctlr = tc->readMiscReg(MISCREG_SCTLR_EL1); 114610037SARM gem5 Developers if (el == EL0 && !sctlr.uma) 114710037SARM gem5 Developers return false; 114810037SARM gem5 Developers } 114910828SGiacomo.Gabrielli@arm.com if (FullSystem && reg == MISCREG_DC_ZVA_Xt) { 115010828SGiacomo.Gabrielli@arm.com // In syscall-emulation mode, this test is skipped and DCZVA is always 115110828SGiacomo.Gabrielli@arm.com // allowed at EL0 115210037SARM gem5 Developers SCTLR sctlr = tc->readMiscReg(MISCREG_SCTLR_EL1); 115310037SARM gem5 Developers if (el == EL0 && !sctlr.dze) 115410037SARM gem5 Developers return false; 115510037SARM gem5 Developers } 115612502Snikos.nikoleris@arm.com if (reg == MISCREG_DC_CVAC_Xt || reg == MISCREG_DC_CIVAC_Xt) { 115710037SARM gem5 Developers SCTLR sctlr = tc->readMiscReg(MISCREG_SCTLR_EL1); 115810037SARM gem5 Developers if (el == EL0 && !sctlr.uci) 115910037SARM gem5 Developers return false; 116010037SARM gem5 Developers } 116110037SARM gem5 Developers 116210037SARM gem5 Developers bool secure = ArmSystem::haveSecurity(tc) && !scr.ns; 116310037SARM gem5 Developers 116410037SARM gem5 Developers switch (el) { 116510037SARM gem5 Developers case EL0: 116610037SARM gem5 Developers return secure ? miscRegInfo[reg][MISCREG_USR_S_WR] : 116710037SARM gem5 Developers miscRegInfo[reg][MISCREG_USR_NS_WR]; 116810037SARM gem5 Developers case EL1: 116910037SARM gem5 Developers return secure ? miscRegInfo[reg][MISCREG_PRI_S_WR] : 117010037SARM gem5 Developers miscRegInfo[reg][MISCREG_PRI_NS_WR]; 117111574SCurtis.Dunham@arm.com case EL2: 117211574SCurtis.Dunham@arm.com return miscRegInfo[reg][MISCREG_HYP_WR]; 117310037SARM gem5 Developers case EL3: 117410037SARM gem5 Developers return secure ? miscRegInfo[reg][MISCREG_MON_NS0_WR] : 117510037SARM gem5 Developers miscRegInfo[reg][MISCREG_MON_NS1_WR]; 117610037SARM gem5 Developers default: 117710037SARM gem5 Developers panic("Invalid exception level"); 117810037SARM gem5 Developers } 117910037SARM gem5 Developers} 118010037SARM gem5 Developers 118110037SARM gem5 DevelopersMiscRegIndex 118210037SARM gem5 DevelopersdecodeAArch64SysReg(unsigned op0, unsigned op1, 118310037SARM gem5 Developers unsigned crn, unsigned crm, 118410037SARM gem5 Developers unsigned op2) 118510037SARM gem5 Developers{ 118610037SARM gem5 Developers switch (op0) { 118710037SARM gem5 Developers case 1: 118810037SARM gem5 Developers switch (crn) { 118910037SARM gem5 Developers case 7: 119010037SARM gem5 Developers switch (op1) { 119110037SARM gem5 Developers case 0: 119210037SARM gem5 Developers switch (crm) { 119310037SARM gem5 Developers case 1: 119410037SARM gem5 Developers switch (op2) { 119510037SARM gem5 Developers case 0: 119610037SARM gem5 Developers return MISCREG_IC_IALLUIS; 119710037SARM gem5 Developers } 119810037SARM gem5 Developers break; 119910037SARM gem5 Developers case 5: 120010037SARM gem5 Developers switch (op2) { 120110037SARM gem5 Developers case 0: 120210037SARM gem5 Developers return MISCREG_IC_IALLU; 120310037SARM gem5 Developers } 120410037SARM gem5 Developers break; 120510037SARM gem5 Developers case 6: 120610037SARM gem5 Developers switch (op2) { 120710037SARM gem5 Developers case 1: 120810037SARM gem5 Developers return MISCREG_DC_IVAC_Xt; 120910037SARM gem5 Developers case 2: 121010037SARM gem5 Developers return MISCREG_DC_ISW_Xt; 121110037SARM gem5 Developers } 121210037SARM gem5 Developers break; 121310037SARM gem5 Developers case 8: 121410037SARM gem5 Developers switch (op2) { 121510037SARM gem5 Developers case 0: 121610037SARM gem5 Developers return MISCREG_AT_S1E1R_Xt; 121710037SARM gem5 Developers case 1: 121810037SARM gem5 Developers return MISCREG_AT_S1E1W_Xt; 121910037SARM gem5 Developers case 2: 122010037SARM gem5 Developers return MISCREG_AT_S1E0R_Xt; 122110037SARM gem5 Developers case 3: 122210037SARM gem5 Developers return MISCREG_AT_S1E0W_Xt; 122310037SARM gem5 Developers } 122410037SARM gem5 Developers break; 122510037SARM gem5 Developers case 10: 122610037SARM gem5 Developers switch (op2) { 122710037SARM gem5 Developers case 2: 122810037SARM gem5 Developers return MISCREG_DC_CSW_Xt; 122910037SARM gem5 Developers } 123010037SARM gem5 Developers break; 123110037SARM gem5 Developers case 14: 123210037SARM gem5 Developers switch (op2) { 123310037SARM gem5 Developers case 2: 123410037SARM gem5 Developers return MISCREG_DC_CISW_Xt; 123510037SARM gem5 Developers } 123610037SARM gem5 Developers break; 123710037SARM gem5 Developers } 123810037SARM gem5 Developers break; 123910037SARM gem5 Developers case 3: 124010037SARM gem5 Developers switch (crm) { 124110037SARM gem5 Developers case 4: 124210037SARM gem5 Developers switch (op2) { 124310037SARM gem5 Developers case 1: 124410037SARM gem5 Developers return MISCREG_DC_ZVA_Xt; 124510037SARM gem5 Developers } 124610037SARM gem5 Developers break; 124710037SARM gem5 Developers case 5: 124810037SARM gem5 Developers switch (op2) { 124910037SARM gem5 Developers case 1: 125010037SARM gem5 Developers return MISCREG_IC_IVAU_Xt; 125110037SARM gem5 Developers } 125210037SARM gem5 Developers break; 125310037SARM gem5 Developers case 10: 125410037SARM gem5 Developers switch (op2) { 125510037SARM gem5 Developers case 1: 125610037SARM gem5 Developers return MISCREG_DC_CVAC_Xt; 125710037SARM gem5 Developers } 125810037SARM gem5 Developers break; 125910037SARM gem5 Developers case 11: 126010037SARM gem5 Developers switch (op2) { 126110037SARM gem5 Developers case 1: 126210037SARM gem5 Developers return MISCREG_DC_CVAU_Xt; 126310037SARM gem5 Developers } 126410037SARM gem5 Developers break; 126510037SARM gem5 Developers case 14: 126610037SARM gem5 Developers switch (op2) { 126710037SARM gem5 Developers case 1: 126810037SARM gem5 Developers return MISCREG_DC_CIVAC_Xt; 126910037SARM gem5 Developers } 127010037SARM gem5 Developers break; 127110037SARM gem5 Developers } 127210037SARM gem5 Developers break; 127310037SARM gem5 Developers case 4: 127410037SARM gem5 Developers switch (crm) { 127510037SARM gem5 Developers case 8: 127610037SARM gem5 Developers switch (op2) { 127710037SARM gem5 Developers case 0: 127810037SARM gem5 Developers return MISCREG_AT_S1E2R_Xt; 127910037SARM gem5 Developers case 1: 128010037SARM gem5 Developers return MISCREG_AT_S1E2W_Xt; 128110037SARM gem5 Developers case 4: 128210037SARM gem5 Developers return MISCREG_AT_S12E1R_Xt; 128310037SARM gem5 Developers case 5: 128410037SARM gem5 Developers return MISCREG_AT_S12E1W_Xt; 128510037SARM gem5 Developers case 6: 128610037SARM gem5 Developers return MISCREG_AT_S12E0R_Xt; 128710037SARM gem5 Developers case 7: 128810037SARM gem5 Developers return MISCREG_AT_S12E0W_Xt; 128910037SARM gem5 Developers } 129010037SARM gem5 Developers break; 129110037SARM gem5 Developers } 129210037SARM gem5 Developers break; 129310037SARM gem5 Developers case 6: 129410037SARM gem5 Developers switch (crm) { 129510037SARM gem5 Developers case 8: 129610037SARM gem5 Developers switch (op2) { 129710037SARM gem5 Developers case 0: 129810037SARM gem5 Developers return MISCREG_AT_S1E3R_Xt; 129910037SARM gem5 Developers case 1: 130010037SARM gem5 Developers return MISCREG_AT_S1E3W_Xt; 130110037SARM gem5 Developers } 130210037SARM gem5 Developers break; 130310037SARM gem5 Developers } 130410037SARM gem5 Developers break; 130510037SARM gem5 Developers } 130610037SARM gem5 Developers break; 130710037SARM gem5 Developers case 8: 130810037SARM gem5 Developers switch (op1) { 130910037SARM gem5 Developers case 0: 131010037SARM gem5 Developers switch (crm) { 131110037SARM gem5 Developers case 3: 131210037SARM gem5 Developers switch (op2) { 131310037SARM gem5 Developers case 0: 131410037SARM gem5 Developers return MISCREG_TLBI_VMALLE1IS; 131510037SARM gem5 Developers case 1: 131610037SARM gem5 Developers return MISCREG_TLBI_VAE1IS_Xt; 131710037SARM gem5 Developers case 2: 131810037SARM gem5 Developers return MISCREG_TLBI_ASIDE1IS_Xt; 131910037SARM gem5 Developers case 3: 132010037SARM gem5 Developers return MISCREG_TLBI_VAAE1IS_Xt; 132110037SARM gem5 Developers case 5: 132210037SARM gem5 Developers return MISCREG_TLBI_VALE1IS_Xt; 132310037SARM gem5 Developers case 7: 132410037SARM gem5 Developers return MISCREG_TLBI_VAALE1IS_Xt; 132510037SARM gem5 Developers } 132610037SARM gem5 Developers break; 132710037SARM gem5 Developers case 7: 132810037SARM gem5 Developers switch (op2) { 132910037SARM gem5 Developers case 0: 133010037SARM gem5 Developers return MISCREG_TLBI_VMALLE1; 133110037SARM gem5 Developers case 1: 133210037SARM gem5 Developers return MISCREG_TLBI_VAE1_Xt; 133310037SARM gem5 Developers case 2: 133410037SARM gem5 Developers return MISCREG_TLBI_ASIDE1_Xt; 133510037SARM gem5 Developers case 3: 133610037SARM gem5 Developers return MISCREG_TLBI_VAAE1_Xt; 133710037SARM gem5 Developers case 5: 133810037SARM gem5 Developers return MISCREG_TLBI_VALE1_Xt; 133910037SARM gem5 Developers case 7: 134010037SARM gem5 Developers return MISCREG_TLBI_VAALE1_Xt; 134110037SARM gem5 Developers } 134210037SARM gem5 Developers break; 134310037SARM gem5 Developers } 134410037SARM gem5 Developers break; 134510037SARM gem5 Developers case 4: 134610037SARM gem5 Developers switch (crm) { 134710037SARM gem5 Developers case 0: 134810037SARM gem5 Developers switch (op2) { 134910037SARM gem5 Developers case 1: 135010037SARM gem5 Developers return MISCREG_TLBI_IPAS2E1IS_Xt; 135110037SARM gem5 Developers case 5: 135210037SARM gem5 Developers return MISCREG_TLBI_IPAS2LE1IS_Xt; 135310037SARM gem5 Developers } 135410037SARM gem5 Developers break; 135510037SARM gem5 Developers case 3: 135610037SARM gem5 Developers switch (op2) { 135710037SARM gem5 Developers case 0: 135810037SARM gem5 Developers return MISCREG_TLBI_ALLE2IS; 135910037SARM gem5 Developers case 1: 136010037SARM gem5 Developers return MISCREG_TLBI_VAE2IS_Xt; 136110037SARM gem5 Developers case 4: 136210037SARM gem5 Developers return MISCREG_TLBI_ALLE1IS; 136310037SARM gem5 Developers case 5: 136410037SARM gem5 Developers return MISCREG_TLBI_VALE2IS_Xt; 136510037SARM gem5 Developers case 6: 136610037SARM gem5 Developers return MISCREG_TLBI_VMALLS12E1IS; 136710037SARM gem5 Developers } 136810037SARM gem5 Developers break; 136910037SARM gem5 Developers case 4: 137010037SARM gem5 Developers switch (op2) { 137110037SARM gem5 Developers case 1: 137210037SARM gem5 Developers return MISCREG_TLBI_IPAS2E1_Xt; 137310037SARM gem5 Developers case 5: 137410037SARM gem5 Developers return MISCREG_TLBI_IPAS2LE1_Xt; 137510037SARM gem5 Developers } 137610037SARM gem5 Developers break; 137710037SARM gem5 Developers case 7: 137810037SARM gem5 Developers switch (op2) { 137910037SARM gem5 Developers case 0: 138010037SARM gem5 Developers return MISCREG_TLBI_ALLE2; 138110037SARM gem5 Developers case 1: 138210037SARM gem5 Developers return MISCREG_TLBI_VAE2_Xt; 138310037SARM gem5 Developers case 4: 138410037SARM gem5 Developers return MISCREG_TLBI_ALLE1; 138510037SARM gem5 Developers case 5: 138610037SARM gem5 Developers return MISCREG_TLBI_VALE2_Xt; 138710037SARM gem5 Developers case 6: 138810037SARM gem5 Developers return MISCREG_TLBI_VMALLS12E1; 138910037SARM gem5 Developers } 139010037SARM gem5 Developers break; 139110037SARM gem5 Developers } 139210037SARM gem5 Developers break; 139310037SARM gem5 Developers case 6: 139410037SARM gem5 Developers switch (crm) { 139510037SARM gem5 Developers case 3: 139610037SARM gem5 Developers switch (op2) { 139710037SARM gem5 Developers case 0: 139810037SARM gem5 Developers return MISCREG_TLBI_ALLE3IS; 139910037SARM gem5 Developers case 1: 140010037SARM gem5 Developers return MISCREG_TLBI_VAE3IS_Xt; 140110037SARM gem5 Developers case 5: 140210037SARM gem5 Developers return MISCREG_TLBI_VALE3IS_Xt; 140310037SARM gem5 Developers } 140410037SARM gem5 Developers break; 140510037SARM gem5 Developers case 7: 140610037SARM gem5 Developers switch (op2) { 140710037SARM gem5 Developers case 0: 140810037SARM gem5 Developers return MISCREG_TLBI_ALLE3; 140910037SARM gem5 Developers case 1: 141010037SARM gem5 Developers return MISCREG_TLBI_VAE3_Xt; 141110037SARM gem5 Developers case 5: 141210037SARM gem5 Developers return MISCREG_TLBI_VALE3_Xt; 141310037SARM gem5 Developers } 141410037SARM gem5 Developers break; 141510037SARM gem5 Developers } 141610037SARM gem5 Developers break; 141710037SARM gem5 Developers } 141810037SARM gem5 Developers break; 141913366Sgiacomo.travaglini@arm.com case 11: 142013366Sgiacomo.travaglini@arm.com case 15: 142113366Sgiacomo.travaglini@arm.com // SYS Instruction with CRn = { 11, 15 } 142213366Sgiacomo.travaglini@arm.com // (Trappable by HCR_EL2.TIDCP) 142313366Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 142410037SARM gem5 Developers } 142510037SARM gem5 Developers break; 142610037SARM gem5 Developers case 2: 142710037SARM gem5 Developers switch (crn) { 142810037SARM gem5 Developers case 0: 142910037SARM gem5 Developers switch (op1) { 143010037SARM gem5 Developers case 0: 143110037SARM gem5 Developers switch (crm) { 143210037SARM gem5 Developers case 0: 143310037SARM gem5 Developers switch (op2) { 143410037SARM gem5 Developers case 2: 143510037SARM gem5 Developers return MISCREG_OSDTRRX_EL1; 143610037SARM gem5 Developers case 4: 143710037SARM gem5 Developers return MISCREG_DBGBVR0_EL1; 143810037SARM gem5 Developers case 5: 143910037SARM gem5 Developers return MISCREG_DBGBCR0_EL1; 144010037SARM gem5 Developers case 6: 144110037SARM gem5 Developers return MISCREG_DBGWVR0_EL1; 144210037SARM gem5 Developers case 7: 144310037SARM gem5 Developers return MISCREG_DBGWCR0_EL1; 144410037SARM gem5 Developers } 144510037SARM gem5 Developers break; 144610037SARM gem5 Developers case 1: 144710037SARM gem5 Developers switch (op2) { 144810037SARM gem5 Developers case 4: 144910037SARM gem5 Developers return MISCREG_DBGBVR1_EL1; 145010037SARM gem5 Developers case 5: 145110037SARM gem5 Developers return MISCREG_DBGBCR1_EL1; 145210037SARM gem5 Developers case 6: 145310037SARM gem5 Developers return MISCREG_DBGWVR1_EL1; 145410037SARM gem5 Developers case 7: 145510037SARM gem5 Developers return MISCREG_DBGWCR1_EL1; 145610037SARM gem5 Developers } 145710037SARM gem5 Developers break; 145810037SARM gem5 Developers case 2: 145910037SARM gem5 Developers switch (op2) { 146010037SARM gem5 Developers case 0: 146110037SARM gem5 Developers return MISCREG_MDCCINT_EL1; 146210037SARM gem5 Developers case 2: 146310037SARM gem5 Developers return MISCREG_MDSCR_EL1; 146410037SARM gem5 Developers case 4: 146510037SARM gem5 Developers return MISCREG_DBGBVR2_EL1; 146610037SARM gem5 Developers case 5: 146710037SARM gem5 Developers return MISCREG_DBGBCR2_EL1; 146810037SARM gem5 Developers case 6: 146910037SARM gem5 Developers return MISCREG_DBGWVR2_EL1; 147010037SARM gem5 Developers case 7: 147110037SARM gem5 Developers return MISCREG_DBGWCR2_EL1; 147210037SARM gem5 Developers } 147310037SARM gem5 Developers break; 147410037SARM gem5 Developers case 3: 147510037SARM gem5 Developers switch (op2) { 147610037SARM gem5 Developers case 2: 147710037SARM gem5 Developers return MISCREG_OSDTRTX_EL1; 147810037SARM gem5 Developers case 4: 147910037SARM gem5 Developers return MISCREG_DBGBVR3_EL1; 148010037SARM gem5 Developers case 5: 148110037SARM gem5 Developers return MISCREG_DBGBCR3_EL1; 148210037SARM gem5 Developers case 6: 148310037SARM gem5 Developers return MISCREG_DBGWVR3_EL1; 148410037SARM gem5 Developers case 7: 148510037SARM gem5 Developers return MISCREG_DBGWCR3_EL1; 148610037SARM gem5 Developers } 148710037SARM gem5 Developers break; 148810037SARM gem5 Developers case 4: 148910037SARM gem5 Developers switch (op2) { 149010037SARM gem5 Developers case 4: 149110037SARM gem5 Developers return MISCREG_DBGBVR4_EL1; 149210037SARM gem5 Developers case 5: 149310037SARM gem5 Developers return MISCREG_DBGBCR4_EL1; 149410037SARM gem5 Developers } 149510037SARM gem5 Developers break; 149610037SARM gem5 Developers case 5: 149710037SARM gem5 Developers switch (op2) { 149810037SARM gem5 Developers case 4: 149910037SARM gem5 Developers return MISCREG_DBGBVR5_EL1; 150010037SARM gem5 Developers case 5: 150110037SARM gem5 Developers return MISCREG_DBGBCR5_EL1; 150210037SARM gem5 Developers } 150310037SARM gem5 Developers break; 150410037SARM gem5 Developers case 6: 150510037SARM gem5 Developers switch (op2) { 150610037SARM gem5 Developers case 2: 150710037SARM gem5 Developers return MISCREG_OSECCR_EL1; 150810037SARM gem5 Developers } 150910037SARM gem5 Developers break; 151010037SARM gem5 Developers } 151110037SARM gem5 Developers break; 151210037SARM gem5 Developers case 2: 151310037SARM gem5 Developers switch (crm) { 151410037SARM gem5 Developers case 0: 151510037SARM gem5 Developers switch (op2) { 151610037SARM gem5 Developers case 0: 151710037SARM gem5 Developers return MISCREG_TEECR32_EL1; 151810037SARM gem5 Developers } 151910037SARM gem5 Developers break; 152010037SARM gem5 Developers } 152110037SARM gem5 Developers break; 152210037SARM gem5 Developers case 3: 152310037SARM gem5 Developers switch (crm) { 152410037SARM gem5 Developers case 1: 152510037SARM gem5 Developers switch (op2) { 152610037SARM gem5 Developers case 0: 152710037SARM gem5 Developers return MISCREG_MDCCSR_EL0; 152810037SARM gem5 Developers } 152910037SARM gem5 Developers break; 153010037SARM gem5 Developers case 4: 153110037SARM gem5 Developers switch (op2) { 153210037SARM gem5 Developers case 0: 153310037SARM gem5 Developers return MISCREG_MDDTR_EL0; 153410037SARM gem5 Developers } 153510037SARM gem5 Developers break; 153610037SARM gem5 Developers case 5: 153710037SARM gem5 Developers switch (op2) { 153810037SARM gem5 Developers case 0: 153910037SARM gem5 Developers return MISCREG_MDDTRRX_EL0; 154010037SARM gem5 Developers } 154110037SARM gem5 Developers break; 154210037SARM gem5 Developers } 154310037SARM gem5 Developers break; 154410037SARM gem5 Developers case 4: 154510037SARM gem5 Developers switch (crm) { 154610037SARM gem5 Developers case 7: 154710037SARM gem5 Developers switch (op2) { 154810037SARM gem5 Developers case 0: 154910037SARM gem5 Developers return MISCREG_DBGVCR32_EL2; 155010037SARM gem5 Developers } 155110037SARM gem5 Developers break; 155210037SARM gem5 Developers } 155310037SARM gem5 Developers break; 155410037SARM gem5 Developers } 155510037SARM gem5 Developers break; 155610037SARM gem5 Developers case 1: 155710037SARM gem5 Developers switch (op1) { 155810037SARM gem5 Developers case 0: 155910037SARM gem5 Developers switch (crm) { 156010037SARM gem5 Developers case 0: 156110037SARM gem5 Developers switch (op2) { 156210037SARM gem5 Developers case 0: 156310037SARM gem5 Developers return MISCREG_MDRAR_EL1; 156410037SARM gem5 Developers case 4: 156510037SARM gem5 Developers return MISCREG_OSLAR_EL1; 156610037SARM gem5 Developers } 156710037SARM gem5 Developers break; 156810037SARM gem5 Developers case 1: 156910037SARM gem5 Developers switch (op2) { 157010037SARM gem5 Developers case 4: 157110037SARM gem5 Developers return MISCREG_OSLSR_EL1; 157210037SARM gem5 Developers } 157310037SARM gem5 Developers break; 157410037SARM gem5 Developers case 3: 157510037SARM gem5 Developers switch (op2) { 157610037SARM gem5 Developers case 4: 157710037SARM gem5 Developers return MISCREG_OSDLR_EL1; 157810037SARM gem5 Developers } 157910037SARM gem5 Developers break; 158010037SARM gem5 Developers case 4: 158110037SARM gem5 Developers switch (op2) { 158210037SARM gem5 Developers case 4: 158310037SARM gem5 Developers return MISCREG_DBGPRCR_EL1; 158410037SARM gem5 Developers } 158510037SARM gem5 Developers break; 158610037SARM gem5 Developers } 158710037SARM gem5 Developers break; 158810037SARM gem5 Developers case 2: 158910037SARM gem5 Developers switch (crm) { 159010037SARM gem5 Developers case 0: 159110037SARM gem5 Developers switch (op2) { 159210037SARM gem5 Developers case 0: 159310037SARM gem5 Developers return MISCREG_TEEHBR32_EL1; 159410037SARM gem5 Developers } 159510037SARM gem5 Developers break; 159610037SARM gem5 Developers } 159710037SARM gem5 Developers break; 159810037SARM gem5 Developers } 159910037SARM gem5 Developers break; 160010037SARM gem5 Developers case 7: 160110037SARM gem5 Developers switch (op1) { 160210037SARM gem5 Developers case 0: 160310037SARM gem5 Developers switch (crm) { 160410037SARM gem5 Developers case 8: 160510037SARM gem5 Developers switch (op2) { 160610037SARM gem5 Developers case 6: 160710037SARM gem5 Developers return MISCREG_DBGCLAIMSET_EL1; 160810037SARM gem5 Developers } 160910037SARM gem5 Developers break; 161010037SARM gem5 Developers case 9: 161110037SARM gem5 Developers switch (op2) { 161210037SARM gem5 Developers case 6: 161310037SARM gem5 Developers return MISCREG_DBGCLAIMCLR_EL1; 161410037SARM gem5 Developers } 161510037SARM gem5 Developers break; 161610037SARM gem5 Developers case 14: 161710037SARM gem5 Developers switch (op2) { 161810037SARM gem5 Developers case 6: 161910037SARM gem5 Developers return MISCREG_DBGAUTHSTATUS_EL1; 162010037SARM gem5 Developers } 162110037SARM gem5 Developers break; 162210037SARM gem5 Developers } 162310037SARM gem5 Developers break; 162410037SARM gem5 Developers } 162510037SARM gem5 Developers break; 162610037SARM gem5 Developers } 162710037SARM gem5 Developers break; 162810037SARM gem5 Developers case 3: 162910037SARM gem5 Developers switch (crn) { 163010037SARM gem5 Developers case 0: 163110037SARM gem5 Developers switch (op1) { 163210037SARM gem5 Developers case 0: 163310037SARM gem5 Developers switch (crm) { 163410037SARM gem5 Developers case 0: 163510037SARM gem5 Developers switch (op2) { 163610037SARM gem5 Developers case 0: 163710037SARM gem5 Developers return MISCREG_MIDR_EL1; 163810037SARM gem5 Developers case 5: 163910037SARM gem5 Developers return MISCREG_MPIDR_EL1; 164010037SARM gem5 Developers case 6: 164110037SARM gem5 Developers return MISCREG_REVIDR_EL1; 164210037SARM gem5 Developers } 164310037SARM gem5 Developers break; 164410037SARM gem5 Developers case 1: 164510037SARM gem5 Developers switch (op2) { 164610037SARM gem5 Developers case 0: 164710037SARM gem5 Developers return MISCREG_ID_PFR0_EL1; 164810037SARM gem5 Developers case 1: 164910037SARM gem5 Developers return MISCREG_ID_PFR1_EL1; 165010037SARM gem5 Developers case 2: 165110037SARM gem5 Developers return MISCREG_ID_DFR0_EL1; 165210037SARM gem5 Developers case 3: 165310037SARM gem5 Developers return MISCREG_ID_AFR0_EL1; 165410037SARM gem5 Developers case 4: 165510037SARM gem5 Developers return MISCREG_ID_MMFR0_EL1; 165610037SARM gem5 Developers case 5: 165710037SARM gem5 Developers return MISCREG_ID_MMFR1_EL1; 165810037SARM gem5 Developers case 6: 165910037SARM gem5 Developers return MISCREG_ID_MMFR2_EL1; 166010037SARM gem5 Developers case 7: 166110037SARM gem5 Developers return MISCREG_ID_MMFR3_EL1; 166210037SARM gem5 Developers } 166310037SARM gem5 Developers break; 166410037SARM gem5 Developers case 2: 166510037SARM gem5 Developers switch (op2) { 166610037SARM gem5 Developers case 0: 166710037SARM gem5 Developers return MISCREG_ID_ISAR0_EL1; 166810037SARM gem5 Developers case 1: 166910037SARM gem5 Developers return MISCREG_ID_ISAR1_EL1; 167010037SARM gem5 Developers case 2: 167110037SARM gem5 Developers return MISCREG_ID_ISAR2_EL1; 167210037SARM gem5 Developers case 3: 167310037SARM gem5 Developers return MISCREG_ID_ISAR3_EL1; 167410037SARM gem5 Developers case 4: 167510037SARM gem5 Developers return MISCREG_ID_ISAR4_EL1; 167610037SARM gem5 Developers case 5: 167710037SARM gem5 Developers return MISCREG_ID_ISAR5_EL1; 167810037SARM gem5 Developers } 167910037SARM gem5 Developers break; 168010037SARM gem5 Developers case 3: 168110037SARM gem5 Developers switch (op2) { 168210037SARM gem5 Developers case 0: 168310037SARM gem5 Developers return MISCREG_MVFR0_EL1; 168410037SARM gem5 Developers case 1: 168510037SARM gem5 Developers return MISCREG_MVFR1_EL1; 168610037SARM gem5 Developers case 2: 168710037SARM gem5 Developers return MISCREG_MVFR2_EL1; 168810037SARM gem5 Developers case 3 ... 7: 168910037SARM gem5 Developers return MISCREG_RAZ; 169010037SARM gem5 Developers } 169110037SARM gem5 Developers break; 169210037SARM gem5 Developers case 4: 169310037SARM gem5 Developers switch (op2) { 169410037SARM gem5 Developers case 0: 169510037SARM gem5 Developers return MISCREG_ID_AA64PFR0_EL1; 169610037SARM gem5 Developers case 1: 169710037SARM gem5 Developers return MISCREG_ID_AA64PFR1_EL1; 169813759Sgiacomo.gabrielli@arm.com case 2 ... 3: 169913759Sgiacomo.gabrielli@arm.com return MISCREG_RAZ; 170013759Sgiacomo.gabrielli@arm.com case 4: 170113759Sgiacomo.gabrielli@arm.com return MISCREG_ID_AA64ZFR0_EL1; 170213759Sgiacomo.gabrielli@arm.com case 5 ... 7: 170310037SARM gem5 Developers return MISCREG_RAZ; 170410037SARM gem5 Developers } 170510037SARM gem5 Developers break; 170610037SARM gem5 Developers case 5: 170710037SARM gem5 Developers switch (op2) { 170810037SARM gem5 Developers case 0: 170910037SARM gem5 Developers return MISCREG_ID_AA64DFR0_EL1; 171010037SARM gem5 Developers case 1: 171110037SARM gem5 Developers return MISCREG_ID_AA64DFR1_EL1; 171210037SARM gem5 Developers case 4: 171310037SARM gem5 Developers return MISCREG_ID_AA64AFR0_EL1; 171410037SARM gem5 Developers case 5: 171510037SARM gem5 Developers return MISCREG_ID_AA64AFR1_EL1; 171610037SARM gem5 Developers case 2: 171710037SARM gem5 Developers case 3: 171810037SARM gem5 Developers case 6: 171910037SARM gem5 Developers case 7: 172010037SARM gem5 Developers return MISCREG_RAZ; 172110037SARM gem5 Developers } 172210037SARM gem5 Developers break; 172310037SARM gem5 Developers case 6: 172410037SARM gem5 Developers switch (op2) { 172510037SARM gem5 Developers case 0: 172610037SARM gem5 Developers return MISCREG_ID_AA64ISAR0_EL1; 172710037SARM gem5 Developers case 1: 172810037SARM gem5 Developers return MISCREG_ID_AA64ISAR1_EL1; 172910037SARM gem5 Developers case 2 ... 7: 173010037SARM gem5 Developers return MISCREG_RAZ; 173110037SARM gem5 Developers } 173210037SARM gem5 Developers break; 173310037SARM gem5 Developers case 7: 173410037SARM gem5 Developers switch (op2) { 173510037SARM gem5 Developers case 0: 173610037SARM gem5 Developers return MISCREG_ID_AA64MMFR0_EL1; 173710037SARM gem5 Developers case 1: 173810037SARM gem5 Developers return MISCREG_ID_AA64MMFR1_EL1; 173913116Sgiacomo.travaglini@arm.com case 2: 174013116Sgiacomo.travaglini@arm.com return MISCREG_ID_AA64MMFR2_EL1; 174113116Sgiacomo.travaglini@arm.com case 3 ... 7: 174210037SARM gem5 Developers return MISCREG_RAZ; 174310037SARM gem5 Developers } 174410037SARM gem5 Developers break; 174510037SARM gem5 Developers } 174610037SARM gem5 Developers break; 174710037SARM gem5 Developers case 1: 174810037SARM gem5 Developers switch (crm) { 174910037SARM gem5 Developers case 0: 175010037SARM gem5 Developers switch (op2) { 175110037SARM gem5 Developers case 0: 175210037SARM gem5 Developers return MISCREG_CCSIDR_EL1; 175310037SARM gem5 Developers case 1: 175410037SARM gem5 Developers return MISCREG_CLIDR_EL1; 175510037SARM gem5 Developers case 7: 175610037SARM gem5 Developers return MISCREG_AIDR_EL1; 175710037SARM gem5 Developers } 175810037SARM gem5 Developers break; 175910037SARM gem5 Developers } 176010037SARM gem5 Developers break; 176110037SARM gem5 Developers case 2: 176210037SARM gem5 Developers switch (crm) { 176310037SARM gem5 Developers case 0: 176410037SARM gem5 Developers switch (op2) { 176510037SARM gem5 Developers case 0: 176610037SARM gem5 Developers return MISCREG_CSSELR_EL1; 176710037SARM gem5 Developers } 176810037SARM gem5 Developers break; 176910037SARM gem5 Developers } 177010037SARM gem5 Developers break; 177110037SARM gem5 Developers case 3: 177210037SARM gem5 Developers switch (crm) { 177310037SARM gem5 Developers case 0: 177410037SARM gem5 Developers switch (op2) { 177510037SARM gem5 Developers case 1: 177610037SARM gem5 Developers return MISCREG_CTR_EL0; 177710037SARM gem5 Developers case 7: 177810037SARM gem5 Developers return MISCREG_DCZID_EL0; 177910037SARM gem5 Developers } 178010037SARM gem5 Developers break; 178110037SARM gem5 Developers } 178210037SARM gem5 Developers break; 178310037SARM gem5 Developers case 4: 178410037SARM gem5 Developers switch (crm) { 178510037SARM gem5 Developers case 0: 178610037SARM gem5 Developers switch (op2) { 178710037SARM gem5 Developers case 0: 178810037SARM gem5 Developers return MISCREG_VPIDR_EL2; 178910037SARM gem5 Developers case 5: 179010037SARM gem5 Developers return MISCREG_VMPIDR_EL2; 179110037SARM gem5 Developers } 179210037SARM gem5 Developers break; 179310037SARM gem5 Developers } 179410037SARM gem5 Developers break; 179510037SARM gem5 Developers } 179610037SARM gem5 Developers break; 179710037SARM gem5 Developers case 1: 179810037SARM gem5 Developers switch (op1) { 179910037SARM gem5 Developers case 0: 180010037SARM gem5 Developers switch (crm) { 180110037SARM gem5 Developers case 0: 180210037SARM gem5 Developers switch (op2) { 180310037SARM gem5 Developers case 0: 180410037SARM gem5 Developers return MISCREG_SCTLR_EL1; 180510037SARM gem5 Developers case 1: 180610037SARM gem5 Developers return MISCREG_ACTLR_EL1; 180710037SARM gem5 Developers case 2: 180810037SARM gem5 Developers return MISCREG_CPACR_EL1; 180910037SARM gem5 Developers } 181010037SARM gem5 Developers break; 181113759Sgiacomo.gabrielli@arm.com case 2: 181213759Sgiacomo.gabrielli@arm.com switch (op2) { 181313759Sgiacomo.gabrielli@arm.com case 0: 181413759Sgiacomo.gabrielli@arm.com return MISCREG_ZCR_EL1; 181513759Sgiacomo.gabrielli@arm.com } 181613759Sgiacomo.gabrielli@arm.com break; 181710037SARM gem5 Developers } 181810037SARM gem5 Developers break; 181910037SARM gem5 Developers case 4: 182010037SARM gem5 Developers switch (crm) { 182110037SARM gem5 Developers case 0: 182210037SARM gem5 Developers switch (op2) { 182310037SARM gem5 Developers case 0: 182410037SARM gem5 Developers return MISCREG_SCTLR_EL2; 182510037SARM gem5 Developers case 1: 182610037SARM gem5 Developers return MISCREG_ACTLR_EL2; 182710037SARM gem5 Developers } 182810037SARM gem5 Developers break; 182910037SARM gem5 Developers case 1: 183010037SARM gem5 Developers switch (op2) { 183110037SARM gem5 Developers case 0: 183210037SARM gem5 Developers return MISCREG_HCR_EL2; 183310037SARM gem5 Developers case 1: 183410037SARM gem5 Developers return MISCREG_MDCR_EL2; 183510037SARM gem5 Developers case 2: 183610037SARM gem5 Developers return MISCREG_CPTR_EL2; 183710037SARM gem5 Developers case 3: 183810037SARM gem5 Developers return MISCREG_HSTR_EL2; 183910037SARM gem5 Developers case 7: 184010037SARM gem5 Developers return MISCREG_HACR_EL2; 184110037SARM gem5 Developers } 184210037SARM gem5 Developers break; 184313759Sgiacomo.gabrielli@arm.com case 2: 184413759Sgiacomo.gabrielli@arm.com switch (op2) { 184513759Sgiacomo.gabrielli@arm.com case 0: 184613759Sgiacomo.gabrielli@arm.com return MISCREG_ZCR_EL2; 184713759Sgiacomo.gabrielli@arm.com } 184813759Sgiacomo.gabrielli@arm.com break; 184913759Sgiacomo.gabrielli@arm.com } 185013759Sgiacomo.gabrielli@arm.com break; 185113759Sgiacomo.gabrielli@arm.com case 5: 185213759Sgiacomo.gabrielli@arm.com switch (crm) { 185313759Sgiacomo.gabrielli@arm.com case 2: 185413759Sgiacomo.gabrielli@arm.com switch (op2) { 185513759Sgiacomo.gabrielli@arm.com case 0: 185613759Sgiacomo.gabrielli@arm.com return MISCREG_ZCR_EL12; 185713759Sgiacomo.gabrielli@arm.com } 185813759Sgiacomo.gabrielli@arm.com break; 185910037SARM gem5 Developers } 186010037SARM gem5 Developers break; 186110037SARM gem5 Developers case 6: 186210037SARM gem5 Developers switch (crm) { 186310037SARM gem5 Developers case 0: 186410037SARM gem5 Developers switch (op2) { 186510037SARM gem5 Developers case 0: 186610037SARM gem5 Developers return MISCREG_SCTLR_EL3; 186710037SARM gem5 Developers case 1: 186810037SARM gem5 Developers return MISCREG_ACTLR_EL3; 186910037SARM gem5 Developers } 187010037SARM gem5 Developers break; 187110037SARM gem5 Developers case 1: 187210037SARM gem5 Developers switch (op2) { 187310037SARM gem5 Developers case 0: 187410037SARM gem5 Developers return MISCREG_SCR_EL3; 187510037SARM gem5 Developers case 1: 187610037SARM gem5 Developers return MISCREG_SDER32_EL3; 187710037SARM gem5 Developers case 2: 187810037SARM gem5 Developers return MISCREG_CPTR_EL3; 187910037SARM gem5 Developers } 188010037SARM gem5 Developers break; 188113759Sgiacomo.gabrielli@arm.com case 2: 188213759Sgiacomo.gabrielli@arm.com switch (op2) { 188313759Sgiacomo.gabrielli@arm.com case 0: 188413759Sgiacomo.gabrielli@arm.com return MISCREG_ZCR_EL3; 188513759Sgiacomo.gabrielli@arm.com } 188613759Sgiacomo.gabrielli@arm.com break; 188710037SARM gem5 Developers case 3: 188810037SARM gem5 Developers switch (op2) { 188910037SARM gem5 Developers case 1: 189010037SARM gem5 Developers return MISCREG_MDCR_EL3; 189110037SARM gem5 Developers } 189210037SARM gem5 Developers break; 189310037SARM gem5 Developers } 189410037SARM gem5 Developers break; 189510037SARM gem5 Developers } 189610037SARM gem5 Developers break; 189710037SARM gem5 Developers case 2: 189810037SARM gem5 Developers switch (op1) { 189910037SARM gem5 Developers case 0: 190010037SARM gem5 Developers switch (crm) { 190110037SARM gem5 Developers case 0: 190210037SARM gem5 Developers switch (op2) { 190310037SARM gem5 Developers case 0: 190410037SARM gem5 Developers return MISCREG_TTBR0_EL1; 190510037SARM gem5 Developers case 1: 190610037SARM gem5 Developers return MISCREG_TTBR1_EL1; 190710037SARM gem5 Developers case 2: 190810037SARM gem5 Developers return MISCREG_TCR_EL1; 190910037SARM gem5 Developers } 191010037SARM gem5 Developers break; 191110037SARM gem5 Developers } 191210037SARM gem5 Developers break; 191310037SARM gem5 Developers case 4: 191410037SARM gem5 Developers switch (crm) { 191510037SARM gem5 Developers case 0: 191610037SARM gem5 Developers switch (op2) { 191710037SARM gem5 Developers case 0: 191810037SARM gem5 Developers return MISCREG_TTBR0_EL2; 191912675Sgiacomo.travaglini@arm.com case 1: 192012675Sgiacomo.travaglini@arm.com return MISCREG_TTBR1_EL2; 192110037SARM gem5 Developers case 2: 192210037SARM gem5 Developers return MISCREG_TCR_EL2; 192310037SARM gem5 Developers } 192410037SARM gem5 Developers break; 192510037SARM gem5 Developers case 1: 192610037SARM gem5 Developers switch (op2) { 192710037SARM gem5 Developers case 0: 192810037SARM gem5 Developers return MISCREG_VTTBR_EL2; 192910037SARM gem5 Developers case 2: 193010037SARM gem5 Developers return MISCREG_VTCR_EL2; 193110037SARM gem5 Developers } 193210037SARM gem5 Developers break; 193310037SARM gem5 Developers } 193410037SARM gem5 Developers break; 193510037SARM gem5 Developers case 6: 193610037SARM gem5 Developers switch (crm) { 193710037SARM gem5 Developers case 0: 193810037SARM gem5 Developers switch (op2) { 193910037SARM gem5 Developers case 0: 194010037SARM gem5 Developers return MISCREG_TTBR0_EL3; 194110037SARM gem5 Developers case 2: 194210037SARM gem5 Developers return MISCREG_TCR_EL3; 194310037SARM gem5 Developers } 194410037SARM gem5 Developers break; 194510037SARM gem5 Developers } 194610037SARM gem5 Developers break; 194710037SARM gem5 Developers } 194810037SARM gem5 Developers break; 194910037SARM gem5 Developers case 3: 195010037SARM gem5 Developers switch (op1) { 195110037SARM gem5 Developers case 4: 195210037SARM gem5 Developers switch (crm) { 195310037SARM gem5 Developers case 0: 195410037SARM gem5 Developers switch (op2) { 195510037SARM gem5 Developers case 0: 195610037SARM gem5 Developers return MISCREG_DACR32_EL2; 195710037SARM gem5 Developers } 195810037SARM gem5 Developers break; 195910037SARM gem5 Developers } 196010037SARM gem5 Developers break; 196110037SARM gem5 Developers } 196210037SARM gem5 Developers break; 196310037SARM gem5 Developers case 4: 196410037SARM gem5 Developers switch (op1) { 196510037SARM gem5 Developers case 0: 196610037SARM gem5 Developers switch (crm) { 196710037SARM gem5 Developers case 0: 196810037SARM gem5 Developers switch (op2) { 196910037SARM gem5 Developers case 0: 197010037SARM gem5 Developers return MISCREG_SPSR_EL1; 197110037SARM gem5 Developers case 1: 197210037SARM gem5 Developers return MISCREG_ELR_EL1; 197310037SARM gem5 Developers } 197410037SARM gem5 Developers break; 197510037SARM gem5 Developers case 1: 197610037SARM gem5 Developers switch (op2) { 197710037SARM gem5 Developers case 0: 197810037SARM gem5 Developers return MISCREG_SP_EL0; 197910037SARM gem5 Developers } 198010037SARM gem5 Developers break; 198110037SARM gem5 Developers case 2: 198210037SARM gem5 Developers switch (op2) { 198310037SARM gem5 Developers case 0: 198410037SARM gem5 Developers return MISCREG_SPSEL; 198510037SARM gem5 Developers case 2: 198610037SARM gem5 Developers return MISCREG_CURRENTEL; 198714128Sgiacomo.travaglini@arm.com case 3: 198814128Sgiacomo.travaglini@arm.com return MISCREG_PAN; 198910037SARM gem5 Developers } 199010037SARM gem5 Developers break; 199113531Sjairo.balart@metempsy.com case 6: 199213531Sjairo.balart@metempsy.com switch (op2) { 199313531Sjairo.balart@metempsy.com case 0: 199413531Sjairo.balart@metempsy.com return MISCREG_ICC_PMR_EL1; 199513531Sjairo.balart@metempsy.com } 199613531Sjairo.balart@metempsy.com break; 199710037SARM gem5 Developers } 199810037SARM gem5 Developers break; 199910037SARM gem5 Developers case 3: 200010037SARM gem5 Developers switch (crm) { 200110037SARM gem5 Developers case 2: 200210037SARM gem5 Developers switch (op2) { 200310037SARM gem5 Developers case 0: 200410037SARM gem5 Developers return MISCREG_NZCV; 200510037SARM gem5 Developers case 1: 200610037SARM gem5 Developers return MISCREG_DAIF; 200710037SARM gem5 Developers } 200810037SARM gem5 Developers break; 200910037SARM gem5 Developers case 4: 201010037SARM gem5 Developers switch (op2) { 201110037SARM gem5 Developers case 0: 201210037SARM gem5 Developers return MISCREG_FPCR; 201310037SARM gem5 Developers case 1: 201410037SARM gem5 Developers return MISCREG_FPSR; 201510037SARM gem5 Developers } 201610037SARM gem5 Developers break; 201710037SARM gem5 Developers case 5: 201810037SARM gem5 Developers switch (op2) { 201910037SARM gem5 Developers case 0: 202010037SARM gem5 Developers return MISCREG_DSPSR_EL0; 202110037SARM gem5 Developers case 1: 202210037SARM gem5 Developers return MISCREG_DLR_EL0; 202310037SARM gem5 Developers } 202410037SARM gem5 Developers break; 202510037SARM gem5 Developers } 202610037SARM gem5 Developers break; 202710037SARM gem5 Developers case 4: 202810037SARM gem5 Developers switch (crm) { 202910037SARM gem5 Developers case 0: 203010037SARM gem5 Developers switch (op2) { 203110037SARM gem5 Developers case 0: 203210037SARM gem5 Developers return MISCREG_SPSR_EL2; 203310037SARM gem5 Developers case 1: 203410037SARM gem5 Developers return MISCREG_ELR_EL2; 203510037SARM gem5 Developers } 203610037SARM gem5 Developers break; 203710037SARM gem5 Developers case 1: 203810037SARM gem5 Developers switch (op2) { 203910037SARM gem5 Developers case 0: 204010037SARM gem5 Developers return MISCREG_SP_EL1; 204110037SARM gem5 Developers } 204210037SARM gem5 Developers break; 204310037SARM gem5 Developers case 3: 204410037SARM gem5 Developers switch (op2) { 204510037SARM gem5 Developers case 0: 204610037SARM gem5 Developers return MISCREG_SPSR_IRQ_AA64; 204710037SARM gem5 Developers case 1: 204810037SARM gem5 Developers return MISCREG_SPSR_ABT_AA64; 204910037SARM gem5 Developers case 2: 205010037SARM gem5 Developers return MISCREG_SPSR_UND_AA64; 205110037SARM gem5 Developers case 3: 205210037SARM gem5 Developers return MISCREG_SPSR_FIQ_AA64; 205310037SARM gem5 Developers } 205410037SARM gem5 Developers break; 205510037SARM gem5 Developers } 205610037SARM gem5 Developers break; 205710037SARM gem5 Developers case 6: 205810037SARM gem5 Developers switch (crm) { 205910037SARM gem5 Developers case 0: 206010037SARM gem5 Developers switch (op2) { 206110037SARM gem5 Developers case 0: 206210037SARM gem5 Developers return MISCREG_SPSR_EL3; 206310037SARM gem5 Developers case 1: 206410037SARM gem5 Developers return MISCREG_ELR_EL3; 206510037SARM gem5 Developers } 206610037SARM gem5 Developers break; 206710037SARM gem5 Developers case 1: 206810037SARM gem5 Developers switch (op2) { 206910037SARM gem5 Developers case 0: 207010037SARM gem5 Developers return MISCREG_SP_EL2; 207110037SARM gem5 Developers } 207210037SARM gem5 Developers break; 207310037SARM gem5 Developers } 207410037SARM gem5 Developers break; 207510037SARM gem5 Developers } 207610037SARM gem5 Developers break; 207710037SARM gem5 Developers case 5: 207810037SARM gem5 Developers switch (op1) { 207910037SARM gem5 Developers case 0: 208010037SARM gem5 Developers switch (crm) { 208110037SARM gem5 Developers case 1: 208210037SARM gem5 Developers switch (op2) { 208310037SARM gem5 Developers case 0: 208410037SARM gem5 Developers return MISCREG_AFSR0_EL1; 208510037SARM gem5 Developers case 1: 208610037SARM gem5 Developers return MISCREG_AFSR1_EL1; 208710037SARM gem5 Developers } 208810037SARM gem5 Developers break; 208910037SARM gem5 Developers case 2: 209010037SARM gem5 Developers switch (op2) { 209110037SARM gem5 Developers case 0: 209210037SARM gem5 Developers return MISCREG_ESR_EL1; 209310037SARM gem5 Developers } 209410037SARM gem5 Developers break; 209512815Sgiacomo.travaglini@arm.com case 3: 209612815Sgiacomo.travaglini@arm.com switch (op2) { 209712815Sgiacomo.travaglini@arm.com case 0: 209812815Sgiacomo.travaglini@arm.com return MISCREG_ERRIDR_EL1; 209912815Sgiacomo.travaglini@arm.com case 1: 210012815Sgiacomo.travaglini@arm.com return MISCREG_ERRSELR_EL1; 210112815Sgiacomo.travaglini@arm.com } 210212815Sgiacomo.travaglini@arm.com break; 210312815Sgiacomo.travaglini@arm.com case 4: 210412815Sgiacomo.travaglini@arm.com switch (op2) { 210512815Sgiacomo.travaglini@arm.com case 0: 210612815Sgiacomo.travaglini@arm.com return MISCREG_ERXFR_EL1; 210712815Sgiacomo.travaglini@arm.com case 1: 210812815Sgiacomo.travaglini@arm.com return MISCREG_ERXCTLR_EL1; 210912815Sgiacomo.travaglini@arm.com case 2: 211012815Sgiacomo.travaglini@arm.com return MISCREG_ERXSTATUS_EL1; 211112815Sgiacomo.travaglini@arm.com case 3: 211212815Sgiacomo.travaglini@arm.com return MISCREG_ERXADDR_EL1; 211312815Sgiacomo.travaglini@arm.com } 211412815Sgiacomo.travaglini@arm.com break; 211512815Sgiacomo.travaglini@arm.com case 5: 211612815Sgiacomo.travaglini@arm.com switch (op2) { 211712815Sgiacomo.travaglini@arm.com case 0: 211812815Sgiacomo.travaglini@arm.com return MISCREG_ERXMISC0_EL1; 211912815Sgiacomo.travaglini@arm.com case 1: 212012815Sgiacomo.travaglini@arm.com return MISCREG_ERXMISC1_EL1; 212112815Sgiacomo.travaglini@arm.com } 212212815Sgiacomo.travaglini@arm.com break; 212310037SARM gem5 Developers } 212410037SARM gem5 Developers break; 212510037SARM gem5 Developers case 4: 212610037SARM gem5 Developers switch (crm) { 212710037SARM gem5 Developers case 0: 212810037SARM gem5 Developers switch (op2) { 212910037SARM gem5 Developers case 1: 213010037SARM gem5 Developers return MISCREG_IFSR32_EL2; 213110037SARM gem5 Developers } 213210037SARM gem5 Developers break; 213310037SARM gem5 Developers case 1: 213410037SARM gem5 Developers switch (op2) { 213510037SARM gem5 Developers case 0: 213610037SARM gem5 Developers return MISCREG_AFSR0_EL2; 213710037SARM gem5 Developers case 1: 213810037SARM gem5 Developers return MISCREG_AFSR1_EL2; 213910037SARM gem5 Developers } 214010037SARM gem5 Developers break; 214110037SARM gem5 Developers case 2: 214210037SARM gem5 Developers switch (op2) { 214310037SARM gem5 Developers case 0: 214410037SARM gem5 Developers return MISCREG_ESR_EL2; 214512815Sgiacomo.travaglini@arm.com case 3: 214612815Sgiacomo.travaglini@arm.com return MISCREG_VSESR_EL2; 214710037SARM gem5 Developers } 214810037SARM gem5 Developers break; 214910037SARM gem5 Developers case 3: 215010037SARM gem5 Developers switch (op2) { 215110037SARM gem5 Developers case 0: 215210037SARM gem5 Developers return MISCREG_FPEXC32_EL2; 215310037SARM gem5 Developers } 215410037SARM gem5 Developers break; 215510037SARM gem5 Developers } 215610037SARM gem5 Developers break; 215710037SARM gem5 Developers case 6: 215810037SARM gem5 Developers switch (crm) { 215910037SARM gem5 Developers case 1: 216010037SARM gem5 Developers switch (op2) { 216110037SARM gem5 Developers case 0: 216210037SARM gem5 Developers return MISCREG_AFSR0_EL3; 216310037SARM gem5 Developers case 1: 216410037SARM gem5 Developers return MISCREG_AFSR1_EL3; 216510037SARM gem5 Developers } 216610037SARM gem5 Developers break; 216710037SARM gem5 Developers case 2: 216810037SARM gem5 Developers switch (op2) { 216910037SARM gem5 Developers case 0: 217010037SARM gem5 Developers return MISCREG_ESR_EL3; 217110037SARM gem5 Developers } 217210037SARM gem5 Developers break; 217310037SARM gem5 Developers } 217410037SARM gem5 Developers break; 217510037SARM gem5 Developers } 217610037SARM gem5 Developers break; 217710037SARM gem5 Developers case 6: 217810037SARM gem5 Developers switch (op1) { 217910037SARM gem5 Developers case 0: 218010037SARM gem5 Developers switch (crm) { 218110037SARM gem5 Developers case 0: 218210037SARM gem5 Developers switch (op2) { 218310037SARM gem5 Developers case 0: 218410037SARM gem5 Developers return MISCREG_FAR_EL1; 218510037SARM gem5 Developers } 218610037SARM gem5 Developers break; 218710037SARM gem5 Developers } 218810037SARM gem5 Developers break; 218910037SARM gem5 Developers case 4: 219010037SARM gem5 Developers switch (crm) { 219110037SARM gem5 Developers case 0: 219210037SARM gem5 Developers switch (op2) { 219310037SARM gem5 Developers case 0: 219410037SARM gem5 Developers return MISCREG_FAR_EL2; 219510037SARM gem5 Developers case 4: 219610037SARM gem5 Developers return MISCREG_HPFAR_EL2; 219710037SARM gem5 Developers } 219810037SARM gem5 Developers break; 219910037SARM gem5 Developers } 220010037SARM gem5 Developers break; 220110037SARM gem5 Developers case 6: 220210037SARM gem5 Developers switch (crm) { 220310037SARM gem5 Developers case 0: 220410037SARM gem5 Developers switch (op2) { 220510037SARM gem5 Developers case 0: 220610037SARM gem5 Developers return MISCREG_FAR_EL3; 220710037SARM gem5 Developers } 220810037SARM gem5 Developers break; 220910037SARM gem5 Developers } 221010037SARM gem5 Developers break; 221110037SARM gem5 Developers } 221210037SARM gem5 Developers break; 221310037SARM gem5 Developers case 7: 221410037SARM gem5 Developers switch (op1) { 221510037SARM gem5 Developers case 0: 221610037SARM gem5 Developers switch (crm) { 221710037SARM gem5 Developers case 4: 221810037SARM gem5 Developers switch (op2) { 221910037SARM gem5 Developers case 0: 222010037SARM gem5 Developers return MISCREG_PAR_EL1; 222110037SARM gem5 Developers } 222210037SARM gem5 Developers break; 222310037SARM gem5 Developers } 222410037SARM gem5 Developers break; 222510037SARM gem5 Developers } 222610037SARM gem5 Developers break; 222710037SARM gem5 Developers case 9: 222810037SARM gem5 Developers switch (op1) { 222910037SARM gem5 Developers case 0: 223010037SARM gem5 Developers switch (crm) { 223110037SARM gem5 Developers case 14: 223210037SARM gem5 Developers switch (op2) { 223310037SARM gem5 Developers case 1: 223410037SARM gem5 Developers return MISCREG_PMINTENSET_EL1; 223510037SARM gem5 Developers case 2: 223610037SARM gem5 Developers return MISCREG_PMINTENCLR_EL1; 223710037SARM gem5 Developers } 223810037SARM gem5 Developers break; 223910037SARM gem5 Developers } 224010037SARM gem5 Developers break; 224110037SARM gem5 Developers case 3: 224210037SARM gem5 Developers switch (crm) { 224310037SARM gem5 Developers case 12: 224410037SARM gem5 Developers switch (op2) { 224510037SARM gem5 Developers case 0: 224610037SARM gem5 Developers return MISCREG_PMCR_EL0; 224710037SARM gem5 Developers case 1: 224810037SARM gem5 Developers return MISCREG_PMCNTENSET_EL0; 224910037SARM gem5 Developers case 2: 225010037SARM gem5 Developers return MISCREG_PMCNTENCLR_EL0; 225110037SARM gem5 Developers case 3: 225210037SARM gem5 Developers return MISCREG_PMOVSCLR_EL0; 225310037SARM gem5 Developers case 4: 225410037SARM gem5 Developers return MISCREG_PMSWINC_EL0; 225510037SARM gem5 Developers case 5: 225610037SARM gem5 Developers return MISCREG_PMSELR_EL0; 225710037SARM gem5 Developers case 6: 225810037SARM gem5 Developers return MISCREG_PMCEID0_EL0; 225910037SARM gem5 Developers case 7: 226010037SARM gem5 Developers return MISCREG_PMCEID1_EL0; 226110037SARM gem5 Developers } 226210037SARM gem5 Developers break; 226310037SARM gem5 Developers case 13: 226410037SARM gem5 Developers switch (op2) { 226510037SARM gem5 Developers case 0: 226610037SARM gem5 Developers return MISCREG_PMCCNTR_EL0; 226710037SARM gem5 Developers case 1: 226810604SAndreas.Sandberg@ARM.com return MISCREG_PMXEVTYPER_EL0; 226910037SARM gem5 Developers case 2: 227010037SARM gem5 Developers return MISCREG_PMXEVCNTR_EL0; 227110037SARM gem5 Developers } 227210037SARM gem5 Developers break; 227310037SARM gem5 Developers case 14: 227410037SARM gem5 Developers switch (op2) { 227510037SARM gem5 Developers case 0: 227610037SARM gem5 Developers return MISCREG_PMUSERENR_EL0; 227710037SARM gem5 Developers case 3: 227810037SARM gem5 Developers return MISCREG_PMOVSSET_EL0; 227910037SARM gem5 Developers } 228010037SARM gem5 Developers break; 228110037SARM gem5 Developers } 228210037SARM gem5 Developers break; 228310037SARM gem5 Developers } 228410037SARM gem5 Developers break; 228510037SARM gem5 Developers case 10: 228610037SARM gem5 Developers switch (op1) { 228710037SARM gem5 Developers case 0: 228810037SARM gem5 Developers switch (crm) { 228910037SARM gem5 Developers case 2: 229010037SARM gem5 Developers switch (op2) { 229110037SARM gem5 Developers case 0: 229210037SARM gem5 Developers return MISCREG_MAIR_EL1; 229310037SARM gem5 Developers } 229410037SARM gem5 Developers break; 229510037SARM gem5 Developers case 3: 229610037SARM gem5 Developers switch (op2) { 229710037SARM gem5 Developers case 0: 229810037SARM gem5 Developers return MISCREG_AMAIR_EL1; 229910037SARM gem5 Developers } 230010037SARM gem5 Developers break; 230110037SARM gem5 Developers } 230210037SARM gem5 Developers break; 230310037SARM gem5 Developers case 4: 230410037SARM gem5 Developers switch (crm) { 230510037SARM gem5 Developers case 2: 230610037SARM gem5 Developers switch (op2) { 230710037SARM gem5 Developers case 0: 230810037SARM gem5 Developers return MISCREG_MAIR_EL2; 230910037SARM gem5 Developers } 231010037SARM gem5 Developers break; 231110037SARM gem5 Developers case 3: 231210037SARM gem5 Developers switch (op2) { 231310037SARM gem5 Developers case 0: 231410037SARM gem5 Developers return MISCREG_AMAIR_EL2; 231510037SARM gem5 Developers } 231610037SARM gem5 Developers break; 231710037SARM gem5 Developers } 231810037SARM gem5 Developers break; 231910037SARM gem5 Developers case 6: 232010037SARM gem5 Developers switch (crm) { 232110037SARM gem5 Developers case 2: 232210037SARM gem5 Developers switch (op2) { 232310037SARM gem5 Developers case 0: 232410037SARM gem5 Developers return MISCREG_MAIR_EL3; 232510037SARM gem5 Developers } 232610037SARM gem5 Developers break; 232710037SARM gem5 Developers case 3: 232810037SARM gem5 Developers switch (op2) { 232910037SARM gem5 Developers case 0: 233010037SARM gem5 Developers return MISCREG_AMAIR_EL3; 233110037SARM gem5 Developers } 233210037SARM gem5 Developers break; 233310037SARM gem5 Developers } 233410037SARM gem5 Developers break; 233510037SARM gem5 Developers } 233610037SARM gem5 Developers break; 233710037SARM gem5 Developers case 11: 233810037SARM gem5 Developers switch (op1) { 233910037SARM gem5 Developers case 1: 234010037SARM gem5 Developers switch (crm) { 234110037SARM gem5 Developers case 0: 234210037SARM gem5 Developers switch (op2) { 234310037SARM gem5 Developers case 2: 234410037SARM gem5 Developers return MISCREG_L2CTLR_EL1; 234510037SARM gem5 Developers case 3: 234610037SARM gem5 Developers return MISCREG_L2ECTLR_EL1; 234710037SARM gem5 Developers } 234810037SARM gem5 Developers break; 234910037SARM gem5 Developers } 235012711Sgiacomo.travaglini@arm.com M5_FALLTHROUGH; 235112711Sgiacomo.travaglini@arm.com default: 235212711Sgiacomo.travaglini@arm.com // S3_<op1>_11_<Cm>_<op2> 235312711Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 235410037SARM gem5 Developers } 235512711Sgiacomo.travaglini@arm.com M5_UNREACHABLE; 235610037SARM gem5 Developers case 12: 235710037SARM gem5 Developers switch (op1) { 235810037SARM gem5 Developers case 0: 235910037SARM gem5 Developers switch (crm) { 236010037SARM gem5 Developers case 0: 236110037SARM gem5 Developers switch (op2) { 236210037SARM gem5 Developers case 0: 236310037SARM gem5 Developers return MISCREG_VBAR_EL1; 236410037SARM gem5 Developers case 1: 236510037SARM gem5 Developers return MISCREG_RVBAR_EL1; 236610037SARM gem5 Developers } 236710037SARM gem5 Developers break; 236810037SARM gem5 Developers case 1: 236910037SARM gem5 Developers switch (op2) { 237010037SARM gem5 Developers case 0: 237110037SARM gem5 Developers return MISCREG_ISR_EL1; 237212815Sgiacomo.travaglini@arm.com case 1: 237312815Sgiacomo.travaglini@arm.com return MISCREG_DISR_EL1; 237410037SARM gem5 Developers } 237510037SARM gem5 Developers break; 237613531Sjairo.balart@metempsy.com case 8: 237713531Sjairo.balart@metempsy.com switch (op2) { 237813531Sjairo.balart@metempsy.com case 0: 237913531Sjairo.balart@metempsy.com return MISCREG_ICC_IAR0_EL1; 238013531Sjairo.balart@metempsy.com case 1: 238113531Sjairo.balart@metempsy.com return MISCREG_ICC_EOIR0_EL1; 238213531Sjairo.balart@metempsy.com case 2: 238313531Sjairo.balart@metempsy.com return MISCREG_ICC_HPPIR0_EL1; 238413531Sjairo.balart@metempsy.com case 3: 238513531Sjairo.balart@metempsy.com return MISCREG_ICC_BPR0_EL1; 238613531Sjairo.balart@metempsy.com case 4: 238713531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R0_EL1; 238813531Sjairo.balart@metempsy.com case 5: 238913531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R1_EL1; 239013531Sjairo.balart@metempsy.com case 6: 239113531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R2_EL1; 239213531Sjairo.balart@metempsy.com case 7: 239313531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R3_EL1; 239413531Sjairo.balart@metempsy.com } 239513531Sjairo.balart@metempsy.com break; 239613531Sjairo.balart@metempsy.com case 9: 239713531Sjairo.balart@metempsy.com switch (op2) { 239813531Sjairo.balart@metempsy.com case 0: 239913531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R0_EL1; 240013531Sjairo.balart@metempsy.com case 1: 240113531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R1_EL1; 240213531Sjairo.balart@metempsy.com case 2: 240313531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R2_EL1; 240413531Sjairo.balart@metempsy.com case 3: 240513531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R3_EL1; 240613531Sjairo.balart@metempsy.com } 240713531Sjairo.balart@metempsy.com break; 240813531Sjairo.balart@metempsy.com case 11: 240913531Sjairo.balart@metempsy.com switch (op2) { 241013531Sjairo.balart@metempsy.com case 1: 241113531Sjairo.balart@metempsy.com return MISCREG_ICC_DIR_EL1; 241213531Sjairo.balart@metempsy.com case 3: 241313531Sjairo.balart@metempsy.com return MISCREG_ICC_RPR_EL1; 241413531Sjairo.balart@metempsy.com case 5: 241513531Sjairo.balart@metempsy.com return MISCREG_ICC_SGI1R_EL1; 241613531Sjairo.balart@metempsy.com case 6: 241713531Sjairo.balart@metempsy.com return MISCREG_ICC_ASGI1R_EL1; 241813531Sjairo.balart@metempsy.com case 7: 241913531Sjairo.balart@metempsy.com return MISCREG_ICC_SGI0R_EL1; 242013531Sjairo.balart@metempsy.com } 242113531Sjairo.balart@metempsy.com break; 242213531Sjairo.balart@metempsy.com case 12: 242313531Sjairo.balart@metempsy.com switch (op2) { 242413531Sjairo.balart@metempsy.com case 0: 242513531Sjairo.balart@metempsy.com return MISCREG_ICC_IAR1_EL1; 242613531Sjairo.balart@metempsy.com case 1: 242713531Sjairo.balart@metempsy.com return MISCREG_ICC_EOIR1_EL1; 242813531Sjairo.balart@metempsy.com case 2: 242913531Sjairo.balart@metempsy.com return MISCREG_ICC_HPPIR1_EL1; 243013531Sjairo.balart@metempsy.com case 3: 243113531Sjairo.balart@metempsy.com return MISCREG_ICC_BPR1_EL1; 243213531Sjairo.balart@metempsy.com case 4: 243313531Sjairo.balart@metempsy.com return MISCREG_ICC_CTLR_EL1; 243413531Sjairo.balart@metempsy.com case 5: 243513531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE_EL1; 243613531Sjairo.balart@metempsy.com case 6: 243713531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN0_EL1; 243813531Sjairo.balart@metempsy.com case 7: 243913531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN1_EL1; 244013531Sjairo.balart@metempsy.com } 244113531Sjairo.balart@metempsy.com break; 244210037SARM gem5 Developers } 244310037SARM gem5 Developers break; 244410037SARM gem5 Developers case 4: 244510037SARM gem5 Developers switch (crm) { 244610037SARM gem5 Developers case 0: 244710037SARM gem5 Developers switch (op2) { 244810037SARM gem5 Developers case 0: 244910037SARM gem5 Developers return MISCREG_VBAR_EL2; 245010037SARM gem5 Developers case 1: 245110037SARM gem5 Developers return MISCREG_RVBAR_EL2; 245210037SARM gem5 Developers } 245310037SARM gem5 Developers break; 245412815Sgiacomo.travaglini@arm.com case 1: 245512815Sgiacomo.travaglini@arm.com switch (op2) { 245612815Sgiacomo.travaglini@arm.com case 1: 245712815Sgiacomo.travaglini@arm.com return MISCREG_VDISR_EL2; 245812815Sgiacomo.travaglini@arm.com } 245912815Sgiacomo.travaglini@arm.com break; 246013531Sjairo.balart@metempsy.com case 8: 246113531Sjairo.balart@metempsy.com switch (op2) { 246213531Sjairo.balart@metempsy.com case 0: 246313531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R0_EL2; 246413531Sjairo.balart@metempsy.com case 1: 246513531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R1_EL2; 246613531Sjairo.balart@metempsy.com case 2: 246713531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R2_EL2; 246813531Sjairo.balart@metempsy.com case 3: 246913531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R3_EL2; 247013531Sjairo.balart@metempsy.com } 247113531Sjairo.balart@metempsy.com break; 247213531Sjairo.balart@metempsy.com case 9: 247313531Sjairo.balart@metempsy.com switch (op2) { 247413531Sjairo.balart@metempsy.com case 0: 247513531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R0_EL2; 247613531Sjairo.balart@metempsy.com case 1: 247713531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R1_EL2; 247813531Sjairo.balart@metempsy.com case 2: 247913531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R2_EL2; 248013531Sjairo.balart@metempsy.com case 3: 248113531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R3_EL2; 248213531Sjairo.balart@metempsy.com case 5: 248313531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE_EL2; 248413531Sjairo.balart@metempsy.com } 248513531Sjairo.balart@metempsy.com break; 248613531Sjairo.balart@metempsy.com case 11: 248713531Sjairo.balart@metempsy.com switch (op2) { 248813531Sjairo.balart@metempsy.com case 0: 248913531Sjairo.balart@metempsy.com return MISCREG_ICH_HCR_EL2; 249013531Sjairo.balart@metempsy.com case 1: 249113531Sjairo.balart@metempsy.com return MISCREG_ICH_VTR_EL2; 249213531Sjairo.balart@metempsy.com case 2: 249313531Sjairo.balart@metempsy.com return MISCREG_ICH_MISR_EL2; 249413531Sjairo.balart@metempsy.com case 3: 249513531Sjairo.balart@metempsy.com return MISCREG_ICH_EISR_EL2; 249613531Sjairo.balart@metempsy.com case 5: 249713531Sjairo.balart@metempsy.com return MISCREG_ICH_ELRSR_EL2; 249813531Sjairo.balart@metempsy.com case 7: 249913531Sjairo.balart@metempsy.com return MISCREG_ICH_VMCR_EL2; 250013531Sjairo.balart@metempsy.com } 250113531Sjairo.balart@metempsy.com break; 250213531Sjairo.balart@metempsy.com case 12: 250313531Sjairo.balart@metempsy.com switch (op2) { 250413531Sjairo.balart@metempsy.com case 0: 250513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR0_EL2; 250613531Sjairo.balart@metempsy.com case 1: 250713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR1_EL2; 250813531Sjairo.balart@metempsy.com case 2: 250913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR2_EL2; 251013531Sjairo.balart@metempsy.com case 3: 251113531Sjairo.balart@metempsy.com return MISCREG_ICH_LR3_EL2; 251213531Sjairo.balart@metempsy.com case 4: 251313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR4_EL2; 251413531Sjairo.balart@metempsy.com case 5: 251513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR5_EL2; 251613531Sjairo.balart@metempsy.com case 6: 251713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR6_EL2; 251813531Sjairo.balart@metempsy.com case 7: 251913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR7_EL2; 252013531Sjairo.balart@metempsy.com } 252113531Sjairo.balart@metempsy.com break; 252213531Sjairo.balart@metempsy.com case 13: 252313531Sjairo.balart@metempsy.com switch (op2) { 252413531Sjairo.balart@metempsy.com case 0: 252513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR8_EL2; 252613531Sjairo.balart@metempsy.com case 1: 252713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR9_EL2; 252813531Sjairo.balart@metempsy.com case 2: 252913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR10_EL2; 253013531Sjairo.balart@metempsy.com case 3: 253113531Sjairo.balart@metempsy.com return MISCREG_ICH_LR11_EL2; 253213531Sjairo.balart@metempsy.com case 4: 253313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR12_EL2; 253413531Sjairo.balart@metempsy.com case 5: 253513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR13_EL2; 253613531Sjairo.balart@metempsy.com case 6: 253713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR14_EL2; 253813531Sjairo.balart@metempsy.com case 7: 253913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR15_EL2; 254013531Sjairo.balart@metempsy.com } 254113531Sjairo.balart@metempsy.com break; 254210037SARM gem5 Developers } 254310037SARM gem5 Developers break; 254410037SARM gem5 Developers case 6: 254510037SARM gem5 Developers switch (crm) { 254610037SARM gem5 Developers case 0: 254710037SARM gem5 Developers switch (op2) { 254810037SARM gem5 Developers case 0: 254910037SARM gem5 Developers return MISCREG_VBAR_EL3; 255010037SARM gem5 Developers case 1: 255110037SARM gem5 Developers return MISCREG_RVBAR_EL3; 255210037SARM gem5 Developers case 2: 255310037SARM gem5 Developers return MISCREG_RMR_EL3; 255410037SARM gem5 Developers } 255510037SARM gem5 Developers break; 255613531Sjairo.balart@metempsy.com case 12: 255713531Sjairo.balart@metempsy.com switch (op2) { 255813531Sjairo.balart@metempsy.com case 4: 255913531Sjairo.balart@metempsy.com return MISCREG_ICC_CTLR_EL3; 256013531Sjairo.balart@metempsy.com case 5: 256113531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE_EL3; 256213531Sjairo.balart@metempsy.com case 7: 256313531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN1_EL3; 256413531Sjairo.balart@metempsy.com } 256513531Sjairo.balart@metempsy.com break; 256610037SARM gem5 Developers } 256710037SARM gem5 Developers break; 256810037SARM gem5 Developers } 256910037SARM gem5 Developers break; 257010037SARM gem5 Developers case 13: 257110037SARM gem5 Developers switch (op1) { 257210037SARM gem5 Developers case 0: 257310037SARM gem5 Developers switch (crm) { 257410037SARM gem5 Developers case 0: 257510037SARM gem5 Developers switch (op2) { 257610037SARM gem5 Developers case 1: 257710037SARM gem5 Developers return MISCREG_CONTEXTIDR_EL1; 257810037SARM gem5 Developers case 4: 257910037SARM gem5 Developers return MISCREG_TPIDR_EL1; 258010037SARM gem5 Developers } 258110037SARM gem5 Developers break; 258210037SARM gem5 Developers } 258310037SARM gem5 Developers break; 258410037SARM gem5 Developers case 3: 258510037SARM gem5 Developers switch (crm) { 258610037SARM gem5 Developers case 0: 258710037SARM gem5 Developers switch (op2) { 258810037SARM gem5 Developers case 2: 258910037SARM gem5 Developers return MISCREG_TPIDR_EL0; 259010037SARM gem5 Developers case 3: 259110037SARM gem5 Developers return MISCREG_TPIDRRO_EL0; 259210037SARM gem5 Developers } 259310037SARM gem5 Developers break; 259410037SARM gem5 Developers } 259510037SARM gem5 Developers break; 259610037SARM gem5 Developers case 4: 259710037SARM gem5 Developers switch (crm) { 259810037SARM gem5 Developers case 0: 259910037SARM gem5 Developers switch (op2) { 260010856SCurtis.Dunham@arm.com case 1: 260110856SCurtis.Dunham@arm.com return MISCREG_CONTEXTIDR_EL2; 260210037SARM gem5 Developers case 2: 260310037SARM gem5 Developers return MISCREG_TPIDR_EL2; 260410037SARM gem5 Developers } 260510037SARM gem5 Developers break; 260610037SARM gem5 Developers } 260710037SARM gem5 Developers break; 260810037SARM gem5 Developers case 6: 260910037SARM gem5 Developers switch (crm) { 261010037SARM gem5 Developers case 0: 261110037SARM gem5 Developers switch (op2) { 261210037SARM gem5 Developers case 2: 261310037SARM gem5 Developers return MISCREG_TPIDR_EL3; 261410037SARM gem5 Developers } 261510037SARM gem5 Developers break; 261610037SARM gem5 Developers } 261710037SARM gem5 Developers break; 261810037SARM gem5 Developers } 261910037SARM gem5 Developers break; 262010037SARM gem5 Developers case 14: 262110037SARM gem5 Developers switch (op1) { 262210037SARM gem5 Developers case 0: 262310037SARM gem5 Developers switch (crm) { 262410037SARM gem5 Developers case 1: 262510037SARM gem5 Developers switch (op2) { 262610037SARM gem5 Developers case 0: 262710037SARM gem5 Developers return MISCREG_CNTKCTL_EL1; 262810037SARM gem5 Developers } 262910037SARM gem5 Developers break; 263010037SARM gem5 Developers } 263110037SARM gem5 Developers break; 263210037SARM gem5 Developers case 3: 263310037SARM gem5 Developers switch (crm) { 263410037SARM gem5 Developers case 0: 263510037SARM gem5 Developers switch (op2) { 263610037SARM gem5 Developers case 0: 263710037SARM gem5 Developers return MISCREG_CNTFRQ_EL0; 263810037SARM gem5 Developers case 1: 263910037SARM gem5 Developers return MISCREG_CNTPCT_EL0; 264010037SARM gem5 Developers case 2: 264110037SARM gem5 Developers return MISCREG_CNTVCT_EL0; 264210037SARM gem5 Developers } 264310037SARM gem5 Developers break; 264410037SARM gem5 Developers case 2: 264510037SARM gem5 Developers switch (op2) { 264610037SARM gem5 Developers case 0: 264710037SARM gem5 Developers return MISCREG_CNTP_TVAL_EL0; 264810037SARM gem5 Developers case 1: 264910037SARM gem5 Developers return MISCREG_CNTP_CTL_EL0; 265010037SARM gem5 Developers case 2: 265110037SARM gem5 Developers return MISCREG_CNTP_CVAL_EL0; 265210037SARM gem5 Developers } 265310037SARM gem5 Developers break; 265410037SARM gem5 Developers case 3: 265510037SARM gem5 Developers switch (op2) { 265610037SARM gem5 Developers case 0: 265710037SARM gem5 Developers return MISCREG_CNTV_TVAL_EL0; 265810037SARM gem5 Developers case 1: 265910037SARM gem5 Developers return MISCREG_CNTV_CTL_EL0; 266010037SARM gem5 Developers case 2: 266110037SARM gem5 Developers return MISCREG_CNTV_CVAL_EL0; 266210037SARM gem5 Developers } 266310037SARM gem5 Developers break; 266410037SARM gem5 Developers case 8: 266510037SARM gem5 Developers switch (op2) { 266610037SARM gem5 Developers case 0: 266710037SARM gem5 Developers return MISCREG_PMEVCNTR0_EL0; 266810037SARM gem5 Developers case 1: 266910037SARM gem5 Developers return MISCREG_PMEVCNTR1_EL0; 267010037SARM gem5 Developers case 2: 267110037SARM gem5 Developers return MISCREG_PMEVCNTR2_EL0; 267210037SARM gem5 Developers case 3: 267310037SARM gem5 Developers return MISCREG_PMEVCNTR3_EL0; 267410037SARM gem5 Developers case 4: 267510037SARM gem5 Developers return MISCREG_PMEVCNTR4_EL0; 267610037SARM gem5 Developers case 5: 267710037SARM gem5 Developers return MISCREG_PMEVCNTR5_EL0; 267810037SARM gem5 Developers } 267910037SARM gem5 Developers break; 268010037SARM gem5 Developers case 12: 268110037SARM gem5 Developers switch (op2) { 268210037SARM gem5 Developers case 0: 268310037SARM gem5 Developers return MISCREG_PMEVTYPER0_EL0; 268410037SARM gem5 Developers case 1: 268510037SARM gem5 Developers return MISCREG_PMEVTYPER1_EL0; 268610037SARM gem5 Developers case 2: 268710037SARM gem5 Developers return MISCREG_PMEVTYPER2_EL0; 268810037SARM gem5 Developers case 3: 268910037SARM gem5 Developers return MISCREG_PMEVTYPER3_EL0; 269010037SARM gem5 Developers case 4: 269110037SARM gem5 Developers return MISCREG_PMEVTYPER4_EL0; 269210037SARM gem5 Developers case 5: 269310037SARM gem5 Developers return MISCREG_PMEVTYPER5_EL0; 269410037SARM gem5 Developers } 269510037SARM gem5 Developers break; 269610604SAndreas.Sandberg@ARM.com case 15: 269710604SAndreas.Sandberg@ARM.com switch (op2) { 269810604SAndreas.Sandberg@ARM.com case 7: 269910604SAndreas.Sandberg@ARM.com return MISCREG_PMCCFILTR_EL0; 270010604SAndreas.Sandberg@ARM.com } 270110037SARM gem5 Developers } 270210037SARM gem5 Developers break; 270310037SARM gem5 Developers case 4: 270410037SARM gem5 Developers switch (crm) { 270510037SARM gem5 Developers case 0: 270610037SARM gem5 Developers switch (op2) { 270710037SARM gem5 Developers case 3: 270810037SARM gem5 Developers return MISCREG_CNTVOFF_EL2; 270910037SARM gem5 Developers } 271010037SARM gem5 Developers break; 271110037SARM gem5 Developers case 1: 271210037SARM gem5 Developers switch (op2) { 271310037SARM gem5 Developers case 0: 271410037SARM gem5 Developers return MISCREG_CNTHCTL_EL2; 271510037SARM gem5 Developers } 271610037SARM gem5 Developers break; 271710037SARM gem5 Developers case 2: 271810037SARM gem5 Developers switch (op2) { 271910037SARM gem5 Developers case 0: 272010037SARM gem5 Developers return MISCREG_CNTHP_TVAL_EL2; 272110037SARM gem5 Developers case 1: 272210037SARM gem5 Developers return MISCREG_CNTHP_CTL_EL2; 272310037SARM gem5 Developers case 2: 272410037SARM gem5 Developers return MISCREG_CNTHP_CVAL_EL2; 272510037SARM gem5 Developers } 272610037SARM gem5 Developers break; 272712816Sgiacomo.travaglini@arm.com case 3: 272812816Sgiacomo.travaglini@arm.com switch (op2) { 272912816Sgiacomo.travaglini@arm.com case 0: 273012816Sgiacomo.travaglini@arm.com return MISCREG_CNTHV_TVAL_EL2; 273112816Sgiacomo.travaglini@arm.com case 1: 273212816Sgiacomo.travaglini@arm.com return MISCREG_CNTHV_CTL_EL2; 273312816Sgiacomo.travaglini@arm.com case 2: 273412816Sgiacomo.travaglini@arm.com return MISCREG_CNTHV_CVAL_EL2; 273512816Sgiacomo.travaglini@arm.com } 273612816Sgiacomo.travaglini@arm.com break; 273710037SARM gem5 Developers } 273810037SARM gem5 Developers break; 273910037SARM gem5 Developers case 7: 274010037SARM gem5 Developers switch (crm) { 274110037SARM gem5 Developers case 2: 274210037SARM gem5 Developers switch (op2) { 274310037SARM gem5 Developers case 0: 274410037SARM gem5 Developers return MISCREG_CNTPS_TVAL_EL1; 274510037SARM gem5 Developers case 1: 274610037SARM gem5 Developers return MISCREG_CNTPS_CTL_EL1; 274710037SARM gem5 Developers case 2: 274810037SARM gem5 Developers return MISCREG_CNTPS_CVAL_EL1; 274910037SARM gem5 Developers } 275010037SARM gem5 Developers break; 275110037SARM gem5 Developers } 275210037SARM gem5 Developers break; 275310037SARM gem5 Developers } 275410037SARM gem5 Developers break; 275510037SARM gem5 Developers case 15: 275610037SARM gem5 Developers switch (op1) { 275710037SARM gem5 Developers case 0: 275810037SARM gem5 Developers switch (crm) { 275910037SARM gem5 Developers case 0: 276010037SARM gem5 Developers switch (op2) { 276110037SARM gem5 Developers case 0: 276210037SARM gem5 Developers return MISCREG_IL1DATA0_EL1; 276310037SARM gem5 Developers case 1: 276410037SARM gem5 Developers return MISCREG_IL1DATA1_EL1; 276510037SARM gem5 Developers case 2: 276610037SARM gem5 Developers return MISCREG_IL1DATA2_EL1; 276710037SARM gem5 Developers case 3: 276810037SARM gem5 Developers return MISCREG_IL1DATA3_EL1; 276910037SARM gem5 Developers } 277010037SARM gem5 Developers break; 277110037SARM gem5 Developers case 1: 277210037SARM gem5 Developers switch (op2) { 277310037SARM gem5 Developers case 0: 277410037SARM gem5 Developers return MISCREG_DL1DATA0_EL1; 277510037SARM gem5 Developers case 1: 277610037SARM gem5 Developers return MISCREG_DL1DATA1_EL1; 277710037SARM gem5 Developers case 2: 277810037SARM gem5 Developers return MISCREG_DL1DATA2_EL1; 277910037SARM gem5 Developers case 3: 278010037SARM gem5 Developers return MISCREG_DL1DATA3_EL1; 278110037SARM gem5 Developers case 4: 278210037SARM gem5 Developers return MISCREG_DL1DATA4_EL1; 278310037SARM gem5 Developers } 278410037SARM gem5 Developers break; 278510037SARM gem5 Developers } 278610037SARM gem5 Developers break; 278710037SARM gem5 Developers case 1: 278810037SARM gem5 Developers switch (crm) { 278910037SARM gem5 Developers case 0: 279010037SARM gem5 Developers switch (op2) { 279110037SARM gem5 Developers case 0: 279210037SARM gem5 Developers return MISCREG_L2ACTLR_EL1; 279310037SARM gem5 Developers } 279410037SARM gem5 Developers break; 279510037SARM gem5 Developers case 2: 279610037SARM gem5 Developers switch (op2) { 279710037SARM gem5 Developers case 0: 279810037SARM gem5 Developers return MISCREG_CPUACTLR_EL1; 279910037SARM gem5 Developers case 1: 280010037SARM gem5 Developers return MISCREG_CPUECTLR_EL1; 280110037SARM gem5 Developers case 2: 280210037SARM gem5 Developers return MISCREG_CPUMERRSR_EL1; 280310037SARM gem5 Developers case 3: 280410037SARM gem5 Developers return MISCREG_L2MERRSR_EL1; 280510037SARM gem5 Developers } 280610037SARM gem5 Developers break; 280710037SARM gem5 Developers case 3: 280810037SARM gem5 Developers switch (op2) { 280910037SARM gem5 Developers case 0: 281010037SARM gem5 Developers return MISCREG_CBAR_EL1; 281110037SARM gem5 Developers 281210037SARM gem5 Developers } 281310037SARM gem5 Developers break; 281410037SARM gem5 Developers } 281510037SARM gem5 Developers break; 281610037SARM gem5 Developers } 281712711Sgiacomo.travaglini@arm.com // S3_<op1>_15_<Cm>_<op2> 281812711Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 281910037SARM gem5 Developers } 282010037SARM gem5 Developers break; 282110037SARM gem5 Developers } 282210037SARM gem5 Developers 282310037SARM gem5 Developers return MISCREG_UNKNOWN; 282410037SARM gem5 Developers} 282510037SARM gem5 Developers 282612479SCurtis.Dunham@arm.combitset<NUM_MISCREG_INFOS> miscRegInfo[NUM_MISCREGS]; // initialized below 282712479SCurtis.Dunham@arm.com 282812479SCurtis.Dunham@arm.comvoid 282912479SCurtis.Dunham@arm.comISA::initializeMiscRegMetadata() 283012479SCurtis.Dunham@arm.com{ 283112479SCurtis.Dunham@arm.com // the MiscReg metadata tables are shared across all instances of the 283212479SCurtis.Dunham@arm.com // ISA object, so there's no need to initialize them multiple times. 283312479SCurtis.Dunham@arm.com static bool completed = false; 283412479SCurtis.Dunham@arm.com if (completed) 283512479SCurtis.Dunham@arm.com return; 283612479SCurtis.Dunham@arm.com 283712661Sgiacomo.travaglini@arm.com // This boolean variable specifies if the system is running in aarch32 at 283812661Sgiacomo.travaglini@arm.com // EL3 (aarch32EL3 = true). It is false if EL3 is not implemented, or it 283912661Sgiacomo.travaglini@arm.com // is running in aarch64 (aarch32EL3 = false) 284012661Sgiacomo.travaglini@arm.com bool aarch32EL3 = haveSecurity && !highestELIs64; 284112661Sgiacomo.travaglini@arm.com 284213502SCurtis.Dunham@arm.com // Set Privileged Access Never on taking an exception to EL1 (Arm 8.1+), 284313502SCurtis.Dunham@arm.com // unsupported 284413502SCurtis.Dunham@arm.com bool SPAN = false; 284513502SCurtis.Dunham@arm.com 284613502SCurtis.Dunham@arm.com // Implicit error synchronization event enable (Arm 8.2+), unsupported 284713502SCurtis.Dunham@arm.com bool IESB = false; 284813502SCurtis.Dunham@arm.com 284913502SCurtis.Dunham@arm.com // Load Multiple and Store Multiple Atomicity and Ordering (Arm 8.2+), 285013502SCurtis.Dunham@arm.com // unsupported 285113502SCurtis.Dunham@arm.com bool LSMAOE = false; 285213502SCurtis.Dunham@arm.com 285313502SCurtis.Dunham@arm.com // No Trap Load Multiple and Store Multiple (Arm 8.2+), unsupported 285413502SCurtis.Dunham@arm.com bool nTLSMD = false; 285513502SCurtis.Dunham@arm.com 285613502SCurtis.Dunham@arm.com // Pointer authentication (Arm 8.3+), unsupported 285713502SCurtis.Dunham@arm.com bool EnDA = false; // using APDAKey_EL1 key of instr addrs in ELs 0,1 285813502SCurtis.Dunham@arm.com bool EnDB = false; // using APDBKey_EL1 key of instr addrs in ELs 0,1 285913502SCurtis.Dunham@arm.com bool EnIA = false; // using APIAKey_EL1 key of instr addrs in ELs 0,1 286013502SCurtis.Dunham@arm.com bool EnIB = false; // using APIBKey_EL1 key of instr addrs in ELs 0,1 286113502SCurtis.Dunham@arm.com 286212479SCurtis.Dunham@arm.com /** 286312479SCurtis.Dunham@arm.com * Some registers alias with others, and therefore need to be translated. 286412479SCurtis.Dunham@arm.com * When two mapping registers are given, they are the 32b lower and 286512479SCurtis.Dunham@arm.com * upper halves, respectively, of the 64b register being mapped. 286612479SCurtis.Dunham@arm.com * aligned with reference documentation ARM DDI 0487A.i pp 1540-1543 286712479SCurtis.Dunham@arm.com * 286812479SCurtis.Dunham@arm.com * NAM = "not architecturally mandated", 286912479SCurtis.Dunham@arm.com * from ARM DDI 0487A.i, template text 287012479SCurtis.Dunham@arm.com * "AArch64 System register ___ can be mapped to 287112479SCurtis.Dunham@arm.com * AArch32 System register ___, but this is not 287212479SCurtis.Dunham@arm.com * architecturally mandated." 287312479SCurtis.Dunham@arm.com */ 287412479SCurtis.Dunham@arm.com 287512479SCurtis.Dunham@arm.com InitReg(MISCREG_CPSR) 287612479SCurtis.Dunham@arm.com .allPrivileges(); 287712479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR) 287812479SCurtis.Dunham@arm.com .allPrivileges(); 287912479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_FIQ) 288012479SCurtis.Dunham@arm.com .allPrivileges(); 288112479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_IRQ) 288212479SCurtis.Dunham@arm.com .allPrivileges(); 288312479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_SVC) 288412479SCurtis.Dunham@arm.com .allPrivileges(); 288512479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_MON) 288612479SCurtis.Dunham@arm.com .allPrivileges(); 288712479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_ABT) 288812479SCurtis.Dunham@arm.com .allPrivileges(); 288912479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_HYP) 289012479SCurtis.Dunham@arm.com .allPrivileges(); 289112479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_UND) 289212479SCurtis.Dunham@arm.com .allPrivileges(); 289312479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_HYP) 289412479SCurtis.Dunham@arm.com .allPrivileges(); 289512479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSID) 289612479SCurtis.Dunham@arm.com .allPrivileges(); 289712479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSCR) 289812479SCurtis.Dunham@arm.com .allPrivileges(); 289912479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR1) 290012479SCurtis.Dunham@arm.com .allPrivileges(); 290112479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR0) 290212479SCurtis.Dunham@arm.com .allPrivileges(); 290312479SCurtis.Dunham@arm.com InitReg(MISCREG_FPEXC) 290412479SCurtis.Dunham@arm.com .allPrivileges(); 290512479SCurtis.Dunham@arm.com 290612479SCurtis.Dunham@arm.com // Helper registers 290712479SCurtis.Dunham@arm.com InitReg(MISCREG_CPSR_MODE) 290812479SCurtis.Dunham@arm.com .allPrivileges(); 290912479SCurtis.Dunham@arm.com InitReg(MISCREG_CPSR_Q) 291012479SCurtis.Dunham@arm.com .allPrivileges(); 291112479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSCR_EXC) 291212479SCurtis.Dunham@arm.com .allPrivileges(); 291312479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSCR_QC) 291412479SCurtis.Dunham@arm.com .allPrivileges(); 291512479SCurtis.Dunham@arm.com InitReg(MISCREG_LOCKADDR) 291612479SCurtis.Dunham@arm.com .allPrivileges(); 291712479SCurtis.Dunham@arm.com InitReg(MISCREG_LOCKFLAG) 291812479SCurtis.Dunham@arm.com .allPrivileges(); 291912479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_MAIR0) 292012479SCurtis.Dunham@arm.com .mutex() 292112479SCurtis.Dunham@arm.com .banked(); 292212479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_MAIR0_NS) 292312479SCurtis.Dunham@arm.com .mutex() 292412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 292512479SCurtis.Dunham@arm.com .bankedChild(); 292612479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_MAIR0_S) 292712479SCurtis.Dunham@arm.com .mutex() 292812479SCurtis.Dunham@arm.com .bankedChild(); 292912479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_MAIR1) 293012479SCurtis.Dunham@arm.com .mutex() 293112479SCurtis.Dunham@arm.com .banked(); 293212479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_MAIR1_NS) 293312479SCurtis.Dunham@arm.com .mutex() 293412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 293512479SCurtis.Dunham@arm.com .bankedChild(); 293612479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_MAIR1_S) 293712479SCurtis.Dunham@arm.com .mutex() 293812479SCurtis.Dunham@arm.com .bankedChild(); 293912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVTYPER_PMCCFILTR) 294012479SCurtis.Dunham@arm.com .mutex(); 294112479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_RST) 294212479SCurtis.Dunham@arm.com .allPrivileges(); 294312479SCurtis.Dunham@arm.com InitReg(MISCREG_SEV_MAILBOX) 294412479SCurtis.Dunham@arm.com .allPrivileges(); 294512479SCurtis.Dunham@arm.com 294612479SCurtis.Dunham@arm.com // AArch32 CP14 registers 294712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDIDR) 294812479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 294912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDSCRint) 295012479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 295112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDCCINT) 295212479SCurtis.Dunham@arm.com .unimplemented() 295312479SCurtis.Dunham@arm.com .allPrivileges(); 295412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRTXint) 295512479SCurtis.Dunham@arm.com .unimplemented() 295612479SCurtis.Dunham@arm.com .allPrivileges(); 295712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRRXint) 295812479SCurtis.Dunham@arm.com .unimplemented() 295912479SCurtis.Dunham@arm.com .allPrivileges(); 296012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWFAR) 296112479SCurtis.Dunham@arm.com .unimplemented() 296212479SCurtis.Dunham@arm.com .allPrivileges(); 296312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGVCR) 296412479SCurtis.Dunham@arm.com .unimplemented() 296512479SCurtis.Dunham@arm.com .allPrivileges(); 296612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRRXext) 296712479SCurtis.Dunham@arm.com .unimplemented() 296812479SCurtis.Dunham@arm.com .allPrivileges(); 296912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDSCRext) 297012479SCurtis.Dunham@arm.com .unimplemented() 297112479SCurtis.Dunham@arm.com .warnNotFail() 297212479SCurtis.Dunham@arm.com .allPrivileges(); 297312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRTXext) 297412479SCurtis.Dunham@arm.com .unimplemented() 297512479SCurtis.Dunham@arm.com .allPrivileges(); 297612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSECCR) 297712479SCurtis.Dunham@arm.com .unimplemented() 297812479SCurtis.Dunham@arm.com .allPrivileges(); 297912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR0) 298012479SCurtis.Dunham@arm.com .unimplemented() 298112479SCurtis.Dunham@arm.com .allPrivileges(); 298212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR1) 298312479SCurtis.Dunham@arm.com .unimplemented() 298412479SCurtis.Dunham@arm.com .allPrivileges(); 298512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR2) 298612479SCurtis.Dunham@arm.com .unimplemented() 298712479SCurtis.Dunham@arm.com .allPrivileges(); 298812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR3) 298912479SCurtis.Dunham@arm.com .unimplemented() 299012479SCurtis.Dunham@arm.com .allPrivileges(); 299112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR4) 299212479SCurtis.Dunham@arm.com .unimplemented() 299312479SCurtis.Dunham@arm.com .allPrivileges(); 299412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR5) 299512479SCurtis.Dunham@arm.com .unimplemented() 299612479SCurtis.Dunham@arm.com .allPrivileges(); 299712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR0) 299812479SCurtis.Dunham@arm.com .unimplemented() 299912479SCurtis.Dunham@arm.com .allPrivileges(); 300012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR1) 300112479SCurtis.Dunham@arm.com .unimplemented() 300212479SCurtis.Dunham@arm.com .allPrivileges(); 300312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR2) 300412479SCurtis.Dunham@arm.com .unimplemented() 300512479SCurtis.Dunham@arm.com .allPrivileges(); 300612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR3) 300712479SCurtis.Dunham@arm.com .unimplemented() 300812479SCurtis.Dunham@arm.com .allPrivileges(); 300912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR4) 301012479SCurtis.Dunham@arm.com .unimplemented() 301112479SCurtis.Dunham@arm.com .allPrivileges(); 301212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR5) 301312479SCurtis.Dunham@arm.com .unimplemented() 301412479SCurtis.Dunham@arm.com .allPrivileges(); 301512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR0) 301612479SCurtis.Dunham@arm.com .unimplemented() 301712479SCurtis.Dunham@arm.com .allPrivileges(); 301812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR1) 301912479SCurtis.Dunham@arm.com .unimplemented() 302012479SCurtis.Dunham@arm.com .allPrivileges(); 302112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR2) 302212479SCurtis.Dunham@arm.com .unimplemented() 302312479SCurtis.Dunham@arm.com .allPrivileges(); 302412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR3) 302512479SCurtis.Dunham@arm.com .unimplemented() 302612479SCurtis.Dunham@arm.com .allPrivileges(); 302712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR0) 302812479SCurtis.Dunham@arm.com .unimplemented() 302912479SCurtis.Dunham@arm.com .allPrivileges(); 303012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR1) 303112479SCurtis.Dunham@arm.com .unimplemented() 303212479SCurtis.Dunham@arm.com .allPrivileges(); 303312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR2) 303412479SCurtis.Dunham@arm.com .unimplemented() 303512479SCurtis.Dunham@arm.com .allPrivileges(); 303612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR3) 303712479SCurtis.Dunham@arm.com .unimplemented() 303812479SCurtis.Dunham@arm.com .allPrivileges(); 303912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDRAR) 304012479SCurtis.Dunham@arm.com .unimplemented() 304112479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 304212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBXVR4) 304312479SCurtis.Dunham@arm.com .unimplemented() 304412479SCurtis.Dunham@arm.com .allPrivileges(); 304512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBXVR5) 304612479SCurtis.Dunham@arm.com .unimplemented() 304712479SCurtis.Dunham@arm.com .allPrivileges(); 304812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSLAR) 304912479SCurtis.Dunham@arm.com .unimplemented() 305012479SCurtis.Dunham@arm.com .allPrivileges().monSecureRead(0).monNonSecureRead(0); 305112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSLSR) 305212479SCurtis.Dunham@arm.com .unimplemented() 305312479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 305412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSDLR) 305512479SCurtis.Dunham@arm.com .unimplemented() 305612479SCurtis.Dunham@arm.com .allPrivileges(); 305712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGPRCR) 305812479SCurtis.Dunham@arm.com .unimplemented() 305912479SCurtis.Dunham@arm.com .allPrivileges(); 306012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDSAR) 306112479SCurtis.Dunham@arm.com .unimplemented() 306212479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 306312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMSET) 306412479SCurtis.Dunham@arm.com .unimplemented() 306512479SCurtis.Dunham@arm.com .allPrivileges(); 306612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMCLR) 306712479SCurtis.Dunham@arm.com .unimplemented() 306812479SCurtis.Dunham@arm.com .allPrivileges(); 306912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGAUTHSTATUS) 307012479SCurtis.Dunham@arm.com .unimplemented() 307112479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDEVID2) 307312479SCurtis.Dunham@arm.com .unimplemented() 307412479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDEVID1) 307612479SCurtis.Dunham@arm.com .unimplemented() 307712479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDEVID0) 307912479SCurtis.Dunham@arm.com .unimplemented() 308012479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 308112479SCurtis.Dunham@arm.com InitReg(MISCREG_TEECR) 308212479SCurtis.Dunham@arm.com .unimplemented() 308312479SCurtis.Dunham@arm.com .allPrivileges(); 308412479SCurtis.Dunham@arm.com InitReg(MISCREG_JIDR) 308512479SCurtis.Dunham@arm.com .allPrivileges(); 308612479SCurtis.Dunham@arm.com InitReg(MISCREG_TEEHBR) 308712479SCurtis.Dunham@arm.com .allPrivileges(); 308812479SCurtis.Dunham@arm.com InitReg(MISCREG_JOSCR) 308912479SCurtis.Dunham@arm.com .allPrivileges(); 309012479SCurtis.Dunham@arm.com InitReg(MISCREG_JMCR) 309112479SCurtis.Dunham@arm.com .allPrivileges(); 309212479SCurtis.Dunham@arm.com 309312479SCurtis.Dunham@arm.com // AArch32 CP15 registers 309412479SCurtis.Dunham@arm.com InitReg(MISCREG_MIDR) 309512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 309612479SCurtis.Dunham@arm.com InitReg(MISCREG_CTR) 309712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 309812479SCurtis.Dunham@arm.com InitReg(MISCREG_TCMTR) 309912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBTR) 310112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310212479SCurtis.Dunham@arm.com InitReg(MISCREG_MPIDR) 310312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310412479SCurtis.Dunham@arm.com InitReg(MISCREG_REVIDR) 310512479SCurtis.Dunham@arm.com .unimplemented() 310612479SCurtis.Dunham@arm.com .warnNotFail() 310712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR0) 310912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR1) 311112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_DFR0) 311312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AFR0) 311512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR0) 311712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR1) 311912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR2) 312112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR3) 312312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR0) 312512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR1) 312712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR2) 312912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR3) 313112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR4) 313312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR5) 313512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313612479SCurtis.Dunham@arm.com InitReg(MISCREG_CCSIDR) 313712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313812479SCurtis.Dunham@arm.com InitReg(MISCREG_CLIDR) 313912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 314012479SCurtis.Dunham@arm.com InitReg(MISCREG_AIDR) 314112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 314212479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR) 314312479SCurtis.Dunham@arm.com .banked(); 314412479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR_NS) 314512479SCurtis.Dunham@arm.com .bankedChild() 314612661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 314712479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 314812479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR_S) 314912479SCurtis.Dunham@arm.com .bankedChild() 315012479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 315112479SCurtis.Dunham@arm.com InitReg(MISCREG_VPIDR) 315212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 315312479SCurtis.Dunham@arm.com InitReg(MISCREG_VMPIDR) 315412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 315512479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR) 315613502SCurtis.Dunham@arm.com .banked() 315713502SCurtis.Dunham@arm.com // readMiscRegNoEffect() uses this metadata 315813502SCurtis.Dunham@arm.com // despite using children (below) as backing store 315913502SCurtis.Dunham@arm.com .res0(0x8d22c600) 316013502SCurtis.Dunham@arm.com .res1(0x00400800 | (SPAN ? 0 : 0x800000) 316113502SCurtis.Dunham@arm.com | (LSMAOE ? 0 : 0x10) 316213502SCurtis.Dunham@arm.com | (nTLSMD ? 0 : 0x8)); 316312479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_NS) 316412479SCurtis.Dunham@arm.com .bankedChild() 316512661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 316612479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 316712479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_S) 316812479SCurtis.Dunham@arm.com .bankedChild() 316912479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 317012479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR) 317112479SCurtis.Dunham@arm.com .banked(); 317212479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_NS) 317312479SCurtis.Dunham@arm.com .bankedChild() 317412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 317512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 317612479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_S) 317712479SCurtis.Dunham@arm.com .bankedChild() 317812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 317912479SCurtis.Dunham@arm.com InitReg(MISCREG_CPACR) 318012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 318112479SCurtis.Dunham@arm.com InitReg(MISCREG_SCR) 318212479SCurtis.Dunham@arm.com .mon().secure().exceptUserMode() 318312479SCurtis.Dunham@arm.com .res0(0xff40) // [31:16], [6] 318412479SCurtis.Dunham@arm.com .res1(0x0030); // [5:4] 318512479SCurtis.Dunham@arm.com InitReg(MISCREG_SDER) 318612479SCurtis.Dunham@arm.com .mon(); 318712479SCurtis.Dunham@arm.com InitReg(MISCREG_NSACR) 318812479SCurtis.Dunham@arm.com .allPrivileges().hypWrite(0).privNonSecureWrite(0).exceptUserMode(); 318912479SCurtis.Dunham@arm.com InitReg(MISCREG_HSCTLR) 319013502SCurtis.Dunham@arm.com .hyp().monNonSecure() 319113502SCurtis.Dunham@arm.com .res0(0x0512c7c0 | (EnDB ? 0 : 0x2000) 319213502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 319313502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 319413502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 319513502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 319613502SCurtis.Dunham@arm.com .res1(0x30c50830); 319712479SCurtis.Dunham@arm.com InitReg(MISCREG_HACTLR) 319812479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 319912479SCurtis.Dunham@arm.com InitReg(MISCREG_HCR) 320012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320112479SCurtis.Dunham@arm.com InitReg(MISCREG_HDCR) 320212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320312479SCurtis.Dunham@arm.com InitReg(MISCREG_HCPTR) 320412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320512479SCurtis.Dunham@arm.com InitReg(MISCREG_HSTR) 320612479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320712479SCurtis.Dunham@arm.com InitReg(MISCREG_HACR) 320812479SCurtis.Dunham@arm.com .unimplemented() 320912479SCurtis.Dunham@arm.com .warnNotFail() 321012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 321112479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0) 321212479SCurtis.Dunham@arm.com .banked(); 321312479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_NS) 321412479SCurtis.Dunham@arm.com .bankedChild() 321512661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 321612479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 321712479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_S) 321812479SCurtis.Dunham@arm.com .bankedChild() 321912479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 322012479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1) 322112479SCurtis.Dunham@arm.com .banked(); 322212479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1_NS) 322312479SCurtis.Dunham@arm.com .bankedChild() 322412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 322512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 322612479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1_S) 322712479SCurtis.Dunham@arm.com .bankedChild() 322812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 322912479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBCR) 323012479SCurtis.Dunham@arm.com .banked(); 323112479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBCR_NS) 323212479SCurtis.Dunham@arm.com .bankedChild() 323312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 323412479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 323512479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBCR_S) 323612479SCurtis.Dunham@arm.com .bankedChild() 323712479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 323812479SCurtis.Dunham@arm.com InitReg(MISCREG_HTCR) 323912479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 324012479SCurtis.Dunham@arm.com InitReg(MISCREG_VTCR) 324112479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 324212479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR) 324312479SCurtis.Dunham@arm.com .banked(); 324412479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR_NS) 324512479SCurtis.Dunham@arm.com .bankedChild() 324612661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 324712479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 324812479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR_S) 324912479SCurtis.Dunham@arm.com .bankedChild() 325012479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 325112479SCurtis.Dunham@arm.com InitReg(MISCREG_DFSR) 325212479SCurtis.Dunham@arm.com .banked(); 325312479SCurtis.Dunham@arm.com InitReg(MISCREG_DFSR_NS) 325412479SCurtis.Dunham@arm.com .bankedChild() 325512661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 325612479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 325712479SCurtis.Dunham@arm.com InitReg(MISCREG_DFSR_S) 325812479SCurtis.Dunham@arm.com .bankedChild() 325912479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 326012479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR) 326112479SCurtis.Dunham@arm.com .banked(); 326212479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR_NS) 326312479SCurtis.Dunham@arm.com .bankedChild() 326412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 326512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 326612479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR_S) 326712479SCurtis.Dunham@arm.com .bankedChild() 326812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 326912479SCurtis.Dunham@arm.com InitReg(MISCREG_ADFSR) 327012479SCurtis.Dunham@arm.com .unimplemented() 327112479SCurtis.Dunham@arm.com .warnNotFail() 327212479SCurtis.Dunham@arm.com .banked(); 327312479SCurtis.Dunham@arm.com InitReg(MISCREG_ADFSR_NS) 327412479SCurtis.Dunham@arm.com .unimplemented() 327512479SCurtis.Dunham@arm.com .warnNotFail() 327612479SCurtis.Dunham@arm.com .bankedChild() 327712661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 327812479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 327912479SCurtis.Dunham@arm.com InitReg(MISCREG_ADFSR_S) 328012479SCurtis.Dunham@arm.com .unimplemented() 328112479SCurtis.Dunham@arm.com .warnNotFail() 328212479SCurtis.Dunham@arm.com .bankedChild() 328312479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 328412479SCurtis.Dunham@arm.com InitReg(MISCREG_AIFSR) 328512479SCurtis.Dunham@arm.com .unimplemented() 328612479SCurtis.Dunham@arm.com .warnNotFail() 328712479SCurtis.Dunham@arm.com .banked(); 328812479SCurtis.Dunham@arm.com InitReg(MISCREG_AIFSR_NS) 328912479SCurtis.Dunham@arm.com .unimplemented() 329012479SCurtis.Dunham@arm.com .warnNotFail() 329112479SCurtis.Dunham@arm.com .bankedChild() 329212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 329312479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 329412479SCurtis.Dunham@arm.com InitReg(MISCREG_AIFSR_S) 329512479SCurtis.Dunham@arm.com .unimplemented() 329612479SCurtis.Dunham@arm.com .warnNotFail() 329712479SCurtis.Dunham@arm.com .bankedChild() 329812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 329912479SCurtis.Dunham@arm.com InitReg(MISCREG_HADFSR) 330012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 330112479SCurtis.Dunham@arm.com InitReg(MISCREG_HAIFSR) 330212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 330312479SCurtis.Dunham@arm.com InitReg(MISCREG_HSR) 330412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 330512479SCurtis.Dunham@arm.com InitReg(MISCREG_DFAR) 330612479SCurtis.Dunham@arm.com .banked(); 330712479SCurtis.Dunham@arm.com InitReg(MISCREG_DFAR_NS) 330812479SCurtis.Dunham@arm.com .bankedChild() 330912661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 331012479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 331112479SCurtis.Dunham@arm.com InitReg(MISCREG_DFAR_S) 331212479SCurtis.Dunham@arm.com .bankedChild() 331312479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 331412479SCurtis.Dunham@arm.com InitReg(MISCREG_IFAR) 331512479SCurtis.Dunham@arm.com .banked(); 331612479SCurtis.Dunham@arm.com InitReg(MISCREG_IFAR_NS) 331712479SCurtis.Dunham@arm.com .bankedChild() 331812661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 331912479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 332012479SCurtis.Dunham@arm.com InitReg(MISCREG_IFAR_S) 332112479SCurtis.Dunham@arm.com .bankedChild() 332212479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 332312479SCurtis.Dunham@arm.com InitReg(MISCREG_HDFAR) 332412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 332512479SCurtis.Dunham@arm.com InitReg(MISCREG_HIFAR) 332612479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 332712479SCurtis.Dunham@arm.com InitReg(MISCREG_HPFAR) 332812479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 332912479SCurtis.Dunham@arm.com InitReg(MISCREG_ICIALLUIS) 333012479SCurtis.Dunham@arm.com .unimplemented() 333112479SCurtis.Dunham@arm.com .warnNotFail() 333212479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 333312479SCurtis.Dunham@arm.com InitReg(MISCREG_BPIALLIS) 333412479SCurtis.Dunham@arm.com .unimplemented() 333512479SCurtis.Dunham@arm.com .warnNotFail() 333612479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 333712479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR) 333812479SCurtis.Dunham@arm.com .banked(); 333912479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR_NS) 334012479SCurtis.Dunham@arm.com .bankedChild() 334112661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 334212479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 334312479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR_S) 334412479SCurtis.Dunham@arm.com .bankedChild() 334512479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 334612479SCurtis.Dunham@arm.com InitReg(MISCREG_ICIALLU) 334712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 334812479SCurtis.Dunham@arm.com InitReg(MISCREG_ICIMVAU) 334912479SCurtis.Dunham@arm.com .unimplemented() 335012479SCurtis.Dunham@arm.com .warnNotFail() 335112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 335212479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15ISB) 335312479SCurtis.Dunham@arm.com .writes(1); 335412479SCurtis.Dunham@arm.com InitReg(MISCREG_BPIALL) 335512479SCurtis.Dunham@arm.com .unimplemented() 335612479SCurtis.Dunham@arm.com .warnNotFail() 335712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 335812479SCurtis.Dunham@arm.com InitReg(MISCREG_BPIMVA) 335912479SCurtis.Dunham@arm.com .unimplemented() 336012479SCurtis.Dunham@arm.com .warnNotFail() 336112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 336212479SCurtis.Dunham@arm.com InitReg(MISCREG_DCIMVAC) 336312479SCurtis.Dunham@arm.com .unimplemented() 336412479SCurtis.Dunham@arm.com .warnNotFail() 336512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 336612479SCurtis.Dunham@arm.com InitReg(MISCREG_DCISW) 336712479SCurtis.Dunham@arm.com .unimplemented() 336812479SCurtis.Dunham@arm.com .warnNotFail() 336912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337012479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CPR) 337112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337212479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CPW) 337312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337412479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CUR) 337512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337612479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CUW) 337712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337812479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOPR) 337912479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338012479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOPW) 338112479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338212479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOUR) 338312479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338412479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOUW) 338512479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338612479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCMVAC) 338712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 338812479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCSW) 338912479SCurtis.Dunham@arm.com .unimplemented() 339012479SCurtis.Dunham@arm.com .warnNotFail() 339112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 339212479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15DSB) 339312479SCurtis.Dunham@arm.com .writes(1); 339412479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15DMB) 339512479SCurtis.Dunham@arm.com .writes(1); 339612479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCMVAU) 339712479SCurtis.Dunham@arm.com .unimplemented() 339812479SCurtis.Dunham@arm.com .warnNotFail() 339912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 340012479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCIMVAC) 340112479SCurtis.Dunham@arm.com .unimplemented() 340212479SCurtis.Dunham@arm.com .warnNotFail() 340312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 340412479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCISW) 340512479SCurtis.Dunham@arm.com .unimplemented() 340612479SCurtis.Dunham@arm.com .warnNotFail() 340712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 340812479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1HR) 340912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 341012479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1HW) 341112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 341212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLIS) 341312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAIS) 341512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIASIDIS) 341712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAAIS) 341912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVALIS) 342112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAALIS) 342312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342412479SCurtis.Dunham@arm.com InitReg(MISCREG_ITLBIALL) 342512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342612479SCurtis.Dunham@arm.com InitReg(MISCREG_ITLBIMVA) 342712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342812479SCurtis.Dunham@arm.com InitReg(MISCREG_ITLBIASID) 342912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343012479SCurtis.Dunham@arm.com InitReg(MISCREG_DTLBIALL) 343112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343212479SCurtis.Dunham@arm.com InitReg(MISCREG_DTLBIMVA) 343312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343412479SCurtis.Dunham@arm.com InitReg(MISCREG_DTLBIASID) 343512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALL) 343712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVA) 343912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIASID) 344112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAA) 344312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAL) 344512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAAL) 344712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2IS) 344912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2LIS) 345112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLHIS) 345312479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAHIS) 345512479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLNSNHIS) 345712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVALHIS) 345912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2) 346112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2L) 346312479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLH) 346512479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAH) 346712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLNSNH) 346912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 347012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVALH) 347112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 347212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCR) 347312479SCurtis.Dunham@arm.com .allPrivileges(); 347412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENSET) 347512479SCurtis.Dunham@arm.com .allPrivileges(); 347612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENCLR) 347712479SCurtis.Dunham@arm.com .allPrivileges(); 347812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSR) 347912479SCurtis.Dunham@arm.com .allPrivileges(); 348012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSWINC) 348112479SCurtis.Dunham@arm.com .allPrivileges(); 348212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSELR) 348312479SCurtis.Dunham@arm.com .allPrivileges(); 348412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID0) 348512479SCurtis.Dunham@arm.com .allPrivileges(); 348612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID1) 348712479SCurtis.Dunham@arm.com .allPrivileges(); 348812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCNTR) 348912479SCurtis.Dunham@arm.com .allPrivileges(); 349012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVTYPER) 349112479SCurtis.Dunham@arm.com .allPrivileges(); 349212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCFILTR) 349312479SCurtis.Dunham@arm.com .allPrivileges(); 349412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVCNTR) 349512479SCurtis.Dunham@arm.com .allPrivileges(); 349612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMUSERENR) 349712479SCurtis.Dunham@arm.com .allPrivileges().userNonSecureWrite(0).userSecureWrite(0); 349812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENSET) 349912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 350012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENCLR) 350112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 350212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSSET) 350312479SCurtis.Dunham@arm.com .unimplemented() 350412479SCurtis.Dunham@arm.com .allPrivileges(); 350512479SCurtis.Dunham@arm.com InitReg(MISCREG_L2CTLR) 350612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 350712479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ECTLR) 350812479SCurtis.Dunham@arm.com .unimplemented() 350912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 351012479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR) 351112479SCurtis.Dunham@arm.com .banked(); 351212479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_NS) 351312479SCurtis.Dunham@arm.com .bankedChild() 351412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 351512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 351612479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_S) 351712479SCurtis.Dunham@arm.com .bankedChild() 351812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 351912479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR0) 352012479SCurtis.Dunham@arm.com .banked(); 352112479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR0_NS) 352212479SCurtis.Dunham@arm.com .bankedChild() 352312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 352412479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 352512479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR0_S) 352612479SCurtis.Dunham@arm.com .bankedChild() 352712479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 352812479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR) 352912479SCurtis.Dunham@arm.com .banked(); 353012479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_NS) 353112479SCurtis.Dunham@arm.com .bankedChild() 353212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 353312479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 353412479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_S) 353512479SCurtis.Dunham@arm.com .bankedChild() 353612479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 353712479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR1) 353812479SCurtis.Dunham@arm.com .banked(); 353912479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR1_NS) 354012479SCurtis.Dunham@arm.com .bankedChild() 354112661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 354212479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 354312479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR1_S) 354412479SCurtis.Dunham@arm.com .bankedChild() 354512479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 354612479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR0) 354712479SCurtis.Dunham@arm.com .banked(); 354812479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR0_NS) 354912479SCurtis.Dunham@arm.com .bankedChild() 355012661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 355112479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 355212479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR0_S) 355312479SCurtis.Dunham@arm.com .bankedChild() 355412479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 355512479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR1) 355612479SCurtis.Dunham@arm.com .banked(); 355712479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR1_NS) 355812479SCurtis.Dunham@arm.com .bankedChild() 355912661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 356012479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 356112479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR1_S) 356212479SCurtis.Dunham@arm.com .bankedChild() 356312479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 356412479SCurtis.Dunham@arm.com InitReg(MISCREG_HMAIR0) 356512479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 356612479SCurtis.Dunham@arm.com InitReg(MISCREG_HMAIR1) 356712479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 356812479SCurtis.Dunham@arm.com InitReg(MISCREG_HAMAIR0) 356912479SCurtis.Dunham@arm.com .unimplemented() 357012479SCurtis.Dunham@arm.com .warnNotFail() 357112479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 357212479SCurtis.Dunham@arm.com InitReg(MISCREG_HAMAIR1) 357312479SCurtis.Dunham@arm.com .unimplemented() 357412479SCurtis.Dunham@arm.com .warnNotFail() 357512479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 357612479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR) 357712479SCurtis.Dunham@arm.com .banked(); 357812479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_NS) 357912479SCurtis.Dunham@arm.com .bankedChild() 358012661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 358112479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 358212479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_S) 358312479SCurtis.Dunham@arm.com .bankedChild() 358412479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 358512479SCurtis.Dunham@arm.com InitReg(MISCREG_MVBAR) 358613395Sgiacomo.travaglini@arm.com .mon().secure() 358713395Sgiacomo.travaglini@arm.com .hypRead(FullSystem && system->highestEL() == EL2) 358813395Sgiacomo.travaglini@arm.com .privRead(FullSystem && system->highestEL() == EL1) 358913395Sgiacomo.travaglini@arm.com .exceptUserMode(); 359012479SCurtis.Dunham@arm.com InitReg(MISCREG_RMR) 359112479SCurtis.Dunham@arm.com .unimplemented() 359212479SCurtis.Dunham@arm.com .mon().secure().exceptUserMode(); 359312479SCurtis.Dunham@arm.com InitReg(MISCREG_ISR) 359412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 359512479SCurtis.Dunham@arm.com InitReg(MISCREG_HVBAR) 359613502SCurtis.Dunham@arm.com .hyp().monNonSecure() 359713502SCurtis.Dunham@arm.com .res0(0x1f); 359812479SCurtis.Dunham@arm.com InitReg(MISCREG_FCSEIDR) 359912479SCurtis.Dunham@arm.com .unimplemented() 360012479SCurtis.Dunham@arm.com .warnNotFail() 360112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 360212479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR) 360312479SCurtis.Dunham@arm.com .banked(); 360412479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_NS) 360512479SCurtis.Dunham@arm.com .bankedChild() 360612661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 360712479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 360812479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_S) 360912479SCurtis.Dunham@arm.com .bankedChild() 361012479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 361112479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURW) 361212479SCurtis.Dunham@arm.com .banked(); 361312479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURW_NS) 361412479SCurtis.Dunham@arm.com .bankedChild() 361512661Sgiacomo.travaglini@arm.com .allPrivileges() 361612661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 361712661Sgiacomo.travaglini@arm.com .monSecure(0); 361812479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURW_S) 361912479SCurtis.Dunham@arm.com .bankedChild() 362012479SCurtis.Dunham@arm.com .secure(); 362112479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURO) 362212479SCurtis.Dunham@arm.com .banked(); 362312479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURO_NS) 362412479SCurtis.Dunham@arm.com .bankedChild() 362512661Sgiacomo.travaglini@arm.com .allPrivileges() 362612661Sgiacomo.travaglini@arm.com .userNonSecureWrite(0).userSecureRead(1) 362712661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 362812661Sgiacomo.travaglini@arm.com .monSecure(0); 362912479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURO_S) 363012479SCurtis.Dunham@arm.com .bankedChild() 363112479SCurtis.Dunham@arm.com .secure().userSecureWrite(0); 363212479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRPRW) 363312479SCurtis.Dunham@arm.com .banked(); 363412479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRPRW_NS) 363512479SCurtis.Dunham@arm.com .bankedChild() 363612661Sgiacomo.travaglini@arm.com .nonSecure().exceptUserMode() 363712661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3); 363812479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRPRW_S) 363912479SCurtis.Dunham@arm.com .bankedChild() 364012479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 364112479SCurtis.Dunham@arm.com InitReg(MISCREG_HTPIDR) 364212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 364312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTFRQ) 364412479SCurtis.Dunham@arm.com .unverifiable() 364512479SCurtis.Dunham@arm.com .reads(1).mon(); 364612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTKCTL) 364712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 364812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL) 364912479SCurtis.Dunham@arm.com .banked(); 365012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL_NS) 365112479SCurtis.Dunham@arm.com .bankedChild() 365212661Sgiacomo.travaglini@arm.com .allPrivileges() 365312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 365412661Sgiacomo.travaglini@arm.com .monSecure(0); 365512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL_S) 365612479SCurtis.Dunham@arm.com .bankedChild() 365712479SCurtis.Dunham@arm.com .secure().user(1); 365812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL) 365912479SCurtis.Dunham@arm.com .banked(); 366012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL_NS) 366112479SCurtis.Dunham@arm.com .bankedChild() 366212661Sgiacomo.travaglini@arm.com .allPrivileges() 366312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 366412661Sgiacomo.travaglini@arm.com .monSecure(0); 366512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL_S) 366612479SCurtis.Dunham@arm.com .bankedChild() 366712479SCurtis.Dunham@arm.com .secure().user(1); 366812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_TVAL) 366912479SCurtis.Dunham@arm.com .allPrivileges(); 367012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CTL) 367112479SCurtis.Dunham@arm.com .allPrivileges(); 367212479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHCTL) 367312479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 367412479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_TVAL) 367512479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 367612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CTL) 367712479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 367812479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA0) 367912479SCurtis.Dunham@arm.com .unimplemented() 368012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 368112479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA1) 368212479SCurtis.Dunham@arm.com .unimplemented() 368312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 368412479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA2) 368512479SCurtis.Dunham@arm.com .unimplemented() 368612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 368712479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA3) 368812479SCurtis.Dunham@arm.com .unimplemented() 368912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369012479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA0) 369112479SCurtis.Dunham@arm.com .unimplemented() 369212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369312479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA1) 369412479SCurtis.Dunham@arm.com .unimplemented() 369512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369612479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA2) 369712479SCurtis.Dunham@arm.com .unimplemented() 369812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369912479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA3) 370012479SCurtis.Dunham@arm.com .unimplemented() 370112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 370212479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA4) 370312479SCurtis.Dunham@arm.com .unimplemented() 370412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 370512479SCurtis.Dunham@arm.com InitReg(MISCREG_RAMINDEX) 370612479SCurtis.Dunham@arm.com .unimplemented() 370712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 370812479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ACTLR) 370912479SCurtis.Dunham@arm.com .unimplemented() 371012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 371112479SCurtis.Dunham@arm.com InitReg(MISCREG_CBAR) 371212479SCurtis.Dunham@arm.com .unimplemented() 371312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 371412479SCurtis.Dunham@arm.com InitReg(MISCREG_HTTBR) 371512479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 371612479SCurtis.Dunham@arm.com InitReg(MISCREG_VTTBR) 371712479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 371812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPCT) 371912479SCurtis.Dunham@arm.com .reads(1); 372012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVCT) 372112479SCurtis.Dunham@arm.com .unverifiable() 372212479SCurtis.Dunham@arm.com .reads(1); 372312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL) 372412479SCurtis.Dunham@arm.com .banked(); 372512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL_NS) 372612479SCurtis.Dunham@arm.com .bankedChild() 372712661Sgiacomo.travaglini@arm.com .allPrivileges() 372812661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 372912661Sgiacomo.travaglini@arm.com .monSecure(0); 373012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL_S) 373112479SCurtis.Dunham@arm.com .bankedChild() 373212479SCurtis.Dunham@arm.com .secure().user(1); 373312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CVAL) 373412479SCurtis.Dunham@arm.com .allPrivileges(); 373512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVOFF) 373612479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 373712479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CVAL) 373812479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 373912479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUMERRSR) 374012479SCurtis.Dunham@arm.com .unimplemented() 374112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 374212479SCurtis.Dunham@arm.com InitReg(MISCREG_L2MERRSR) 374312479SCurtis.Dunham@arm.com .unimplemented() 374412479SCurtis.Dunham@arm.com .warnNotFail() 374512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 374612479SCurtis.Dunham@arm.com 374712479SCurtis.Dunham@arm.com // AArch64 registers (Op0=2); 374812479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCCINT_EL1) 374912479SCurtis.Dunham@arm.com .allPrivileges(); 375012479SCurtis.Dunham@arm.com InitReg(MISCREG_OSDTRRX_EL1) 375112479SCurtis.Dunham@arm.com .allPrivileges() 375212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDTRRXext); 375312479SCurtis.Dunham@arm.com InitReg(MISCREG_MDSCR_EL1) 375412479SCurtis.Dunham@arm.com .allPrivileges() 375512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDSCRext); 375612479SCurtis.Dunham@arm.com InitReg(MISCREG_OSDTRTX_EL1) 375712479SCurtis.Dunham@arm.com .allPrivileges() 375812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDTRTXext); 375912479SCurtis.Dunham@arm.com InitReg(MISCREG_OSECCR_EL1) 376012479SCurtis.Dunham@arm.com .allPrivileges() 376112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSECCR); 376212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR0_EL1) 376312479SCurtis.Dunham@arm.com .allPrivileges() 376412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR0 /*, MISCREG_DBGBXVR0 */); 376512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR1_EL1) 376612479SCurtis.Dunham@arm.com .allPrivileges() 376712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR1 /*, MISCREG_DBGBXVR1 */); 376812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR2_EL1) 376912479SCurtis.Dunham@arm.com .allPrivileges() 377012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR2 /*, MISCREG_DBGBXVR2 */); 377112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR3_EL1) 377212479SCurtis.Dunham@arm.com .allPrivileges() 377312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR3 /*, MISCREG_DBGBXVR3 */); 377412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR4_EL1) 377512479SCurtis.Dunham@arm.com .allPrivileges() 377612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR4 /*, MISCREG_DBGBXVR4 */); 377712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR5_EL1) 377812479SCurtis.Dunham@arm.com .allPrivileges() 377912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR5 /*, MISCREG_DBGBXVR5 */); 378012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR0_EL1) 378112479SCurtis.Dunham@arm.com .allPrivileges() 378212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR0); 378312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR1_EL1) 378412479SCurtis.Dunham@arm.com .allPrivileges() 378512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR1); 378612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR2_EL1) 378712479SCurtis.Dunham@arm.com .allPrivileges() 378812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR2); 378912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR3_EL1) 379012479SCurtis.Dunham@arm.com .allPrivileges() 379112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR3); 379212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR4_EL1) 379312479SCurtis.Dunham@arm.com .allPrivileges() 379412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR4); 379512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR5_EL1) 379612479SCurtis.Dunham@arm.com .allPrivileges() 379712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR5); 379812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR0_EL1) 379912479SCurtis.Dunham@arm.com .allPrivileges() 380012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR0); 380112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR1_EL1) 380212479SCurtis.Dunham@arm.com .allPrivileges() 380312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR1); 380412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR2_EL1) 380512479SCurtis.Dunham@arm.com .allPrivileges() 380612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR2); 380712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR3_EL1) 380812479SCurtis.Dunham@arm.com .allPrivileges() 380912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR3); 381012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR0_EL1) 381112479SCurtis.Dunham@arm.com .allPrivileges() 381212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR0); 381312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR1_EL1) 381412479SCurtis.Dunham@arm.com .allPrivileges() 381512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR1); 381612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR2_EL1) 381712479SCurtis.Dunham@arm.com .allPrivileges() 381812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR2); 381912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR3_EL1) 382012479SCurtis.Dunham@arm.com .allPrivileges() 382112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR3); 382212479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCCSR_EL0) 382312479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 382412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDSCRint); 382512479SCurtis.Dunham@arm.com InitReg(MISCREG_MDDTR_EL0) 382612479SCurtis.Dunham@arm.com .allPrivileges(); 382712479SCurtis.Dunham@arm.com InitReg(MISCREG_MDDTRTX_EL0) 382812479SCurtis.Dunham@arm.com .allPrivileges(); 382912479SCurtis.Dunham@arm.com InitReg(MISCREG_MDDTRRX_EL0) 383012479SCurtis.Dunham@arm.com .allPrivileges(); 383112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGVCR32_EL2) 383212479SCurtis.Dunham@arm.com .allPrivileges() 383312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGVCR); 383412479SCurtis.Dunham@arm.com InitReg(MISCREG_MDRAR_EL1) 383512479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 383612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDRAR); 383712479SCurtis.Dunham@arm.com InitReg(MISCREG_OSLAR_EL1) 383812479SCurtis.Dunham@arm.com .allPrivileges().monSecureRead(0).monNonSecureRead(0) 383912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSLAR); 384012479SCurtis.Dunham@arm.com InitReg(MISCREG_OSLSR_EL1) 384112479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 384212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSLSR); 384312479SCurtis.Dunham@arm.com InitReg(MISCREG_OSDLR_EL1) 384412479SCurtis.Dunham@arm.com .allPrivileges() 384512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSDLR); 384612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGPRCR_EL1) 384712479SCurtis.Dunham@arm.com .allPrivileges() 384812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGPRCR); 384912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMSET_EL1) 385012479SCurtis.Dunham@arm.com .allPrivileges() 385112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGCLAIMSET); 385212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMCLR_EL1) 385312479SCurtis.Dunham@arm.com .allPrivileges() 385412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGCLAIMCLR); 385512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGAUTHSTATUS_EL1) 385612479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 385712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGAUTHSTATUS); 385812479SCurtis.Dunham@arm.com InitReg(MISCREG_TEECR32_EL1); 385912479SCurtis.Dunham@arm.com InitReg(MISCREG_TEEHBR32_EL1); 386012479SCurtis.Dunham@arm.com 386112479SCurtis.Dunham@arm.com // AArch64 registers (Op0=1,3); 386212479SCurtis.Dunham@arm.com InitReg(MISCREG_MIDR_EL1) 386312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 386412479SCurtis.Dunham@arm.com InitReg(MISCREG_MPIDR_EL1) 386512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 386612479SCurtis.Dunham@arm.com InitReg(MISCREG_REVIDR_EL1) 386712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 386812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR0_EL1) 386912690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 387012690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_PFR0); 387112479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR1_EL1) 387212690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 387312690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_PFR1); 387412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_DFR0_EL1) 387512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0) 387612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_ID_DFR0); 387712479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AFR0_EL1) 387812690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 387912690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_AFR0); 388012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR0_EL1) 388112690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388212690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR0); 388312479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR1_EL1) 388412690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388512690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR1); 388612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR2_EL1) 388712690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388812690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR2); 388912479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR3_EL1) 389012690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 389112690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR3); 389212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR0_EL1) 389312690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 389412690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR0); 389512479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR1_EL1) 389612690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 389712690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR1); 389812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR2_EL1) 389912690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390012690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR2); 390112479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR3_EL1) 390212690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390312690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR3); 390412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR4_EL1) 390512690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390612690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR4); 390712479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR5_EL1) 390812690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390912690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR5); 391012479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR0_EL1) 391112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391212479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR1_EL1) 391312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391412479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR2_EL1) 391512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64PFR0_EL1) 391712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64PFR1_EL1) 391912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64DFR0_EL1) 392112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64DFR1_EL1) 392312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64AFR0_EL1) 392512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64AFR1_EL1) 392712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64ISAR0_EL1) 392912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64ISAR1_EL1) 393112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64MMFR0_EL1) 393312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64MMFR1_EL1) 393512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393613116Sgiacomo.travaglini@arm.com InitReg(MISCREG_ID_AA64MMFR2_EL1) 393713116Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0); 393812479SCurtis.Dunham@arm.com InitReg(MISCREG_CCSIDR_EL1) 393912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 394012479SCurtis.Dunham@arm.com InitReg(MISCREG_CLIDR_EL1) 394112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 394212479SCurtis.Dunham@arm.com InitReg(MISCREG_AIDR_EL1) 394312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 394412479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR_EL1) 394512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 394612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CSSELR_NS); 394712479SCurtis.Dunham@arm.com InitReg(MISCREG_CTR_EL0) 394812479SCurtis.Dunham@arm.com .reads(1); 394912479SCurtis.Dunham@arm.com InitReg(MISCREG_DCZID_EL0) 395012479SCurtis.Dunham@arm.com .reads(1); 395112479SCurtis.Dunham@arm.com InitReg(MISCREG_VPIDR_EL2) 395212479SCurtis.Dunham@arm.com .hyp().mon() 395312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VPIDR); 395412479SCurtis.Dunham@arm.com InitReg(MISCREG_VMPIDR_EL2) 395512479SCurtis.Dunham@arm.com .hyp().mon() 395612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VMPIDR); 395712479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_EL1) 395812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 395913502SCurtis.Dunham@arm.com .res0( 0x20440 | (EnDB ? 0 : 0x2000) 396013502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 396113502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 396213502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 396313502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 396413502SCurtis.Dunham@arm.com .res1(0x500800 | (SPAN ? 0 : 0x800000) 396513502SCurtis.Dunham@arm.com | (nTLSMD ? 0 : 0x8000000) 396613502SCurtis.Dunham@arm.com | (LSMAOE ? 0 : 0x10000000)) 396712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SCTLR_NS); 396812479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_EL1) 396912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 397012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_ACTLR_NS); 397112479SCurtis.Dunham@arm.com InitReg(MISCREG_CPACR_EL1) 397212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 397312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CPACR); 397412479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_EL2) 397512479SCurtis.Dunham@arm.com .hyp().mon() 397613502SCurtis.Dunham@arm.com .res0(0x0512c7c0 | (EnDB ? 0 : 0x2000) 397713502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 397813502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 397913502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 398013502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 398113502SCurtis.Dunham@arm.com .res1(0x30c50830) 398212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HSCTLR); 398312479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_EL2) 398412479SCurtis.Dunham@arm.com .hyp().mon() 398512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HACTLR); 398612479SCurtis.Dunham@arm.com InitReg(MISCREG_HCR_EL2) 398712479SCurtis.Dunham@arm.com .hyp().mon() 398812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HCR /*, MISCREG_HCR2*/); 398912479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCR_EL2) 399012479SCurtis.Dunham@arm.com .hyp().mon() 399112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HDCR); 399212479SCurtis.Dunham@arm.com InitReg(MISCREG_CPTR_EL2) 399312479SCurtis.Dunham@arm.com .hyp().mon() 399412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HCPTR); 399512479SCurtis.Dunham@arm.com InitReg(MISCREG_HSTR_EL2) 399612479SCurtis.Dunham@arm.com .hyp().mon() 399712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HSTR); 399812479SCurtis.Dunham@arm.com InitReg(MISCREG_HACR_EL2) 399912479SCurtis.Dunham@arm.com .hyp().mon() 400012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HACR); 400112479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_EL3) 400213502SCurtis.Dunham@arm.com .mon() 400313502SCurtis.Dunham@arm.com .res0(0x0512c7c0 | (EnDB ? 0 : 0x2000) 400413502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 400513502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 400613502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 400713502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 400813502SCurtis.Dunham@arm.com .res1(0x30c50830); 400912479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_EL3) 401012479SCurtis.Dunham@arm.com .mon(); 401112479SCurtis.Dunham@arm.com InitReg(MISCREG_SCR_EL3) 401212479SCurtis.Dunham@arm.com .mon() 401312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SCR); // NAM D7-2005 401412479SCurtis.Dunham@arm.com InitReg(MISCREG_SDER32_EL3) 401512479SCurtis.Dunham@arm.com .mon() 401612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SDER); 401712479SCurtis.Dunham@arm.com InitReg(MISCREG_CPTR_EL3) 401812479SCurtis.Dunham@arm.com .mon(); 401912479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCR_EL3) 402012479SCurtis.Dunham@arm.com .mon(); 402112479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_EL1) 402212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 402312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TTBR0_NS); 402412479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1_EL1) 402512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 402612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TTBR1_NS); 402712479SCurtis.Dunham@arm.com InitReg(MISCREG_TCR_EL1) 402812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 402912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TTBCR_NS); 403012479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_EL2) 403112479SCurtis.Dunham@arm.com .hyp().mon() 403212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HTTBR); 403312675Sgiacomo.travaglini@arm.com InitReg(MISCREG_TTBR1_EL2) 403412709Sgiacomo.travaglini@arm.com .hyp().mon(); 403512479SCurtis.Dunham@arm.com InitReg(MISCREG_TCR_EL2) 403612479SCurtis.Dunham@arm.com .hyp().mon() 403712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HTCR); 403812479SCurtis.Dunham@arm.com InitReg(MISCREG_VTTBR_EL2) 403912479SCurtis.Dunham@arm.com .hyp().mon() 404012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VTTBR); 404112479SCurtis.Dunham@arm.com InitReg(MISCREG_VTCR_EL2) 404212479SCurtis.Dunham@arm.com .hyp().mon() 404312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VTCR); 404412479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_EL3) 404512479SCurtis.Dunham@arm.com .mon(); 404612479SCurtis.Dunham@arm.com InitReg(MISCREG_TCR_EL3) 404712479SCurtis.Dunham@arm.com .mon(); 404812479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR32_EL2) 404912479SCurtis.Dunham@arm.com .hyp().mon() 405012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DACR_NS); 405112479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_EL1) 405212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 405312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SPSR_SVC); // NAM C5.2.17 SPSR_EL1 405412479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_EL1) 405512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 405612479SCurtis.Dunham@arm.com InitReg(MISCREG_SP_EL0) 405712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 405812479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSEL) 405912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 406012479SCurtis.Dunham@arm.com InitReg(MISCREG_CURRENTEL) 406112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 406214128Sgiacomo.travaglini@arm.com InitReg(MISCREG_PAN) 406314128Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode() 406414128Sgiacomo.travaglini@arm.com .implemented(havePAN); 406512479SCurtis.Dunham@arm.com InitReg(MISCREG_NZCV) 406612479SCurtis.Dunham@arm.com .allPrivileges(); 406712479SCurtis.Dunham@arm.com InitReg(MISCREG_DAIF) 406812479SCurtis.Dunham@arm.com .allPrivileges(); 406912479SCurtis.Dunham@arm.com InitReg(MISCREG_FPCR) 407012479SCurtis.Dunham@arm.com .allPrivileges(); 407112479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSR) 407212479SCurtis.Dunham@arm.com .allPrivileges(); 407312479SCurtis.Dunham@arm.com InitReg(MISCREG_DSPSR_EL0) 407412479SCurtis.Dunham@arm.com .allPrivileges(); 407512479SCurtis.Dunham@arm.com InitReg(MISCREG_DLR_EL0) 407612479SCurtis.Dunham@arm.com .allPrivileges(); 407712479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_EL2) 407812479SCurtis.Dunham@arm.com .hyp().mon() 407912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SPSR_HYP); // NAM C5.2.18 SPSR_EL2 408012479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_EL2) 408112479SCurtis.Dunham@arm.com .hyp().mon(); 408212479SCurtis.Dunham@arm.com InitReg(MISCREG_SP_EL1) 408312479SCurtis.Dunham@arm.com .hyp().mon(); 408412479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_IRQ_AA64) 408512479SCurtis.Dunham@arm.com .hyp().mon(); 408612479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_ABT_AA64) 408712479SCurtis.Dunham@arm.com .hyp().mon(); 408812479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_UND_AA64) 408912479SCurtis.Dunham@arm.com .hyp().mon(); 409012479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_FIQ_AA64) 409112479SCurtis.Dunham@arm.com .hyp().mon(); 409212479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_EL3) 409312479SCurtis.Dunham@arm.com .mon() 409412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SPSR_MON); // NAM C5.2.19 SPSR_EL3 409512479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_EL3) 409612479SCurtis.Dunham@arm.com .mon(); 409712479SCurtis.Dunham@arm.com InitReg(MISCREG_SP_EL2) 409812479SCurtis.Dunham@arm.com .mon(); 409912479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR0_EL1) 410012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 410112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_ADFSR_NS); 410212479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR1_EL1) 410312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 410412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_AIFSR_NS); 410512479SCurtis.Dunham@arm.com InitReg(MISCREG_ESR_EL1) 410612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 410712479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR32_EL2) 410812479SCurtis.Dunham@arm.com .hyp().mon() 410912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_IFSR_NS); 411012479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR0_EL2) 411112479SCurtis.Dunham@arm.com .hyp().mon() 411212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HADFSR); 411312479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR1_EL2) 411412479SCurtis.Dunham@arm.com .hyp().mon() 411512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HAIFSR); 411612479SCurtis.Dunham@arm.com InitReg(MISCREG_ESR_EL2) 411712479SCurtis.Dunham@arm.com .hyp().mon() 411812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HSR); 411912479SCurtis.Dunham@arm.com InitReg(MISCREG_FPEXC32_EL2) 412012669Schuan.zhu@arm.com .hyp().mon().mapsTo(MISCREG_FPEXC); 412112479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR0_EL3) 412212479SCurtis.Dunham@arm.com .mon(); 412312479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR1_EL3) 412412479SCurtis.Dunham@arm.com .mon(); 412512479SCurtis.Dunham@arm.com InitReg(MISCREG_ESR_EL3) 412612479SCurtis.Dunham@arm.com .mon(); 412712479SCurtis.Dunham@arm.com InitReg(MISCREG_FAR_EL1) 412812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 412912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DFAR_NS, MISCREG_IFAR_NS); 413012479SCurtis.Dunham@arm.com InitReg(MISCREG_FAR_EL2) 413112479SCurtis.Dunham@arm.com .hyp().mon() 413212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HDFAR, MISCREG_HIFAR); 413312479SCurtis.Dunham@arm.com InitReg(MISCREG_HPFAR_EL2) 413412479SCurtis.Dunham@arm.com .hyp().mon() 413512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HPFAR); 413612479SCurtis.Dunham@arm.com InitReg(MISCREG_FAR_EL3) 413712479SCurtis.Dunham@arm.com .mon(); 413812479SCurtis.Dunham@arm.com InitReg(MISCREG_IC_IALLUIS) 413912479SCurtis.Dunham@arm.com .warnNotFail() 414012479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 414112479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR_EL1) 414212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 414312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PAR_NS); 414412479SCurtis.Dunham@arm.com InitReg(MISCREG_IC_IALLU) 414512479SCurtis.Dunham@arm.com .warnNotFail() 414612479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 414712479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_IVAC_Xt) 414812479SCurtis.Dunham@arm.com .warnNotFail() 414912502Snikos.nikoleris@arm.com .writes(1).exceptUserMode(); 415012479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_ISW_Xt) 415112479SCurtis.Dunham@arm.com .warnNotFail() 415212479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415312479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E1R_Xt) 415412479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415512479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E1W_Xt) 415612479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415712479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E0R_Xt) 415812479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415912479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E0W_Xt) 416012479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 416112479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CSW_Xt) 416212479SCurtis.Dunham@arm.com .warnNotFail() 416312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 416412479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CISW_Xt) 416512479SCurtis.Dunham@arm.com .warnNotFail() 416612479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 416712479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_ZVA_Xt) 416812479SCurtis.Dunham@arm.com .warnNotFail() 416912479SCurtis.Dunham@arm.com .writes(1).userSecureWrite(0); 417012479SCurtis.Dunham@arm.com InitReg(MISCREG_IC_IVAU_Xt) 417112479SCurtis.Dunham@arm.com .writes(1); 417212479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CVAC_Xt) 417312479SCurtis.Dunham@arm.com .warnNotFail() 417412479SCurtis.Dunham@arm.com .writes(1); 417512479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CVAU_Xt) 417612479SCurtis.Dunham@arm.com .warnNotFail() 417712479SCurtis.Dunham@arm.com .writes(1); 417812479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CIVAC_Xt) 417912479SCurtis.Dunham@arm.com .warnNotFail() 418012479SCurtis.Dunham@arm.com .writes(1); 418112479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E2R_Xt) 418212479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 418312479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E2W_Xt) 418412479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 418512479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E1R_Xt) 418612479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 418712479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E1W_Xt) 418812479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 418912479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E0R_Xt) 419012479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 419112479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E0W_Xt) 419212479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 419312479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E3R_Xt) 419412479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 419512479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E3W_Xt) 419612479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 419712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLE1IS) 419812479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 419912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE1IS_Xt) 420012479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420112479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ASIDE1IS_Xt) 420212479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420312479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAAE1IS_Xt) 420412479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420512479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE1IS_Xt) 420612479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAALE1IS_Xt) 420812479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLE1) 421012479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421112479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE1_Xt) 421212479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421312479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ASIDE1_Xt) 421412479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421512479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAAE1_Xt) 421612479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE1_Xt) 421812479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAALE1_Xt) 422012479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 422112479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2E1IS_Xt) 422212479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 422312479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2LE1IS_Xt) 422412479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 422512479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE2IS) 422612479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 422712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE2IS_Xt) 422812479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 422912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE1IS) 423012479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423112479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE2IS_Xt) 423212479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 423312479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLS12E1IS) 423412479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423512479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2E1_Xt) 423612479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2LE1_Xt) 423812479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE2) 424012479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 424112479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE2_Xt) 424212479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 424312479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE1) 424412479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 424512479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE2_Xt) 424612479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 424712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLS12E1) 424812479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 424912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE3IS) 425012479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425112479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE3IS_Xt) 425212479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425312479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE3IS_Xt) 425412479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425512479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE3) 425612479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425712479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE3_Xt) 425812479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425912479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE3_Xt) 426012479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 426112479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENSET_EL1) 426212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 426312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMINTENSET); 426412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENCLR_EL1) 426512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 426612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMINTENCLR); 426712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCR_EL0) 426812479SCurtis.Dunham@arm.com .allPrivileges() 426912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCR); 427012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENSET_EL0) 427112479SCurtis.Dunham@arm.com .allPrivileges() 427212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCNTENSET); 427312479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENCLR_EL0) 427412479SCurtis.Dunham@arm.com .allPrivileges() 427512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCNTENCLR); 427612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSCLR_EL0) 427712479SCurtis.Dunham@arm.com .allPrivileges(); 427812479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMOVSCLR); 427912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSWINC_EL0) 428012479SCurtis.Dunham@arm.com .writes(1).user() 428112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMSWINC); 428212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSELR_EL0) 428312479SCurtis.Dunham@arm.com .allPrivileges() 428412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMSELR); 428512479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID0_EL0) 428612479SCurtis.Dunham@arm.com .reads(1).user() 428712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCEID0); 428812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID1_EL0) 428912479SCurtis.Dunham@arm.com .reads(1).user() 429012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCEID1); 429112479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCNTR_EL0) 429212479SCurtis.Dunham@arm.com .allPrivileges() 429312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCCNTR); 429412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVTYPER_EL0) 429512479SCurtis.Dunham@arm.com .allPrivileges() 429612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMXEVTYPER); 429712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCFILTR_EL0) 429812479SCurtis.Dunham@arm.com .allPrivileges(); 429912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVCNTR_EL0) 430012479SCurtis.Dunham@arm.com .allPrivileges() 430112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMXEVCNTR); 430212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMUSERENR_EL0) 430312479SCurtis.Dunham@arm.com .allPrivileges().userNonSecureWrite(0).userSecureWrite(0) 430412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMUSERENR); 430512479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSSET_EL0) 430612479SCurtis.Dunham@arm.com .allPrivileges() 430712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMOVSSET); 430812479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR_EL1) 430912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 431012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PRRR_NS, MISCREG_NMRR_NS); 431112479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR_EL1) 431212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 431312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_AMAIR0_NS, MISCREG_AMAIR1_NS); 431412479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR_EL2) 431512479SCurtis.Dunham@arm.com .hyp().mon() 431612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HMAIR0, MISCREG_HMAIR1); 431712479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR_EL2) 431812479SCurtis.Dunham@arm.com .hyp().mon() 431912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HAMAIR0, MISCREG_HAMAIR1); 432012479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR_EL3) 432112479SCurtis.Dunham@arm.com .mon(); 432212479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR_EL3) 432312479SCurtis.Dunham@arm.com .mon(); 432412479SCurtis.Dunham@arm.com InitReg(MISCREG_L2CTLR_EL1) 432512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 432612479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ECTLR_EL1) 432712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 432812479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_EL1) 432912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 433012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VBAR_NS); 433112479SCurtis.Dunham@arm.com InitReg(MISCREG_RVBAR_EL1) 433212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 433312479SCurtis.Dunham@arm.com InitReg(MISCREG_ISR_EL1) 433412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 433512479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_EL2) 433612479SCurtis.Dunham@arm.com .hyp().mon() 433713502SCurtis.Dunham@arm.com .res0(0x7ff) 433812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HVBAR); 433912479SCurtis.Dunham@arm.com InitReg(MISCREG_RVBAR_EL2) 434012479SCurtis.Dunham@arm.com .mon().hyp().writes(0); 434112479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_EL3) 434212479SCurtis.Dunham@arm.com .mon(); 434312479SCurtis.Dunham@arm.com InitReg(MISCREG_RVBAR_EL3) 434412479SCurtis.Dunham@arm.com .mon().writes(0); 434512479SCurtis.Dunham@arm.com InitReg(MISCREG_RMR_EL3) 434612479SCurtis.Dunham@arm.com .mon(); 434712479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_EL1) 434812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 434912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CONTEXTIDR_NS); 435012479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL1) 435112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 435212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TPIDRPRW_NS); 435312479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL0) 435412479SCurtis.Dunham@arm.com .allPrivileges() 435512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TPIDRURW_NS); 435612479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRRO_EL0) 435712479SCurtis.Dunham@arm.com .allPrivileges().userNonSecureWrite(0).userSecureWrite(0) 435812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TPIDRURO_NS); 435912479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL2) 436012479SCurtis.Dunham@arm.com .hyp().mon() 436112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HTPIDR); 436212479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL3) 436312479SCurtis.Dunham@arm.com .mon(); 436412479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTKCTL_EL1) 436512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 436612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTKCTL); 436712479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTFRQ_EL0) 436812479SCurtis.Dunham@arm.com .reads(1).mon() 436912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTFRQ); 437012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPCT_EL0) 437112479SCurtis.Dunham@arm.com .reads(1) 437212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTPCT); /* 64b */ 437312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVCT_EL0) 437412479SCurtis.Dunham@arm.com .unverifiable() 437512479SCurtis.Dunham@arm.com .reads(1) 437612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTVCT); /* 64b */ 437712479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL_EL0) 437812479SCurtis.Dunham@arm.com .allPrivileges() 437912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTP_TVAL_NS); 438012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL_EL0) 438112479SCurtis.Dunham@arm.com .allPrivileges() 438212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTP_CTL_NS); 438312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL_EL0) 438412479SCurtis.Dunham@arm.com .allPrivileges() 438512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTP_CVAL_NS); /* 64b */ 438612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_TVAL_EL0) 438712479SCurtis.Dunham@arm.com .allPrivileges() 438812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTV_TVAL); 438912479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CTL_EL0) 439012479SCurtis.Dunham@arm.com .allPrivileges() 439112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTV_CTL); 439212479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CVAL_EL0) 439312479SCurtis.Dunham@arm.com .allPrivileges() 439412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTV_CVAL); /* 64b */ 439512479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR0_EL0) 439612479SCurtis.Dunham@arm.com .allPrivileges(); 439712479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR0); 439812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR1_EL0) 439912479SCurtis.Dunham@arm.com .allPrivileges(); 440012479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR1); 440112479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR2_EL0) 440212479SCurtis.Dunham@arm.com .allPrivileges(); 440312479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR2); 440412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR3_EL0) 440512479SCurtis.Dunham@arm.com .allPrivileges(); 440612479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR3); 440712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR4_EL0) 440812479SCurtis.Dunham@arm.com .allPrivileges(); 440912479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR4); 441012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR5_EL0) 441112479SCurtis.Dunham@arm.com .allPrivileges(); 441212479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR5); 441312479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER0_EL0) 441412479SCurtis.Dunham@arm.com .allPrivileges(); 441512479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER0); 441612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER1_EL0) 441712479SCurtis.Dunham@arm.com .allPrivileges(); 441812479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER1); 441912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER2_EL0) 442012479SCurtis.Dunham@arm.com .allPrivileges(); 442112479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER2); 442212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER3_EL0) 442312479SCurtis.Dunham@arm.com .allPrivileges(); 442412479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER3); 442512479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER4_EL0) 442612479SCurtis.Dunham@arm.com .allPrivileges(); 442712479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER4); 442812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER5_EL0) 442912479SCurtis.Dunham@arm.com .allPrivileges(); 443012479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER5); 443112479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVOFF_EL2) 443212479SCurtis.Dunham@arm.com .hyp().mon() 443312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTVOFF); /* 64b */ 443412479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHCTL_EL2) 443512733Sandreas.sandberg@arm.com .mon().hyp() 443612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHCTL); 443712479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_TVAL_EL2) 443812733Sandreas.sandberg@arm.com .mon().hyp() 443912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHP_TVAL); 444012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CTL_EL2) 444112733Sandreas.sandberg@arm.com .mon().hyp() 444212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHP_CTL); 444312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CVAL_EL2) 444412733Sandreas.sandberg@arm.com .mon().hyp() 444512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHP_CVAL); /* 64b */ 444612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPS_TVAL_EL1) 444712733Sandreas.sandberg@arm.com .mon().privSecure(); 444812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPS_CTL_EL1) 444912733Sandreas.sandberg@arm.com .mon().privSecure(); 445012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPS_CVAL_EL1) 445112733Sandreas.sandberg@arm.com .mon().privSecure(); 445212479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA0_EL1) 445312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445412479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA1_EL1) 445512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445612479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA2_EL1) 445712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445812479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA3_EL1) 445912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446012479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA0_EL1) 446112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446212479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA1_EL1) 446312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446412479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA2_EL1) 446512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446612479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA3_EL1) 446712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446812479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA4_EL1) 446912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447012479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ACTLR_EL1) 447112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447212479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUACTLR_EL1) 447312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447412479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUECTLR_EL1) 447512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447612479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUMERRSR_EL1) 447712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447812479SCurtis.Dunham@arm.com InitReg(MISCREG_L2MERRSR_EL1) 447912479SCurtis.Dunham@arm.com .unimplemented() 448012479SCurtis.Dunham@arm.com .warnNotFail() 448112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 448212479SCurtis.Dunham@arm.com InitReg(MISCREG_CBAR_EL1) 448312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 448412479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_EL2) 448512479SCurtis.Dunham@arm.com .mon().hyp(); 448613531Sjairo.balart@metempsy.com 448713531Sjairo.balart@metempsy.com // GICv3 AArch64 448813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_PMR_EL1) 448913531Sjairo.balart@metempsy.com .res0(0xffffff00) // [31:8] 449013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 449113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_PMR); 449213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR0_EL1) 449313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 449413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IAR0); 449513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR0_EL1) 449613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 449713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_EOIR0); 449813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR0_EL1) 449913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 450013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_HPPIR0); 450113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR0_EL1) 450213531Sjairo.balart@metempsy.com .res0(0xfffffff8) // [31:3] 450313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 450413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR0); 450513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R0_EL1) 450613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 450713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R0); 450813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R1_EL1) 450913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 451013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R1); 451113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R2_EL1) 451213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 451313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R2); 451413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R3_EL1) 451513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 451613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R3); 451713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_EL1) 451813531Sjairo.balart@metempsy.com .banked() 451913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R0); 452013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_EL1_NS) 452113531Sjairo.balart@metempsy.com .bankedChild() 452213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 452313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R0_NS); 452413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_EL1_S) 452513531Sjairo.balart@metempsy.com .bankedChild() 452613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 452713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R0_S); 452813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_EL1) 452913531Sjairo.balart@metempsy.com .banked() 453013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R1); 453113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_EL1_NS) 453213531Sjairo.balart@metempsy.com .bankedChild() 453313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 453413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R1_NS); 453513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_EL1_S) 453613531Sjairo.balart@metempsy.com .bankedChild() 453713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 453813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R1_S); 453913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_EL1) 454013531Sjairo.balart@metempsy.com .banked() 454113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R2); 454213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_EL1_NS) 454313531Sjairo.balart@metempsy.com .bankedChild() 454413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 454513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R2_NS); 454613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_EL1_S) 454713531Sjairo.balart@metempsy.com .bankedChild() 454813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 454913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R2_S); 455013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_EL1) 455113531Sjairo.balart@metempsy.com .banked() 455213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R3); 455313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_EL1_NS) 455413531Sjairo.balart@metempsy.com .bankedChild() 455513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 455613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R3_NS); 455713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_EL1_S) 455813531Sjairo.balart@metempsy.com .bankedChild() 455913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 456013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R3_S); 456113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_DIR_EL1) 456213531Sjairo.balart@metempsy.com .res0(0xFF000000) // [31:24] 456313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 456413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_DIR); 456513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_RPR_EL1) 456613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 456713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_RPR); 456813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI1R_EL1) 456913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 457013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SGI1R); 457113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_ASGI1R_EL1) 457213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 457313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_ASGI1R); 457413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI0R_EL1) 457513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 457613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SGI0R); 457713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR1_EL1) 457813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 457913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IAR1); 458013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR1_EL1) 458113531Sjairo.balart@metempsy.com .res0(0xFF000000) // [31:24] 458213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 458313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_EOIR1); 458413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR1_EL1) 458513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 458613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_HPPIR1); 458713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_EL1) 458813531Sjairo.balart@metempsy.com .banked() 458913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR1); 459013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_EL1_NS) 459113531Sjairo.balart@metempsy.com .bankedChild() 459213531Sjairo.balart@metempsy.com .res0(0xfffffff8) // [31:3] 459313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 459413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR1_NS); 459513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_EL1_S) 459613531Sjairo.balart@metempsy.com .bankedChild() 459713531Sjairo.balart@metempsy.com .res0(0xfffffff8) // [31:3] 459813531Sjairo.balart@metempsy.com .secure().exceptUserMode() 459913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR1_S); 460013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL1) 460113531Sjairo.balart@metempsy.com .banked() 460213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_CTLR); 460313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL1_NS) 460413531Sjairo.balart@metempsy.com .bankedChild() 460513531Sjairo.balart@metempsy.com .res0(0xFFFB00BC) // [31:19, 17:16, 7, 5:2] 460613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 460713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_CTLR_NS); 460813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL1_S) 460913531Sjairo.balart@metempsy.com .bankedChild() 461013531Sjairo.balart@metempsy.com .res0(0xFFFB00BC) // [31:19, 17:16, 7, 5:2] 461113531Sjairo.balart@metempsy.com .secure().exceptUserMode() 461213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_CTLR_S); 461313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL1) 461413531Sjairo.balart@metempsy.com .banked() 461513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SRE); 461613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL1_NS) 461713531Sjairo.balart@metempsy.com .bankedChild() 461813531Sjairo.balart@metempsy.com .res0(0xFFFFFFF8) // [31:3] 461913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 462013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SRE_NS); 462113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL1_S) 462213531Sjairo.balart@metempsy.com .bankedChild() 462313531Sjairo.balart@metempsy.com .res0(0xFFFFFFF8) // [31:3] 462413531Sjairo.balart@metempsy.com .secure().exceptUserMode() 462513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SRE_S); 462613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN0_EL1) 462713531Sjairo.balart@metempsy.com .res0(0xFFFFFFFE) // [31:1] 462813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 462913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN0); 463013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL1) 463113531Sjairo.balart@metempsy.com .banked() 463213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN1); 463313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL1_NS) 463413531Sjairo.balart@metempsy.com .bankedChild() 463513531Sjairo.balart@metempsy.com .res0(0xFFFFFFFE) // [31:1] 463613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 463713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN1_NS); 463813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL1_S) 463913531Sjairo.balart@metempsy.com .bankedChild() 464013531Sjairo.balart@metempsy.com .res0(0xFFFFFFFE) // [31:1] 464113531Sjairo.balart@metempsy.com .secure().exceptUserMode() 464213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN1_S); 464313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL2) 464413531Sjairo.balart@metempsy.com .hyp().mon() 464513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_HSRE); 464613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL3) 464713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 464813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_MCTLR); 464913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL3) 465013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 465113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_MSRE); 465213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL3) 465313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 465413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_MGRPEN1); 465513531Sjairo.balart@metempsy.com 465613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R0_EL2) 465713531Sjairo.balart@metempsy.com .hyp().mon() 465813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R0); 465913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R1_EL2) 466013531Sjairo.balart@metempsy.com .hyp().mon() 466113531Sjairo.balart@metempsy.com .unimplemented() 466213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R1); 466313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R2_EL2) 466413531Sjairo.balart@metempsy.com .hyp().mon() 466513531Sjairo.balart@metempsy.com .unimplemented() 466613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R2); 466713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R3_EL2) 466813531Sjairo.balart@metempsy.com .hyp().mon() 466913531Sjairo.balart@metempsy.com .unimplemented() 467013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R3); 467113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R0_EL2) 467213531Sjairo.balart@metempsy.com .hyp().mon() 467313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R0); 467413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R1_EL2) 467513531Sjairo.balart@metempsy.com .hyp().mon() 467613531Sjairo.balart@metempsy.com .unimplemented() 467713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R1); 467813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R2_EL2) 467913531Sjairo.balart@metempsy.com .hyp().mon() 468013531Sjairo.balart@metempsy.com .unimplemented() 468113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R2); 468213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R3_EL2) 468313531Sjairo.balart@metempsy.com .hyp().mon() 468413531Sjairo.balart@metempsy.com .unimplemented() 468513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R3); 468613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_HCR_EL2) 468713531Sjairo.balart@metempsy.com .hyp().mon() 468813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_HCR); 468913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VTR_EL2) 469013531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 469113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_VTR); 469213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_MISR_EL2) 469313531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 469413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_MISR); 469513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_EISR_EL2) 469613531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 469713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_EISR); 469813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_ELRSR_EL2) 469913531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 470013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_ELRSR); 470113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VMCR_EL2) 470213531Sjairo.balart@metempsy.com .hyp().mon() 470313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_VMCR); 470413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR0_EL2) 470513531Sjairo.balart@metempsy.com .hyp().mon() 470613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 470713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR1_EL2) 470813531Sjairo.balart@metempsy.com .hyp().mon() 470913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR2_EL2) 471113531Sjairo.balart@metempsy.com .hyp().mon() 471213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR3_EL2) 471413531Sjairo.balart@metempsy.com .hyp().mon() 471513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR4_EL2) 471713531Sjairo.balart@metempsy.com .hyp().mon() 471813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR5_EL2) 472013531Sjairo.balart@metempsy.com .hyp().mon() 472113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR6_EL2) 472313531Sjairo.balart@metempsy.com .hyp().mon() 472413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR7_EL2) 472613531Sjairo.balart@metempsy.com .hyp().mon() 472713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR8_EL2) 472913531Sjairo.balart@metempsy.com .hyp().mon() 473013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 473113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR9_EL2) 473213531Sjairo.balart@metempsy.com .hyp().mon() 473313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 473413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR10_EL2) 473513531Sjairo.balart@metempsy.com .hyp().mon() 473613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 473713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR11_EL2) 473813531Sjairo.balart@metempsy.com .hyp().mon() 473913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR12_EL2) 474113531Sjairo.balart@metempsy.com .hyp().mon() 474213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR13_EL2) 474413531Sjairo.balart@metempsy.com .hyp().mon() 474513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR14_EL2) 474713531Sjairo.balart@metempsy.com .hyp().mon() 474813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR15_EL2) 475013531Sjairo.balart@metempsy.com .hyp().mon() 475113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475213531Sjairo.balart@metempsy.com 475313531Sjairo.balart@metempsy.com // GICv3 AArch32 475413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R0) 475513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R1) 475713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R2) 475913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R3) 476113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0) 476313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_NS) 476513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_S) 476713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1) 476913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_NS) 477113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_S) 477313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2) 477513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_NS) 477713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_S) 477913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3) 478113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_NS) 478313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_S) 478513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_ASGI1R) 478713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 478813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR0) 478913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1) 479113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_NS) 479313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_S) 479513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR) 479713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_NS) 479913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 480013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_S) 480113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 480213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_DIR) 480313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 480413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR0) 480513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 480613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR1) 480713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 480813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR0) 480913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 481013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR1) 481113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 481213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HSRE) 481313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 481413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR0) 481513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 481613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR1) 481713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 481813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN0) 481913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1) 482113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_NS) 482313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_S) 482513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_MCTLR) 482713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_MGRPEN1) 482913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 483013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_MSRE) 483113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 483213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_PMR) 483313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 483413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_RPR) 483513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 483613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI0R) 483713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 483813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI1R) 483913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 484013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE) 484113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 484213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_NS) 484313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 484413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_S) 484513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 484613531Sjairo.balart@metempsy.com 484713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R0) 484813531Sjairo.balart@metempsy.com .hyp().mon(); 484913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R1) 485013531Sjairo.balart@metempsy.com .hyp().mon(); 485113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R2) 485213531Sjairo.balart@metempsy.com .hyp().mon(); 485313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R3) 485413531Sjairo.balart@metempsy.com .hyp().mon(); 485513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R0) 485613531Sjairo.balart@metempsy.com .hyp().mon(); 485713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R1) 485813531Sjairo.balart@metempsy.com .hyp().mon(); 485913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R2) 486013531Sjairo.balart@metempsy.com .hyp().mon(); 486113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R3) 486213531Sjairo.balart@metempsy.com .hyp().mon(); 486313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_HCR) 486413531Sjairo.balart@metempsy.com .hyp().mon(); 486513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VTR) 486613531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 486713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_MISR) 486813531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 486913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_EISR) 487013531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 487113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_ELRSR) 487213531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 487313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VMCR) 487413531Sjairo.balart@metempsy.com .hyp().mon(); 487513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR0) 487613531Sjairo.balart@metempsy.com .hyp().mon(); 487713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR1) 487813531Sjairo.balart@metempsy.com .hyp().mon(); 487913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR2) 488013531Sjairo.balart@metempsy.com .hyp().mon(); 488113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR3) 488213531Sjairo.balart@metempsy.com .hyp().mon(); 488313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR4) 488413531Sjairo.balart@metempsy.com .hyp().mon(); 488513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR5) 488613531Sjairo.balart@metempsy.com .hyp().mon(); 488713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR6) 488813531Sjairo.balart@metempsy.com .hyp().mon(); 488913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR7) 489013531Sjairo.balart@metempsy.com .hyp().mon(); 489113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR8) 489213531Sjairo.balart@metempsy.com .hyp().mon(); 489313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR9) 489413531Sjairo.balart@metempsy.com .hyp().mon(); 489513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR10) 489613531Sjairo.balart@metempsy.com .hyp().mon(); 489713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR11) 489813531Sjairo.balart@metempsy.com .hyp().mon(); 489913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR12) 490013531Sjairo.balart@metempsy.com .hyp().mon(); 490113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR13) 490213531Sjairo.balart@metempsy.com .hyp().mon(); 490313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR14) 490413531Sjairo.balart@metempsy.com .hyp().mon(); 490513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR15) 490613531Sjairo.balart@metempsy.com .hyp().mon(); 490713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC0) 490813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR0) 490913531Sjairo.balart@metempsy.com .hyp().mon(); 491013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC1) 491113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR1) 491213531Sjairo.balart@metempsy.com .hyp().mon(); 491313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC2) 491413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR2) 491513531Sjairo.balart@metempsy.com .hyp().mon(); 491613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC3) 491713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR3) 491813531Sjairo.balart@metempsy.com .hyp().mon(); 491913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC4) 492013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR4) 492113531Sjairo.balart@metempsy.com .hyp().mon(); 492213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC5) 492313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR5) 492413531Sjairo.balart@metempsy.com .hyp().mon(); 492513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC6) 492613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR6) 492713531Sjairo.balart@metempsy.com .hyp().mon(); 492813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC7) 492913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR7) 493013531Sjairo.balart@metempsy.com .hyp().mon(); 493113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC8) 493213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR8) 493313531Sjairo.balart@metempsy.com .hyp().mon(); 493413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC9) 493513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR9) 493613531Sjairo.balart@metempsy.com .hyp().mon(); 493713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC10) 493813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR10) 493913531Sjairo.balart@metempsy.com .hyp().mon(); 494013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC11) 494113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR11) 494213531Sjairo.balart@metempsy.com .hyp().mon(); 494313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC12) 494413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR12) 494513531Sjairo.balart@metempsy.com .hyp().mon(); 494613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC13) 494713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR13) 494813531Sjairo.balart@metempsy.com .hyp().mon(); 494913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC14) 495013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR14) 495113531Sjairo.balart@metempsy.com .hyp().mon(); 495213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC15) 495313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR15) 495413531Sjairo.balart@metempsy.com .hyp().mon(); 495513531Sjairo.balart@metempsy.com 495612816Sgiacomo.travaglini@arm.com InitReg(MISCREG_CNTHV_CTL_EL2) 495712816Sgiacomo.travaglini@arm.com .mon().hyp(); 495812816Sgiacomo.travaglini@arm.com InitReg(MISCREG_CNTHV_CVAL_EL2) 495912816Sgiacomo.travaglini@arm.com .mon().hyp(); 496012816Sgiacomo.travaglini@arm.com InitReg(MISCREG_CNTHV_TVAL_EL2) 496112816Sgiacomo.travaglini@arm.com .mon().hyp(); 496212479SCurtis.Dunham@arm.com 496313759Sgiacomo.gabrielli@arm.com // SVE 496413759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ID_AA64ZFR0_EL1) 496513759Sgiacomo.gabrielli@arm.com .allPrivileges().exceptUserMode().writes(0); 496613759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL3) 496713759Sgiacomo.gabrielli@arm.com .mon(); 496813759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL2) 496913759Sgiacomo.gabrielli@arm.com .hyp().mon(); 497013759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL12) 497113759Sgiacomo.gabrielli@arm.com .unimplemented().warnNotFail(); 497213759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL1) 497313759Sgiacomo.gabrielli@arm.com .allPrivileges().exceptUserMode(); 497413759Sgiacomo.gabrielli@arm.com 497512479SCurtis.Dunham@arm.com // Dummy registers 497612479SCurtis.Dunham@arm.com InitReg(MISCREG_NOP) 497712479SCurtis.Dunham@arm.com .allPrivileges(); 497812479SCurtis.Dunham@arm.com InitReg(MISCREG_RAZ) 497912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 498012479SCurtis.Dunham@arm.com InitReg(MISCREG_CP14_UNIMPL) 498112479SCurtis.Dunham@arm.com .unimplemented() 498212479SCurtis.Dunham@arm.com .warnNotFail(); 498312479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15_UNIMPL) 498412479SCurtis.Dunham@arm.com .unimplemented() 498512479SCurtis.Dunham@arm.com .warnNotFail(); 498612479SCurtis.Dunham@arm.com InitReg(MISCREG_UNKNOWN); 498712714Sgiacomo.travaglini@arm.com InitReg(MISCREG_IMPDEF_UNIMPL) 498812714Sgiacomo.travaglini@arm.com .unimplemented() 498912714Sgiacomo.travaglini@arm.com .warnNotFail(impdefAsNop); 499012479SCurtis.Dunham@arm.com 499112815Sgiacomo.travaglini@arm.com // RAS extension (unimplemented) 499212815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERRIDR_EL1) 499312815Sgiacomo.travaglini@arm.com .unimplemented() 499412815Sgiacomo.travaglini@arm.com .warnNotFail(); 499512815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERRSELR_EL1) 499612815Sgiacomo.travaglini@arm.com .unimplemented() 499712815Sgiacomo.travaglini@arm.com .warnNotFail(); 499812815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXFR_EL1) 499912815Sgiacomo.travaglini@arm.com .unimplemented() 500012815Sgiacomo.travaglini@arm.com .warnNotFail(); 500112815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXCTLR_EL1) 500212815Sgiacomo.travaglini@arm.com .unimplemented() 500312815Sgiacomo.travaglini@arm.com .warnNotFail(); 500412815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXSTATUS_EL1) 500512815Sgiacomo.travaglini@arm.com .unimplemented() 500612815Sgiacomo.travaglini@arm.com .warnNotFail(); 500712815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXADDR_EL1) 500812815Sgiacomo.travaglini@arm.com .unimplemented() 500912815Sgiacomo.travaglini@arm.com .warnNotFail(); 501012815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXMISC0_EL1) 501112815Sgiacomo.travaglini@arm.com .unimplemented() 501212815Sgiacomo.travaglini@arm.com .warnNotFail(); 501312815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXMISC1_EL1) 501412815Sgiacomo.travaglini@arm.com .unimplemented() 501512815Sgiacomo.travaglini@arm.com .warnNotFail(); 501612815Sgiacomo.travaglini@arm.com InitReg(MISCREG_DISR_EL1) 501712815Sgiacomo.travaglini@arm.com .unimplemented() 501812815Sgiacomo.travaglini@arm.com .warnNotFail(); 501912815Sgiacomo.travaglini@arm.com InitReg(MISCREG_VSESR_EL2) 502012815Sgiacomo.travaglini@arm.com .unimplemented() 502112815Sgiacomo.travaglini@arm.com .warnNotFail(); 502212815Sgiacomo.travaglini@arm.com InitReg(MISCREG_VDISR_EL2) 502312815Sgiacomo.travaglini@arm.com .unimplemented() 502412815Sgiacomo.travaglini@arm.com .warnNotFail(); 502512815Sgiacomo.travaglini@arm.com 502612479SCurtis.Dunham@arm.com // Register mappings for some unimplemented registers: 502712479SCurtis.Dunham@arm.com // ESR_EL1 -> DFSR 502812479SCurtis.Dunham@arm.com // RMR_EL1 -> RMR 502912479SCurtis.Dunham@arm.com // RMR_EL2 -> HRMR 503012479SCurtis.Dunham@arm.com // DBGDTR_EL0 -> DBGDTR{R or T}Xint 503112479SCurtis.Dunham@arm.com // DBGDTRRX_EL0 -> DBGDTRRXint 503212479SCurtis.Dunham@arm.com // DBGDTRTX_EL0 -> DBGDTRRXint 503312479SCurtis.Dunham@arm.com // MDCR_EL3 -> SDCR, NAM D7-2108 (the latter is unimpl. in gem5) 503412479SCurtis.Dunham@arm.com 503512479SCurtis.Dunham@arm.com completed = true; 503612479SCurtis.Dunham@arm.com} 503712479SCurtis.Dunham@arm.com 503810037SARM gem5 Developers} // namespace ArmISA 5039