miscregs.cc revision 13759
17259Sgblack@eecs.umich.edu/* 212669Schuan.zhu@arm.com * Copyright (c) 2010-2013, 2015-2018 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; 198710037SARM gem5 Developers } 198810037SARM gem5 Developers break; 198913531Sjairo.balart@metempsy.com case 6: 199013531Sjairo.balart@metempsy.com switch (op2) { 199113531Sjairo.balart@metempsy.com case 0: 199213531Sjairo.balart@metempsy.com return MISCREG_ICC_PMR_EL1; 199313531Sjairo.balart@metempsy.com } 199413531Sjairo.balart@metempsy.com break; 199510037SARM gem5 Developers } 199610037SARM gem5 Developers break; 199710037SARM gem5 Developers case 3: 199810037SARM gem5 Developers switch (crm) { 199910037SARM gem5 Developers case 2: 200010037SARM gem5 Developers switch (op2) { 200110037SARM gem5 Developers case 0: 200210037SARM gem5 Developers return MISCREG_NZCV; 200310037SARM gem5 Developers case 1: 200410037SARM gem5 Developers return MISCREG_DAIF; 200510037SARM gem5 Developers } 200610037SARM gem5 Developers break; 200710037SARM gem5 Developers case 4: 200810037SARM gem5 Developers switch (op2) { 200910037SARM gem5 Developers case 0: 201010037SARM gem5 Developers return MISCREG_FPCR; 201110037SARM gem5 Developers case 1: 201210037SARM gem5 Developers return MISCREG_FPSR; 201310037SARM gem5 Developers } 201410037SARM gem5 Developers break; 201510037SARM gem5 Developers case 5: 201610037SARM gem5 Developers switch (op2) { 201710037SARM gem5 Developers case 0: 201810037SARM gem5 Developers return MISCREG_DSPSR_EL0; 201910037SARM gem5 Developers case 1: 202010037SARM gem5 Developers return MISCREG_DLR_EL0; 202110037SARM gem5 Developers } 202210037SARM gem5 Developers break; 202310037SARM gem5 Developers } 202410037SARM gem5 Developers break; 202510037SARM gem5 Developers case 4: 202610037SARM gem5 Developers switch (crm) { 202710037SARM gem5 Developers case 0: 202810037SARM gem5 Developers switch (op2) { 202910037SARM gem5 Developers case 0: 203010037SARM gem5 Developers return MISCREG_SPSR_EL2; 203110037SARM gem5 Developers case 1: 203210037SARM gem5 Developers return MISCREG_ELR_EL2; 203310037SARM gem5 Developers } 203410037SARM gem5 Developers break; 203510037SARM gem5 Developers case 1: 203610037SARM gem5 Developers switch (op2) { 203710037SARM gem5 Developers case 0: 203810037SARM gem5 Developers return MISCREG_SP_EL1; 203910037SARM gem5 Developers } 204010037SARM gem5 Developers break; 204110037SARM gem5 Developers case 3: 204210037SARM gem5 Developers switch (op2) { 204310037SARM gem5 Developers case 0: 204410037SARM gem5 Developers return MISCREG_SPSR_IRQ_AA64; 204510037SARM gem5 Developers case 1: 204610037SARM gem5 Developers return MISCREG_SPSR_ABT_AA64; 204710037SARM gem5 Developers case 2: 204810037SARM gem5 Developers return MISCREG_SPSR_UND_AA64; 204910037SARM gem5 Developers case 3: 205010037SARM gem5 Developers return MISCREG_SPSR_FIQ_AA64; 205110037SARM gem5 Developers } 205210037SARM gem5 Developers break; 205310037SARM gem5 Developers } 205410037SARM gem5 Developers break; 205510037SARM gem5 Developers case 6: 205610037SARM gem5 Developers switch (crm) { 205710037SARM gem5 Developers case 0: 205810037SARM gem5 Developers switch (op2) { 205910037SARM gem5 Developers case 0: 206010037SARM gem5 Developers return MISCREG_SPSR_EL3; 206110037SARM gem5 Developers case 1: 206210037SARM gem5 Developers return MISCREG_ELR_EL3; 206310037SARM gem5 Developers } 206410037SARM gem5 Developers break; 206510037SARM gem5 Developers case 1: 206610037SARM gem5 Developers switch (op2) { 206710037SARM gem5 Developers case 0: 206810037SARM gem5 Developers return MISCREG_SP_EL2; 206910037SARM gem5 Developers } 207010037SARM gem5 Developers break; 207110037SARM gem5 Developers } 207210037SARM gem5 Developers break; 207310037SARM gem5 Developers } 207410037SARM gem5 Developers break; 207510037SARM gem5 Developers case 5: 207610037SARM gem5 Developers switch (op1) { 207710037SARM gem5 Developers case 0: 207810037SARM gem5 Developers switch (crm) { 207910037SARM gem5 Developers case 1: 208010037SARM gem5 Developers switch (op2) { 208110037SARM gem5 Developers case 0: 208210037SARM gem5 Developers return MISCREG_AFSR0_EL1; 208310037SARM gem5 Developers case 1: 208410037SARM gem5 Developers return MISCREG_AFSR1_EL1; 208510037SARM gem5 Developers } 208610037SARM gem5 Developers break; 208710037SARM gem5 Developers case 2: 208810037SARM gem5 Developers switch (op2) { 208910037SARM gem5 Developers case 0: 209010037SARM gem5 Developers return MISCREG_ESR_EL1; 209110037SARM gem5 Developers } 209210037SARM gem5 Developers break; 209312815Sgiacomo.travaglini@arm.com case 3: 209412815Sgiacomo.travaglini@arm.com switch (op2) { 209512815Sgiacomo.travaglini@arm.com case 0: 209612815Sgiacomo.travaglini@arm.com return MISCREG_ERRIDR_EL1; 209712815Sgiacomo.travaglini@arm.com case 1: 209812815Sgiacomo.travaglini@arm.com return MISCREG_ERRSELR_EL1; 209912815Sgiacomo.travaglini@arm.com } 210012815Sgiacomo.travaglini@arm.com break; 210112815Sgiacomo.travaglini@arm.com case 4: 210212815Sgiacomo.travaglini@arm.com switch (op2) { 210312815Sgiacomo.travaglini@arm.com case 0: 210412815Sgiacomo.travaglini@arm.com return MISCREG_ERXFR_EL1; 210512815Sgiacomo.travaglini@arm.com case 1: 210612815Sgiacomo.travaglini@arm.com return MISCREG_ERXCTLR_EL1; 210712815Sgiacomo.travaglini@arm.com case 2: 210812815Sgiacomo.travaglini@arm.com return MISCREG_ERXSTATUS_EL1; 210912815Sgiacomo.travaglini@arm.com case 3: 211012815Sgiacomo.travaglini@arm.com return MISCREG_ERXADDR_EL1; 211112815Sgiacomo.travaglini@arm.com } 211212815Sgiacomo.travaglini@arm.com break; 211312815Sgiacomo.travaglini@arm.com case 5: 211412815Sgiacomo.travaglini@arm.com switch (op2) { 211512815Sgiacomo.travaglini@arm.com case 0: 211612815Sgiacomo.travaglini@arm.com return MISCREG_ERXMISC0_EL1; 211712815Sgiacomo.travaglini@arm.com case 1: 211812815Sgiacomo.travaglini@arm.com return MISCREG_ERXMISC1_EL1; 211912815Sgiacomo.travaglini@arm.com } 212012815Sgiacomo.travaglini@arm.com break; 212110037SARM gem5 Developers } 212210037SARM gem5 Developers break; 212310037SARM gem5 Developers case 4: 212410037SARM gem5 Developers switch (crm) { 212510037SARM gem5 Developers case 0: 212610037SARM gem5 Developers switch (op2) { 212710037SARM gem5 Developers case 1: 212810037SARM gem5 Developers return MISCREG_IFSR32_EL2; 212910037SARM gem5 Developers } 213010037SARM gem5 Developers break; 213110037SARM gem5 Developers case 1: 213210037SARM gem5 Developers switch (op2) { 213310037SARM gem5 Developers case 0: 213410037SARM gem5 Developers return MISCREG_AFSR0_EL2; 213510037SARM gem5 Developers case 1: 213610037SARM gem5 Developers return MISCREG_AFSR1_EL2; 213710037SARM gem5 Developers } 213810037SARM gem5 Developers break; 213910037SARM gem5 Developers case 2: 214010037SARM gem5 Developers switch (op2) { 214110037SARM gem5 Developers case 0: 214210037SARM gem5 Developers return MISCREG_ESR_EL2; 214312815Sgiacomo.travaglini@arm.com case 3: 214412815Sgiacomo.travaglini@arm.com return MISCREG_VSESR_EL2; 214510037SARM gem5 Developers } 214610037SARM gem5 Developers break; 214710037SARM gem5 Developers case 3: 214810037SARM gem5 Developers switch (op2) { 214910037SARM gem5 Developers case 0: 215010037SARM gem5 Developers return MISCREG_FPEXC32_EL2; 215110037SARM gem5 Developers } 215210037SARM gem5 Developers break; 215310037SARM gem5 Developers } 215410037SARM gem5 Developers break; 215510037SARM gem5 Developers case 6: 215610037SARM gem5 Developers switch (crm) { 215710037SARM gem5 Developers case 1: 215810037SARM gem5 Developers switch (op2) { 215910037SARM gem5 Developers case 0: 216010037SARM gem5 Developers return MISCREG_AFSR0_EL3; 216110037SARM gem5 Developers case 1: 216210037SARM gem5 Developers return MISCREG_AFSR1_EL3; 216310037SARM gem5 Developers } 216410037SARM gem5 Developers break; 216510037SARM gem5 Developers case 2: 216610037SARM gem5 Developers switch (op2) { 216710037SARM gem5 Developers case 0: 216810037SARM gem5 Developers return MISCREG_ESR_EL3; 216910037SARM gem5 Developers } 217010037SARM gem5 Developers break; 217110037SARM gem5 Developers } 217210037SARM gem5 Developers break; 217310037SARM gem5 Developers } 217410037SARM gem5 Developers break; 217510037SARM gem5 Developers case 6: 217610037SARM gem5 Developers switch (op1) { 217710037SARM gem5 Developers case 0: 217810037SARM gem5 Developers switch (crm) { 217910037SARM gem5 Developers case 0: 218010037SARM gem5 Developers switch (op2) { 218110037SARM gem5 Developers case 0: 218210037SARM gem5 Developers return MISCREG_FAR_EL1; 218310037SARM gem5 Developers } 218410037SARM gem5 Developers break; 218510037SARM gem5 Developers } 218610037SARM gem5 Developers break; 218710037SARM gem5 Developers case 4: 218810037SARM gem5 Developers switch (crm) { 218910037SARM gem5 Developers case 0: 219010037SARM gem5 Developers switch (op2) { 219110037SARM gem5 Developers case 0: 219210037SARM gem5 Developers return MISCREG_FAR_EL2; 219310037SARM gem5 Developers case 4: 219410037SARM gem5 Developers return MISCREG_HPFAR_EL2; 219510037SARM gem5 Developers } 219610037SARM gem5 Developers break; 219710037SARM gem5 Developers } 219810037SARM gem5 Developers break; 219910037SARM gem5 Developers case 6: 220010037SARM gem5 Developers switch (crm) { 220110037SARM gem5 Developers case 0: 220210037SARM gem5 Developers switch (op2) { 220310037SARM gem5 Developers case 0: 220410037SARM gem5 Developers return MISCREG_FAR_EL3; 220510037SARM gem5 Developers } 220610037SARM gem5 Developers break; 220710037SARM gem5 Developers } 220810037SARM gem5 Developers break; 220910037SARM gem5 Developers } 221010037SARM gem5 Developers break; 221110037SARM gem5 Developers case 7: 221210037SARM gem5 Developers switch (op1) { 221310037SARM gem5 Developers case 0: 221410037SARM gem5 Developers switch (crm) { 221510037SARM gem5 Developers case 4: 221610037SARM gem5 Developers switch (op2) { 221710037SARM gem5 Developers case 0: 221810037SARM gem5 Developers return MISCREG_PAR_EL1; 221910037SARM gem5 Developers } 222010037SARM gem5 Developers break; 222110037SARM gem5 Developers } 222210037SARM gem5 Developers break; 222310037SARM gem5 Developers } 222410037SARM gem5 Developers break; 222510037SARM gem5 Developers case 9: 222610037SARM gem5 Developers switch (op1) { 222710037SARM gem5 Developers case 0: 222810037SARM gem5 Developers switch (crm) { 222910037SARM gem5 Developers case 14: 223010037SARM gem5 Developers switch (op2) { 223110037SARM gem5 Developers case 1: 223210037SARM gem5 Developers return MISCREG_PMINTENSET_EL1; 223310037SARM gem5 Developers case 2: 223410037SARM gem5 Developers return MISCREG_PMINTENCLR_EL1; 223510037SARM gem5 Developers } 223610037SARM gem5 Developers break; 223710037SARM gem5 Developers } 223810037SARM gem5 Developers break; 223910037SARM gem5 Developers case 3: 224010037SARM gem5 Developers switch (crm) { 224110037SARM gem5 Developers case 12: 224210037SARM gem5 Developers switch (op2) { 224310037SARM gem5 Developers case 0: 224410037SARM gem5 Developers return MISCREG_PMCR_EL0; 224510037SARM gem5 Developers case 1: 224610037SARM gem5 Developers return MISCREG_PMCNTENSET_EL0; 224710037SARM gem5 Developers case 2: 224810037SARM gem5 Developers return MISCREG_PMCNTENCLR_EL0; 224910037SARM gem5 Developers case 3: 225010037SARM gem5 Developers return MISCREG_PMOVSCLR_EL0; 225110037SARM gem5 Developers case 4: 225210037SARM gem5 Developers return MISCREG_PMSWINC_EL0; 225310037SARM gem5 Developers case 5: 225410037SARM gem5 Developers return MISCREG_PMSELR_EL0; 225510037SARM gem5 Developers case 6: 225610037SARM gem5 Developers return MISCREG_PMCEID0_EL0; 225710037SARM gem5 Developers case 7: 225810037SARM gem5 Developers return MISCREG_PMCEID1_EL0; 225910037SARM gem5 Developers } 226010037SARM gem5 Developers break; 226110037SARM gem5 Developers case 13: 226210037SARM gem5 Developers switch (op2) { 226310037SARM gem5 Developers case 0: 226410037SARM gem5 Developers return MISCREG_PMCCNTR_EL0; 226510037SARM gem5 Developers case 1: 226610604SAndreas.Sandberg@ARM.com return MISCREG_PMXEVTYPER_EL0; 226710037SARM gem5 Developers case 2: 226810037SARM gem5 Developers return MISCREG_PMXEVCNTR_EL0; 226910037SARM gem5 Developers } 227010037SARM gem5 Developers break; 227110037SARM gem5 Developers case 14: 227210037SARM gem5 Developers switch (op2) { 227310037SARM gem5 Developers case 0: 227410037SARM gem5 Developers return MISCREG_PMUSERENR_EL0; 227510037SARM gem5 Developers case 3: 227610037SARM gem5 Developers return MISCREG_PMOVSSET_EL0; 227710037SARM gem5 Developers } 227810037SARM gem5 Developers break; 227910037SARM gem5 Developers } 228010037SARM gem5 Developers break; 228110037SARM gem5 Developers } 228210037SARM gem5 Developers break; 228310037SARM gem5 Developers case 10: 228410037SARM gem5 Developers switch (op1) { 228510037SARM gem5 Developers case 0: 228610037SARM gem5 Developers switch (crm) { 228710037SARM gem5 Developers case 2: 228810037SARM gem5 Developers switch (op2) { 228910037SARM gem5 Developers case 0: 229010037SARM gem5 Developers return MISCREG_MAIR_EL1; 229110037SARM gem5 Developers } 229210037SARM gem5 Developers break; 229310037SARM gem5 Developers case 3: 229410037SARM gem5 Developers switch (op2) { 229510037SARM gem5 Developers case 0: 229610037SARM gem5 Developers return MISCREG_AMAIR_EL1; 229710037SARM gem5 Developers } 229810037SARM gem5 Developers break; 229910037SARM gem5 Developers } 230010037SARM gem5 Developers break; 230110037SARM gem5 Developers case 4: 230210037SARM gem5 Developers switch (crm) { 230310037SARM gem5 Developers case 2: 230410037SARM gem5 Developers switch (op2) { 230510037SARM gem5 Developers case 0: 230610037SARM gem5 Developers return MISCREG_MAIR_EL2; 230710037SARM gem5 Developers } 230810037SARM gem5 Developers break; 230910037SARM gem5 Developers case 3: 231010037SARM gem5 Developers switch (op2) { 231110037SARM gem5 Developers case 0: 231210037SARM gem5 Developers return MISCREG_AMAIR_EL2; 231310037SARM gem5 Developers } 231410037SARM gem5 Developers break; 231510037SARM gem5 Developers } 231610037SARM gem5 Developers break; 231710037SARM gem5 Developers case 6: 231810037SARM gem5 Developers switch (crm) { 231910037SARM gem5 Developers case 2: 232010037SARM gem5 Developers switch (op2) { 232110037SARM gem5 Developers case 0: 232210037SARM gem5 Developers return MISCREG_MAIR_EL3; 232310037SARM gem5 Developers } 232410037SARM gem5 Developers break; 232510037SARM gem5 Developers case 3: 232610037SARM gem5 Developers switch (op2) { 232710037SARM gem5 Developers case 0: 232810037SARM gem5 Developers return MISCREG_AMAIR_EL3; 232910037SARM gem5 Developers } 233010037SARM gem5 Developers break; 233110037SARM gem5 Developers } 233210037SARM gem5 Developers break; 233310037SARM gem5 Developers } 233410037SARM gem5 Developers break; 233510037SARM gem5 Developers case 11: 233610037SARM gem5 Developers switch (op1) { 233710037SARM gem5 Developers case 1: 233810037SARM gem5 Developers switch (crm) { 233910037SARM gem5 Developers case 0: 234010037SARM gem5 Developers switch (op2) { 234110037SARM gem5 Developers case 2: 234210037SARM gem5 Developers return MISCREG_L2CTLR_EL1; 234310037SARM gem5 Developers case 3: 234410037SARM gem5 Developers return MISCREG_L2ECTLR_EL1; 234510037SARM gem5 Developers } 234610037SARM gem5 Developers break; 234710037SARM gem5 Developers } 234812711Sgiacomo.travaglini@arm.com M5_FALLTHROUGH; 234912711Sgiacomo.travaglini@arm.com default: 235012711Sgiacomo.travaglini@arm.com // S3_<op1>_11_<Cm>_<op2> 235112711Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 235210037SARM gem5 Developers } 235312711Sgiacomo.travaglini@arm.com M5_UNREACHABLE; 235410037SARM gem5 Developers case 12: 235510037SARM gem5 Developers switch (op1) { 235610037SARM gem5 Developers case 0: 235710037SARM gem5 Developers switch (crm) { 235810037SARM gem5 Developers case 0: 235910037SARM gem5 Developers switch (op2) { 236010037SARM gem5 Developers case 0: 236110037SARM gem5 Developers return MISCREG_VBAR_EL1; 236210037SARM gem5 Developers case 1: 236310037SARM gem5 Developers return MISCREG_RVBAR_EL1; 236410037SARM gem5 Developers } 236510037SARM gem5 Developers break; 236610037SARM gem5 Developers case 1: 236710037SARM gem5 Developers switch (op2) { 236810037SARM gem5 Developers case 0: 236910037SARM gem5 Developers return MISCREG_ISR_EL1; 237012815Sgiacomo.travaglini@arm.com case 1: 237112815Sgiacomo.travaglini@arm.com return MISCREG_DISR_EL1; 237210037SARM gem5 Developers } 237310037SARM gem5 Developers break; 237413531Sjairo.balart@metempsy.com case 8: 237513531Sjairo.balart@metempsy.com switch (op2) { 237613531Sjairo.balart@metempsy.com case 0: 237713531Sjairo.balart@metempsy.com return MISCREG_ICC_IAR0_EL1; 237813531Sjairo.balart@metempsy.com case 1: 237913531Sjairo.balart@metempsy.com return MISCREG_ICC_EOIR0_EL1; 238013531Sjairo.balart@metempsy.com case 2: 238113531Sjairo.balart@metempsy.com return MISCREG_ICC_HPPIR0_EL1; 238213531Sjairo.balart@metempsy.com case 3: 238313531Sjairo.balart@metempsy.com return MISCREG_ICC_BPR0_EL1; 238413531Sjairo.balart@metempsy.com case 4: 238513531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R0_EL1; 238613531Sjairo.balart@metempsy.com case 5: 238713531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R1_EL1; 238813531Sjairo.balart@metempsy.com case 6: 238913531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R2_EL1; 239013531Sjairo.balart@metempsy.com case 7: 239113531Sjairo.balart@metempsy.com return MISCREG_ICC_AP0R3_EL1; 239213531Sjairo.balart@metempsy.com } 239313531Sjairo.balart@metempsy.com break; 239413531Sjairo.balart@metempsy.com case 9: 239513531Sjairo.balart@metempsy.com switch (op2) { 239613531Sjairo.balart@metempsy.com case 0: 239713531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R0_EL1; 239813531Sjairo.balart@metempsy.com case 1: 239913531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R1_EL1; 240013531Sjairo.balart@metempsy.com case 2: 240113531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R2_EL1; 240213531Sjairo.balart@metempsy.com case 3: 240313531Sjairo.balart@metempsy.com return MISCREG_ICC_AP1R3_EL1; 240413531Sjairo.balart@metempsy.com } 240513531Sjairo.balart@metempsy.com break; 240613531Sjairo.balart@metempsy.com case 11: 240713531Sjairo.balart@metempsy.com switch (op2) { 240813531Sjairo.balart@metempsy.com case 1: 240913531Sjairo.balart@metempsy.com return MISCREG_ICC_DIR_EL1; 241013531Sjairo.balart@metempsy.com case 3: 241113531Sjairo.balart@metempsy.com return MISCREG_ICC_RPR_EL1; 241213531Sjairo.balart@metempsy.com case 5: 241313531Sjairo.balart@metempsy.com return MISCREG_ICC_SGI1R_EL1; 241413531Sjairo.balart@metempsy.com case 6: 241513531Sjairo.balart@metempsy.com return MISCREG_ICC_ASGI1R_EL1; 241613531Sjairo.balart@metempsy.com case 7: 241713531Sjairo.balart@metempsy.com return MISCREG_ICC_SGI0R_EL1; 241813531Sjairo.balart@metempsy.com } 241913531Sjairo.balart@metempsy.com break; 242013531Sjairo.balart@metempsy.com case 12: 242113531Sjairo.balart@metempsy.com switch (op2) { 242213531Sjairo.balart@metempsy.com case 0: 242313531Sjairo.balart@metempsy.com return MISCREG_ICC_IAR1_EL1; 242413531Sjairo.balart@metempsy.com case 1: 242513531Sjairo.balart@metempsy.com return MISCREG_ICC_EOIR1_EL1; 242613531Sjairo.balart@metempsy.com case 2: 242713531Sjairo.balart@metempsy.com return MISCREG_ICC_HPPIR1_EL1; 242813531Sjairo.balart@metempsy.com case 3: 242913531Sjairo.balart@metempsy.com return MISCREG_ICC_BPR1_EL1; 243013531Sjairo.balart@metempsy.com case 4: 243113531Sjairo.balart@metempsy.com return MISCREG_ICC_CTLR_EL1; 243213531Sjairo.balart@metempsy.com case 5: 243313531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE_EL1; 243413531Sjairo.balart@metempsy.com case 6: 243513531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN0_EL1; 243613531Sjairo.balart@metempsy.com case 7: 243713531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN1_EL1; 243813531Sjairo.balart@metempsy.com } 243913531Sjairo.balart@metempsy.com break; 244010037SARM gem5 Developers } 244110037SARM gem5 Developers break; 244210037SARM gem5 Developers case 4: 244310037SARM gem5 Developers switch (crm) { 244410037SARM gem5 Developers case 0: 244510037SARM gem5 Developers switch (op2) { 244610037SARM gem5 Developers case 0: 244710037SARM gem5 Developers return MISCREG_VBAR_EL2; 244810037SARM gem5 Developers case 1: 244910037SARM gem5 Developers return MISCREG_RVBAR_EL2; 245010037SARM gem5 Developers } 245110037SARM gem5 Developers break; 245212815Sgiacomo.travaglini@arm.com case 1: 245312815Sgiacomo.travaglini@arm.com switch (op2) { 245412815Sgiacomo.travaglini@arm.com case 1: 245512815Sgiacomo.travaglini@arm.com return MISCREG_VDISR_EL2; 245612815Sgiacomo.travaglini@arm.com } 245712815Sgiacomo.travaglini@arm.com break; 245813531Sjairo.balart@metempsy.com case 8: 245913531Sjairo.balart@metempsy.com switch (op2) { 246013531Sjairo.balart@metempsy.com case 0: 246113531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R0_EL2; 246213531Sjairo.balart@metempsy.com case 1: 246313531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R1_EL2; 246413531Sjairo.balart@metempsy.com case 2: 246513531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R2_EL2; 246613531Sjairo.balart@metempsy.com case 3: 246713531Sjairo.balart@metempsy.com return MISCREG_ICH_AP0R3_EL2; 246813531Sjairo.balart@metempsy.com } 246913531Sjairo.balart@metempsy.com break; 247013531Sjairo.balart@metempsy.com case 9: 247113531Sjairo.balart@metempsy.com switch (op2) { 247213531Sjairo.balart@metempsy.com case 0: 247313531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R0_EL2; 247413531Sjairo.balart@metempsy.com case 1: 247513531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R1_EL2; 247613531Sjairo.balart@metempsy.com case 2: 247713531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R2_EL2; 247813531Sjairo.balart@metempsy.com case 3: 247913531Sjairo.balart@metempsy.com return MISCREG_ICH_AP1R3_EL2; 248013531Sjairo.balart@metempsy.com case 5: 248113531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE_EL2; 248213531Sjairo.balart@metempsy.com } 248313531Sjairo.balart@metempsy.com break; 248413531Sjairo.balart@metempsy.com case 11: 248513531Sjairo.balart@metempsy.com switch (op2) { 248613531Sjairo.balart@metempsy.com case 0: 248713531Sjairo.balart@metempsy.com return MISCREG_ICH_HCR_EL2; 248813531Sjairo.balart@metempsy.com case 1: 248913531Sjairo.balart@metempsy.com return MISCREG_ICH_VTR_EL2; 249013531Sjairo.balart@metempsy.com case 2: 249113531Sjairo.balart@metempsy.com return MISCREG_ICH_MISR_EL2; 249213531Sjairo.balart@metempsy.com case 3: 249313531Sjairo.balart@metempsy.com return MISCREG_ICH_EISR_EL2; 249413531Sjairo.balart@metempsy.com case 5: 249513531Sjairo.balart@metempsy.com return MISCREG_ICH_ELRSR_EL2; 249613531Sjairo.balart@metempsy.com case 7: 249713531Sjairo.balart@metempsy.com return MISCREG_ICH_VMCR_EL2; 249813531Sjairo.balart@metempsy.com } 249913531Sjairo.balart@metempsy.com break; 250013531Sjairo.balart@metempsy.com case 12: 250113531Sjairo.balart@metempsy.com switch (op2) { 250213531Sjairo.balart@metempsy.com case 0: 250313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR0_EL2; 250413531Sjairo.balart@metempsy.com case 1: 250513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR1_EL2; 250613531Sjairo.balart@metempsy.com case 2: 250713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR2_EL2; 250813531Sjairo.balart@metempsy.com case 3: 250913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR3_EL2; 251013531Sjairo.balart@metempsy.com case 4: 251113531Sjairo.balart@metempsy.com return MISCREG_ICH_LR4_EL2; 251213531Sjairo.balart@metempsy.com case 5: 251313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR5_EL2; 251413531Sjairo.balart@metempsy.com case 6: 251513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR6_EL2; 251613531Sjairo.balart@metempsy.com case 7: 251713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR7_EL2; 251813531Sjairo.balart@metempsy.com } 251913531Sjairo.balart@metempsy.com break; 252013531Sjairo.balart@metempsy.com case 13: 252113531Sjairo.balart@metempsy.com switch (op2) { 252213531Sjairo.balart@metempsy.com case 0: 252313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR8_EL2; 252413531Sjairo.balart@metempsy.com case 1: 252513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR9_EL2; 252613531Sjairo.balart@metempsy.com case 2: 252713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR10_EL2; 252813531Sjairo.balart@metempsy.com case 3: 252913531Sjairo.balart@metempsy.com return MISCREG_ICH_LR11_EL2; 253013531Sjairo.balart@metempsy.com case 4: 253113531Sjairo.balart@metempsy.com return MISCREG_ICH_LR12_EL2; 253213531Sjairo.balart@metempsy.com case 5: 253313531Sjairo.balart@metempsy.com return MISCREG_ICH_LR13_EL2; 253413531Sjairo.balart@metempsy.com case 6: 253513531Sjairo.balart@metempsy.com return MISCREG_ICH_LR14_EL2; 253613531Sjairo.balart@metempsy.com case 7: 253713531Sjairo.balart@metempsy.com return MISCREG_ICH_LR15_EL2; 253813531Sjairo.balart@metempsy.com } 253913531Sjairo.balart@metempsy.com break; 254010037SARM gem5 Developers } 254110037SARM gem5 Developers break; 254210037SARM gem5 Developers case 6: 254310037SARM gem5 Developers switch (crm) { 254410037SARM gem5 Developers case 0: 254510037SARM gem5 Developers switch (op2) { 254610037SARM gem5 Developers case 0: 254710037SARM gem5 Developers return MISCREG_VBAR_EL3; 254810037SARM gem5 Developers case 1: 254910037SARM gem5 Developers return MISCREG_RVBAR_EL3; 255010037SARM gem5 Developers case 2: 255110037SARM gem5 Developers return MISCREG_RMR_EL3; 255210037SARM gem5 Developers } 255310037SARM gem5 Developers break; 255413531Sjairo.balart@metempsy.com case 12: 255513531Sjairo.balart@metempsy.com switch (op2) { 255613531Sjairo.balart@metempsy.com case 4: 255713531Sjairo.balart@metempsy.com return MISCREG_ICC_CTLR_EL3; 255813531Sjairo.balart@metempsy.com case 5: 255913531Sjairo.balart@metempsy.com return MISCREG_ICC_SRE_EL3; 256013531Sjairo.balart@metempsy.com case 7: 256113531Sjairo.balart@metempsy.com return MISCREG_ICC_IGRPEN1_EL3; 256213531Sjairo.balart@metempsy.com } 256313531Sjairo.balart@metempsy.com break; 256410037SARM gem5 Developers } 256510037SARM gem5 Developers break; 256610037SARM gem5 Developers } 256710037SARM gem5 Developers break; 256810037SARM gem5 Developers case 13: 256910037SARM gem5 Developers switch (op1) { 257010037SARM gem5 Developers case 0: 257110037SARM gem5 Developers switch (crm) { 257210037SARM gem5 Developers case 0: 257310037SARM gem5 Developers switch (op2) { 257410037SARM gem5 Developers case 1: 257510037SARM gem5 Developers return MISCREG_CONTEXTIDR_EL1; 257610037SARM gem5 Developers case 4: 257710037SARM gem5 Developers return MISCREG_TPIDR_EL1; 257810037SARM gem5 Developers } 257910037SARM gem5 Developers break; 258010037SARM gem5 Developers } 258110037SARM gem5 Developers break; 258210037SARM gem5 Developers case 3: 258310037SARM gem5 Developers switch (crm) { 258410037SARM gem5 Developers case 0: 258510037SARM gem5 Developers switch (op2) { 258610037SARM gem5 Developers case 2: 258710037SARM gem5 Developers return MISCREG_TPIDR_EL0; 258810037SARM gem5 Developers case 3: 258910037SARM gem5 Developers return MISCREG_TPIDRRO_EL0; 259010037SARM gem5 Developers } 259110037SARM gem5 Developers break; 259210037SARM gem5 Developers } 259310037SARM gem5 Developers break; 259410037SARM gem5 Developers case 4: 259510037SARM gem5 Developers switch (crm) { 259610037SARM gem5 Developers case 0: 259710037SARM gem5 Developers switch (op2) { 259810856SCurtis.Dunham@arm.com case 1: 259910856SCurtis.Dunham@arm.com return MISCREG_CONTEXTIDR_EL2; 260010037SARM gem5 Developers case 2: 260110037SARM gem5 Developers return MISCREG_TPIDR_EL2; 260210037SARM gem5 Developers } 260310037SARM gem5 Developers break; 260410037SARM gem5 Developers } 260510037SARM gem5 Developers break; 260610037SARM gem5 Developers case 6: 260710037SARM gem5 Developers switch (crm) { 260810037SARM gem5 Developers case 0: 260910037SARM gem5 Developers switch (op2) { 261010037SARM gem5 Developers case 2: 261110037SARM gem5 Developers return MISCREG_TPIDR_EL3; 261210037SARM gem5 Developers } 261310037SARM gem5 Developers break; 261410037SARM gem5 Developers } 261510037SARM gem5 Developers break; 261610037SARM gem5 Developers } 261710037SARM gem5 Developers break; 261810037SARM gem5 Developers case 14: 261910037SARM gem5 Developers switch (op1) { 262010037SARM gem5 Developers case 0: 262110037SARM gem5 Developers switch (crm) { 262210037SARM gem5 Developers case 1: 262310037SARM gem5 Developers switch (op2) { 262410037SARM gem5 Developers case 0: 262510037SARM gem5 Developers return MISCREG_CNTKCTL_EL1; 262610037SARM gem5 Developers } 262710037SARM gem5 Developers break; 262810037SARM gem5 Developers } 262910037SARM gem5 Developers break; 263010037SARM gem5 Developers case 3: 263110037SARM gem5 Developers switch (crm) { 263210037SARM gem5 Developers case 0: 263310037SARM gem5 Developers switch (op2) { 263410037SARM gem5 Developers case 0: 263510037SARM gem5 Developers return MISCREG_CNTFRQ_EL0; 263610037SARM gem5 Developers case 1: 263710037SARM gem5 Developers return MISCREG_CNTPCT_EL0; 263810037SARM gem5 Developers case 2: 263910037SARM gem5 Developers return MISCREG_CNTVCT_EL0; 264010037SARM gem5 Developers } 264110037SARM gem5 Developers break; 264210037SARM gem5 Developers case 2: 264310037SARM gem5 Developers switch (op2) { 264410037SARM gem5 Developers case 0: 264510037SARM gem5 Developers return MISCREG_CNTP_TVAL_EL0; 264610037SARM gem5 Developers case 1: 264710037SARM gem5 Developers return MISCREG_CNTP_CTL_EL0; 264810037SARM gem5 Developers case 2: 264910037SARM gem5 Developers return MISCREG_CNTP_CVAL_EL0; 265010037SARM gem5 Developers } 265110037SARM gem5 Developers break; 265210037SARM gem5 Developers case 3: 265310037SARM gem5 Developers switch (op2) { 265410037SARM gem5 Developers case 0: 265510037SARM gem5 Developers return MISCREG_CNTV_TVAL_EL0; 265610037SARM gem5 Developers case 1: 265710037SARM gem5 Developers return MISCREG_CNTV_CTL_EL0; 265810037SARM gem5 Developers case 2: 265910037SARM gem5 Developers return MISCREG_CNTV_CVAL_EL0; 266010037SARM gem5 Developers } 266110037SARM gem5 Developers break; 266210037SARM gem5 Developers case 8: 266310037SARM gem5 Developers switch (op2) { 266410037SARM gem5 Developers case 0: 266510037SARM gem5 Developers return MISCREG_PMEVCNTR0_EL0; 266610037SARM gem5 Developers case 1: 266710037SARM gem5 Developers return MISCREG_PMEVCNTR1_EL0; 266810037SARM gem5 Developers case 2: 266910037SARM gem5 Developers return MISCREG_PMEVCNTR2_EL0; 267010037SARM gem5 Developers case 3: 267110037SARM gem5 Developers return MISCREG_PMEVCNTR3_EL0; 267210037SARM gem5 Developers case 4: 267310037SARM gem5 Developers return MISCREG_PMEVCNTR4_EL0; 267410037SARM gem5 Developers case 5: 267510037SARM gem5 Developers return MISCREG_PMEVCNTR5_EL0; 267610037SARM gem5 Developers } 267710037SARM gem5 Developers break; 267810037SARM gem5 Developers case 12: 267910037SARM gem5 Developers switch (op2) { 268010037SARM gem5 Developers case 0: 268110037SARM gem5 Developers return MISCREG_PMEVTYPER0_EL0; 268210037SARM gem5 Developers case 1: 268310037SARM gem5 Developers return MISCREG_PMEVTYPER1_EL0; 268410037SARM gem5 Developers case 2: 268510037SARM gem5 Developers return MISCREG_PMEVTYPER2_EL0; 268610037SARM gem5 Developers case 3: 268710037SARM gem5 Developers return MISCREG_PMEVTYPER3_EL0; 268810037SARM gem5 Developers case 4: 268910037SARM gem5 Developers return MISCREG_PMEVTYPER4_EL0; 269010037SARM gem5 Developers case 5: 269110037SARM gem5 Developers return MISCREG_PMEVTYPER5_EL0; 269210037SARM gem5 Developers } 269310037SARM gem5 Developers break; 269410604SAndreas.Sandberg@ARM.com case 15: 269510604SAndreas.Sandberg@ARM.com switch (op2) { 269610604SAndreas.Sandberg@ARM.com case 7: 269710604SAndreas.Sandberg@ARM.com return MISCREG_PMCCFILTR_EL0; 269810604SAndreas.Sandberg@ARM.com } 269910037SARM gem5 Developers } 270010037SARM gem5 Developers break; 270110037SARM gem5 Developers case 4: 270210037SARM gem5 Developers switch (crm) { 270310037SARM gem5 Developers case 0: 270410037SARM gem5 Developers switch (op2) { 270510037SARM gem5 Developers case 3: 270610037SARM gem5 Developers return MISCREG_CNTVOFF_EL2; 270710037SARM gem5 Developers } 270810037SARM gem5 Developers break; 270910037SARM gem5 Developers case 1: 271010037SARM gem5 Developers switch (op2) { 271110037SARM gem5 Developers case 0: 271210037SARM gem5 Developers return MISCREG_CNTHCTL_EL2; 271310037SARM gem5 Developers } 271410037SARM gem5 Developers break; 271510037SARM gem5 Developers case 2: 271610037SARM gem5 Developers switch (op2) { 271710037SARM gem5 Developers case 0: 271810037SARM gem5 Developers return MISCREG_CNTHP_TVAL_EL2; 271910037SARM gem5 Developers case 1: 272010037SARM gem5 Developers return MISCREG_CNTHP_CTL_EL2; 272110037SARM gem5 Developers case 2: 272210037SARM gem5 Developers return MISCREG_CNTHP_CVAL_EL2; 272310037SARM gem5 Developers } 272410037SARM gem5 Developers break; 272512816Sgiacomo.travaglini@arm.com case 3: 272612816Sgiacomo.travaglini@arm.com switch (op2) { 272712816Sgiacomo.travaglini@arm.com case 0: 272812816Sgiacomo.travaglini@arm.com return MISCREG_CNTHV_TVAL_EL2; 272912816Sgiacomo.travaglini@arm.com case 1: 273012816Sgiacomo.travaglini@arm.com return MISCREG_CNTHV_CTL_EL2; 273112816Sgiacomo.travaglini@arm.com case 2: 273212816Sgiacomo.travaglini@arm.com return MISCREG_CNTHV_CVAL_EL2; 273312816Sgiacomo.travaglini@arm.com } 273412816Sgiacomo.travaglini@arm.com break; 273510037SARM gem5 Developers } 273610037SARM gem5 Developers break; 273710037SARM gem5 Developers case 7: 273810037SARM gem5 Developers switch (crm) { 273910037SARM gem5 Developers case 2: 274010037SARM gem5 Developers switch (op2) { 274110037SARM gem5 Developers case 0: 274210037SARM gem5 Developers return MISCREG_CNTPS_TVAL_EL1; 274310037SARM gem5 Developers case 1: 274410037SARM gem5 Developers return MISCREG_CNTPS_CTL_EL1; 274510037SARM gem5 Developers case 2: 274610037SARM gem5 Developers return MISCREG_CNTPS_CVAL_EL1; 274710037SARM gem5 Developers } 274810037SARM gem5 Developers break; 274910037SARM gem5 Developers } 275010037SARM gem5 Developers break; 275110037SARM gem5 Developers } 275210037SARM gem5 Developers break; 275310037SARM gem5 Developers case 15: 275410037SARM gem5 Developers switch (op1) { 275510037SARM gem5 Developers case 0: 275610037SARM gem5 Developers switch (crm) { 275710037SARM gem5 Developers case 0: 275810037SARM gem5 Developers switch (op2) { 275910037SARM gem5 Developers case 0: 276010037SARM gem5 Developers return MISCREG_IL1DATA0_EL1; 276110037SARM gem5 Developers case 1: 276210037SARM gem5 Developers return MISCREG_IL1DATA1_EL1; 276310037SARM gem5 Developers case 2: 276410037SARM gem5 Developers return MISCREG_IL1DATA2_EL1; 276510037SARM gem5 Developers case 3: 276610037SARM gem5 Developers return MISCREG_IL1DATA3_EL1; 276710037SARM gem5 Developers } 276810037SARM gem5 Developers break; 276910037SARM gem5 Developers case 1: 277010037SARM gem5 Developers switch (op2) { 277110037SARM gem5 Developers case 0: 277210037SARM gem5 Developers return MISCREG_DL1DATA0_EL1; 277310037SARM gem5 Developers case 1: 277410037SARM gem5 Developers return MISCREG_DL1DATA1_EL1; 277510037SARM gem5 Developers case 2: 277610037SARM gem5 Developers return MISCREG_DL1DATA2_EL1; 277710037SARM gem5 Developers case 3: 277810037SARM gem5 Developers return MISCREG_DL1DATA3_EL1; 277910037SARM gem5 Developers case 4: 278010037SARM gem5 Developers return MISCREG_DL1DATA4_EL1; 278110037SARM gem5 Developers } 278210037SARM gem5 Developers break; 278310037SARM gem5 Developers } 278410037SARM gem5 Developers break; 278510037SARM gem5 Developers case 1: 278610037SARM gem5 Developers switch (crm) { 278710037SARM gem5 Developers case 0: 278810037SARM gem5 Developers switch (op2) { 278910037SARM gem5 Developers case 0: 279010037SARM gem5 Developers return MISCREG_L2ACTLR_EL1; 279110037SARM gem5 Developers } 279210037SARM gem5 Developers break; 279310037SARM gem5 Developers case 2: 279410037SARM gem5 Developers switch (op2) { 279510037SARM gem5 Developers case 0: 279610037SARM gem5 Developers return MISCREG_CPUACTLR_EL1; 279710037SARM gem5 Developers case 1: 279810037SARM gem5 Developers return MISCREG_CPUECTLR_EL1; 279910037SARM gem5 Developers case 2: 280010037SARM gem5 Developers return MISCREG_CPUMERRSR_EL1; 280110037SARM gem5 Developers case 3: 280210037SARM gem5 Developers return MISCREG_L2MERRSR_EL1; 280310037SARM gem5 Developers } 280410037SARM gem5 Developers break; 280510037SARM gem5 Developers case 3: 280610037SARM gem5 Developers switch (op2) { 280710037SARM gem5 Developers case 0: 280810037SARM gem5 Developers return MISCREG_CBAR_EL1; 280910037SARM gem5 Developers 281010037SARM gem5 Developers } 281110037SARM gem5 Developers break; 281210037SARM gem5 Developers } 281310037SARM gem5 Developers break; 281410037SARM gem5 Developers } 281512711Sgiacomo.travaglini@arm.com // S3_<op1>_15_<Cm>_<op2> 281612711Sgiacomo.travaglini@arm.com return MISCREG_IMPDEF_UNIMPL; 281710037SARM gem5 Developers } 281810037SARM gem5 Developers break; 281910037SARM gem5 Developers } 282010037SARM gem5 Developers 282110037SARM gem5 Developers return MISCREG_UNKNOWN; 282210037SARM gem5 Developers} 282310037SARM gem5 Developers 282412479SCurtis.Dunham@arm.combitset<NUM_MISCREG_INFOS> miscRegInfo[NUM_MISCREGS]; // initialized below 282512479SCurtis.Dunham@arm.com 282612479SCurtis.Dunham@arm.comvoid 282712479SCurtis.Dunham@arm.comISA::initializeMiscRegMetadata() 282812479SCurtis.Dunham@arm.com{ 282912479SCurtis.Dunham@arm.com // the MiscReg metadata tables are shared across all instances of the 283012479SCurtis.Dunham@arm.com // ISA object, so there's no need to initialize them multiple times. 283112479SCurtis.Dunham@arm.com static bool completed = false; 283212479SCurtis.Dunham@arm.com if (completed) 283312479SCurtis.Dunham@arm.com return; 283412479SCurtis.Dunham@arm.com 283512661Sgiacomo.travaglini@arm.com // This boolean variable specifies if the system is running in aarch32 at 283612661Sgiacomo.travaglini@arm.com // EL3 (aarch32EL3 = true). It is false if EL3 is not implemented, or it 283712661Sgiacomo.travaglini@arm.com // is running in aarch64 (aarch32EL3 = false) 283812661Sgiacomo.travaglini@arm.com bool aarch32EL3 = haveSecurity && !highestELIs64; 283912661Sgiacomo.travaglini@arm.com 284013502SCurtis.Dunham@arm.com // Set Privileged Access Never on taking an exception to EL1 (Arm 8.1+), 284113502SCurtis.Dunham@arm.com // unsupported 284213502SCurtis.Dunham@arm.com bool SPAN = false; 284313502SCurtis.Dunham@arm.com 284413502SCurtis.Dunham@arm.com // Implicit error synchronization event enable (Arm 8.2+), unsupported 284513502SCurtis.Dunham@arm.com bool IESB = false; 284613502SCurtis.Dunham@arm.com 284713502SCurtis.Dunham@arm.com // Load Multiple and Store Multiple Atomicity and Ordering (Arm 8.2+), 284813502SCurtis.Dunham@arm.com // unsupported 284913502SCurtis.Dunham@arm.com bool LSMAOE = false; 285013502SCurtis.Dunham@arm.com 285113502SCurtis.Dunham@arm.com // No Trap Load Multiple and Store Multiple (Arm 8.2+), unsupported 285213502SCurtis.Dunham@arm.com bool nTLSMD = false; 285313502SCurtis.Dunham@arm.com 285413502SCurtis.Dunham@arm.com // Pointer authentication (Arm 8.3+), unsupported 285513502SCurtis.Dunham@arm.com bool EnDA = false; // using APDAKey_EL1 key of instr addrs in ELs 0,1 285613502SCurtis.Dunham@arm.com bool EnDB = false; // using APDBKey_EL1 key of instr addrs in ELs 0,1 285713502SCurtis.Dunham@arm.com bool EnIA = false; // using APIAKey_EL1 key of instr addrs in ELs 0,1 285813502SCurtis.Dunham@arm.com bool EnIB = false; // using APIBKey_EL1 key of instr addrs in ELs 0,1 285913502SCurtis.Dunham@arm.com 286012479SCurtis.Dunham@arm.com /** 286112479SCurtis.Dunham@arm.com * Some registers alias with others, and therefore need to be translated. 286212479SCurtis.Dunham@arm.com * When two mapping registers are given, they are the 32b lower and 286312479SCurtis.Dunham@arm.com * upper halves, respectively, of the 64b register being mapped. 286412479SCurtis.Dunham@arm.com * aligned with reference documentation ARM DDI 0487A.i pp 1540-1543 286512479SCurtis.Dunham@arm.com * 286612479SCurtis.Dunham@arm.com * NAM = "not architecturally mandated", 286712479SCurtis.Dunham@arm.com * from ARM DDI 0487A.i, template text 286812479SCurtis.Dunham@arm.com * "AArch64 System register ___ can be mapped to 286912479SCurtis.Dunham@arm.com * AArch32 System register ___, but this is not 287012479SCurtis.Dunham@arm.com * architecturally mandated." 287112479SCurtis.Dunham@arm.com */ 287212479SCurtis.Dunham@arm.com 287312479SCurtis.Dunham@arm.com InitReg(MISCREG_CPSR) 287412479SCurtis.Dunham@arm.com .allPrivileges(); 287512479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR) 287612479SCurtis.Dunham@arm.com .allPrivileges(); 287712479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_FIQ) 287812479SCurtis.Dunham@arm.com .allPrivileges(); 287912479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_IRQ) 288012479SCurtis.Dunham@arm.com .allPrivileges(); 288112479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_SVC) 288212479SCurtis.Dunham@arm.com .allPrivileges(); 288312479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_MON) 288412479SCurtis.Dunham@arm.com .allPrivileges(); 288512479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_ABT) 288612479SCurtis.Dunham@arm.com .allPrivileges(); 288712479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_HYP) 288812479SCurtis.Dunham@arm.com .allPrivileges(); 288912479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_UND) 289012479SCurtis.Dunham@arm.com .allPrivileges(); 289112479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_HYP) 289212479SCurtis.Dunham@arm.com .allPrivileges(); 289312479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSID) 289412479SCurtis.Dunham@arm.com .allPrivileges(); 289512479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSCR) 289612479SCurtis.Dunham@arm.com .allPrivileges(); 289712479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR1) 289812479SCurtis.Dunham@arm.com .allPrivileges(); 289912479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR0) 290012479SCurtis.Dunham@arm.com .allPrivileges(); 290112479SCurtis.Dunham@arm.com InitReg(MISCREG_FPEXC) 290212479SCurtis.Dunham@arm.com .allPrivileges(); 290312479SCurtis.Dunham@arm.com 290412479SCurtis.Dunham@arm.com // Helper registers 290512479SCurtis.Dunham@arm.com InitReg(MISCREG_CPSR_MODE) 290612479SCurtis.Dunham@arm.com .allPrivileges(); 290712479SCurtis.Dunham@arm.com InitReg(MISCREG_CPSR_Q) 290812479SCurtis.Dunham@arm.com .allPrivileges(); 290912479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSCR_EXC) 291012479SCurtis.Dunham@arm.com .allPrivileges(); 291112479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSCR_QC) 291212479SCurtis.Dunham@arm.com .allPrivileges(); 291312479SCurtis.Dunham@arm.com InitReg(MISCREG_LOCKADDR) 291412479SCurtis.Dunham@arm.com .allPrivileges(); 291512479SCurtis.Dunham@arm.com InitReg(MISCREG_LOCKFLAG) 291612479SCurtis.Dunham@arm.com .allPrivileges(); 291712479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_MAIR0) 291812479SCurtis.Dunham@arm.com .mutex() 291912479SCurtis.Dunham@arm.com .banked(); 292012479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_MAIR0_NS) 292112479SCurtis.Dunham@arm.com .mutex() 292212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 292312479SCurtis.Dunham@arm.com .bankedChild(); 292412479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_MAIR0_S) 292512479SCurtis.Dunham@arm.com .mutex() 292612479SCurtis.Dunham@arm.com .bankedChild(); 292712479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_MAIR1) 292812479SCurtis.Dunham@arm.com .mutex() 292912479SCurtis.Dunham@arm.com .banked(); 293012479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_MAIR1_NS) 293112479SCurtis.Dunham@arm.com .mutex() 293212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 293312479SCurtis.Dunham@arm.com .bankedChild(); 293412479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_MAIR1_S) 293512479SCurtis.Dunham@arm.com .mutex() 293612479SCurtis.Dunham@arm.com .bankedChild(); 293712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVTYPER_PMCCFILTR) 293812479SCurtis.Dunham@arm.com .mutex(); 293912479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_RST) 294012479SCurtis.Dunham@arm.com .allPrivileges(); 294112479SCurtis.Dunham@arm.com InitReg(MISCREG_SEV_MAILBOX) 294212479SCurtis.Dunham@arm.com .allPrivileges(); 294312479SCurtis.Dunham@arm.com 294412479SCurtis.Dunham@arm.com // AArch32 CP14 registers 294512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDIDR) 294612479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 294712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDSCRint) 294812479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 294912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDCCINT) 295012479SCurtis.Dunham@arm.com .unimplemented() 295112479SCurtis.Dunham@arm.com .allPrivileges(); 295212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRTXint) 295312479SCurtis.Dunham@arm.com .unimplemented() 295412479SCurtis.Dunham@arm.com .allPrivileges(); 295512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRRXint) 295612479SCurtis.Dunham@arm.com .unimplemented() 295712479SCurtis.Dunham@arm.com .allPrivileges(); 295812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWFAR) 295912479SCurtis.Dunham@arm.com .unimplemented() 296012479SCurtis.Dunham@arm.com .allPrivileges(); 296112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGVCR) 296212479SCurtis.Dunham@arm.com .unimplemented() 296312479SCurtis.Dunham@arm.com .allPrivileges(); 296412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRRXext) 296512479SCurtis.Dunham@arm.com .unimplemented() 296612479SCurtis.Dunham@arm.com .allPrivileges(); 296712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDSCRext) 296812479SCurtis.Dunham@arm.com .unimplemented() 296912479SCurtis.Dunham@arm.com .warnNotFail() 297012479SCurtis.Dunham@arm.com .allPrivileges(); 297112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDTRTXext) 297212479SCurtis.Dunham@arm.com .unimplemented() 297312479SCurtis.Dunham@arm.com .allPrivileges(); 297412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSECCR) 297512479SCurtis.Dunham@arm.com .unimplemented() 297612479SCurtis.Dunham@arm.com .allPrivileges(); 297712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR0) 297812479SCurtis.Dunham@arm.com .unimplemented() 297912479SCurtis.Dunham@arm.com .allPrivileges(); 298012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR1) 298112479SCurtis.Dunham@arm.com .unimplemented() 298212479SCurtis.Dunham@arm.com .allPrivileges(); 298312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR2) 298412479SCurtis.Dunham@arm.com .unimplemented() 298512479SCurtis.Dunham@arm.com .allPrivileges(); 298612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR3) 298712479SCurtis.Dunham@arm.com .unimplemented() 298812479SCurtis.Dunham@arm.com .allPrivileges(); 298912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR4) 299012479SCurtis.Dunham@arm.com .unimplemented() 299112479SCurtis.Dunham@arm.com .allPrivileges(); 299212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR5) 299312479SCurtis.Dunham@arm.com .unimplemented() 299412479SCurtis.Dunham@arm.com .allPrivileges(); 299512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR0) 299612479SCurtis.Dunham@arm.com .unimplemented() 299712479SCurtis.Dunham@arm.com .allPrivileges(); 299812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR1) 299912479SCurtis.Dunham@arm.com .unimplemented() 300012479SCurtis.Dunham@arm.com .allPrivileges(); 300112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR2) 300212479SCurtis.Dunham@arm.com .unimplemented() 300312479SCurtis.Dunham@arm.com .allPrivileges(); 300412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR3) 300512479SCurtis.Dunham@arm.com .unimplemented() 300612479SCurtis.Dunham@arm.com .allPrivileges(); 300712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR4) 300812479SCurtis.Dunham@arm.com .unimplemented() 300912479SCurtis.Dunham@arm.com .allPrivileges(); 301012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR5) 301112479SCurtis.Dunham@arm.com .unimplemented() 301212479SCurtis.Dunham@arm.com .allPrivileges(); 301312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR0) 301412479SCurtis.Dunham@arm.com .unimplemented() 301512479SCurtis.Dunham@arm.com .allPrivileges(); 301612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR1) 301712479SCurtis.Dunham@arm.com .unimplemented() 301812479SCurtis.Dunham@arm.com .allPrivileges(); 301912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR2) 302012479SCurtis.Dunham@arm.com .unimplemented() 302112479SCurtis.Dunham@arm.com .allPrivileges(); 302212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR3) 302312479SCurtis.Dunham@arm.com .unimplemented() 302412479SCurtis.Dunham@arm.com .allPrivileges(); 302512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR0) 302612479SCurtis.Dunham@arm.com .unimplemented() 302712479SCurtis.Dunham@arm.com .allPrivileges(); 302812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR1) 302912479SCurtis.Dunham@arm.com .unimplemented() 303012479SCurtis.Dunham@arm.com .allPrivileges(); 303112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR2) 303212479SCurtis.Dunham@arm.com .unimplemented() 303312479SCurtis.Dunham@arm.com .allPrivileges(); 303412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR3) 303512479SCurtis.Dunham@arm.com .unimplemented() 303612479SCurtis.Dunham@arm.com .allPrivileges(); 303712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDRAR) 303812479SCurtis.Dunham@arm.com .unimplemented() 303912479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 304012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBXVR4) 304112479SCurtis.Dunham@arm.com .unimplemented() 304212479SCurtis.Dunham@arm.com .allPrivileges(); 304312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBXVR5) 304412479SCurtis.Dunham@arm.com .unimplemented() 304512479SCurtis.Dunham@arm.com .allPrivileges(); 304612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSLAR) 304712479SCurtis.Dunham@arm.com .unimplemented() 304812479SCurtis.Dunham@arm.com .allPrivileges().monSecureRead(0).monNonSecureRead(0); 304912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSLSR) 305012479SCurtis.Dunham@arm.com .unimplemented() 305112479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 305212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGOSDLR) 305312479SCurtis.Dunham@arm.com .unimplemented() 305412479SCurtis.Dunham@arm.com .allPrivileges(); 305512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGPRCR) 305612479SCurtis.Dunham@arm.com .unimplemented() 305712479SCurtis.Dunham@arm.com .allPrivileges(); 305812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDSAR) 305912479SCurtis.Dunham@arm.com .unimplemented() 306012479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 306112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMSET) 306212479SCurtis.Dunham@arm.com .unimplemented() 306312479SCurtis.Dunham@arm.com .allPrivileges(); 306412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMCLR) 306512479SCurtis.Dunham@arm.com .unimplemented() 306612479SCurtis.Dunham@arm.com .allPrivileges(); 306712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGAUTHSTATUS) 306812479SCurtis.Dunham@arm.com .unimplemented() 306912479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDEVID2) 307112479SCurtis.Dunham@arm.com .unimplemented() 307212479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDEVID1) 307412479SCurtis.Dunham@arm.com .unimplemented() 307512479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGDEVID0) 307712479SCurtis.Dunham@arm.com .unimplemented() 307812479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0); 307912479SCurtis.Dunham@arm.com InitReg(MISCREG_TEECR) 308012479SCurtis.Dunham@arm.com .unimplemented() 308112479SCurtis.Dunham@arm.com .allPrivileges(); 308212479SCurtis.Dunham@arm.com InitReg(MISCREG_JIDR) 308312479SCurtis.Dunham@arm.com .allPrivileges(); 308412479SCurtis.Dunham@arm.com InitReg(MISCREG_TEEHBR) 308512479SCurtis.Dunham@arm.com .allPrivileges(); 308612479SCurtis.Dunham@arm.com InitReg(MISCREG_JOSCR) 308712479SCurtis.Dunham@arm.com .allPrivileges(); 308812479SCurtis.Dunham@arm.com InitReg(MISCREG_JMCR) 308912479SCurtis.Dunham@arm.com .allPrivileges(); 309012479SCurtis.Dunham@arm.com 309112479SCurtis.Dunham@arm.com // AArch32 CP15 registers 309212479SCurtis.Dunham@arm.com InitReg(MISCREG_MIDR) 309312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 309412479SCurtis.Dunham@arm.com InitReg(MISCREG_CTR) 309512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 309612479SCurtis.Dunham@arm.com InitReg(MISCREG_TCMTR) 309712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 309812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBTR) 309912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310012479SCurtis.Dunham@arm.com InitReg(MISCREG_MPIDR) 310112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310212479SCurtis.Dunham@arm.com InitReg(MISCREG_REVIDR) 310312479SCurtis.Dunham@arm.com .unimplemented() 310412479SCurtis.Dunham@arm.com .warnNotFail() 310512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR0) 310712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 310812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR1) 310912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_DFR0) 311112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AFR0) 311312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR0) 311512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR1) 311712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 311812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR2) 311912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR3) 312112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR0) 312312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR1) 312512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR2) 312712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 312812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR3) 312912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR4) 313112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR5) 313312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313412479SCurtis.Dunham@arm.com InitReg(MISCREG_CCSIDR) 313512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313612479SCurtis.Dunham@arm.com InitReg(MISCREG_CLIDR) 313712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 313812479SCurtis.Dunham@arm.com InitReg(MISCREG_AIDR) 313912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 314012479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR) 314112479SCurtis.Dunham@arm.com .banked(); 314212479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR_NS) 314312479SCurtis.Dunham@arm.com .bankedChild() 314412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 314512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 314612479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR_S) 314712479SCurtis.Dunham@arm.com .bankedChild() 314812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 314912479SCurtis.Dunham@arm.com InitReg(MISCREG_VPIDR) 315012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 315112479SCurtis.Dunham@arm.com InitReg(MISCREG_VMPIDR) 315212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 315312479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR) 315413502SCurtis.Dunham@arm.com .banked() 315513502SCurtis.Dunham@arm.com // readMiscRegNoEffect() uses this metadata 315613502SCurtis.Dunham@arm.com // despite using children (below) as backing store 315713502SCurtis.Dunham@arm.com .res0(0x8d22c600) 315813502SCurtis.Dunham@arm.com .res1(0x00400800 | (SPAN ? 0 : 0x800000) 315913502SCurtis.Dunham@arm.com | (LSMAOE ? 0 : 0x10) 316013502SCurtis.Dunham@arm.com | (nTLSMD ? 0 : 0x8)); 316112479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_NS) 316212479SCurtis.Dunham@arm.com .bankedChild() 316312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 316412479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 316512479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_S) 316612479SCurtis.Dunham@arm.com .bankedChild() 316712479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 316812479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR) 316912479SCurtis.Dunham@arm.com .banked(); 317012479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_NS) 317112479SCurtis.Dunham@arm.com .bankedChild() 317212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 317312479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 317412479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_S) 317512479SCurtis.Dunham@arm.com .bankedChild() 317612479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 317712479SCurtis.Dunham@arm.com InitReg(MISCREG_CPACR) 317812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 317912479SCurtis.Dunham@arm.com InitReg(MISCREG_SCR) 318012479SCurtis.Dunham@arm.com .mon().secure().exceptUserMode() 318112479SCurtis.Dunham@arm.com .res0(0xff40) // [31:16], [6] 318212479SCurtis.Dunham@arm.com .res1(0x0030); // [5:4] 318312479SCurtis.Dunham@arm.com InitReg(MISCREG_SDER) 318412479SCurtis.Dunham@arm.com .mon(); 318512479SCurtis.Dunham@arm.com InitReg(MISCREG_NSACR) 318612479SCurtis.Dunham@arm.com .allPrivileges().hypWrite(0).privNonSecureWrite(0).exceptUserMode(); 318712479SCurtis.Dunham@arm.com InitReg(MISCREG_HSCTLR) 318813502SCurtis.Dunham@arm.com .hyp().monNonSecure() 318913502SCurtis.Dunham@arm.com .res0(0x0512c7c0 | (EnDB ? 0 : 0x2000) 319013502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 319113502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 319213502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 319313502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 319413502SCurtis.Dunham@arm.com .res1(0x30c50830); 319512479SCurtis.Dunham@arm.com InitReg(MISCREG_HACTLR) 319612479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 319712479SCurtis.Dunham@arm.com InitReg(MISCREG_HCR) 319812479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 319912479SCurtis.Dunham@arm.com InitReg(MISCREG_HDCR) 320012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320112479SCurtis.Dunham@arm.com InitReg(MISCREG_HCPTR) 320212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320312479SCurtis.Dunham@arm.com InitReg(MISCREG_HSTR) 320412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320512479SCurtis.Dunham@arm.com InitReg(MISCREG_HACR) 320612479SCurtis.Dunham@arm.com .unimplemented() 320712479SCurtis.Dunham@arm.com .warnNotFail() 320812479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 320912479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0) 321012479SCurtis.Dunham@arm.com .banked(); 321112479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_NS) 321212479SCurtis.Dunham@arm.com .bankedChild() 321312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 321412479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 321512479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_S) 321612479SCurtis.Dunham@arm.com .bankedChild() 321712479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 321812479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1) 321912479SCurtis.Dunham@arm.com .banked(); 322012479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1_NS) 322112479SCurtis.Dunham@arm.com .bankedChild() 322212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 322312479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 322412479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1_S) 322512479SCurtis.Dunham@arm.com .bankedChild() 322612479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 322712479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBCR) 322812479SCurtis.Dunham@arm.com .banked(); 322912479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBCR_NS) 323012479SCurtis.Dunham@arm.com .bankedChild() 323112661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 323212479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 323312479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBCR_S) 323412479SCurtis.Dunham@arm.com .bankedChild() 323512479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 323612479SCurtis.Dunham@arm.com InitReg(MISCREG_HTCR) 323712479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 323812479SCurtis.Dunham@arm.com InitReg(MISCREG_VTCR) 323912479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 324012479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR) 324112479SCurtis.Dunham@arm.com .banked(); 324212479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR_NS) 324312479SCurtis.Dunham@arm.com .bankedChild() 324412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 324512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 324612479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR_S) 324712479SCurtis.Dunham@arm.com .bankedChild() 324812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 324912479SCurtis.Dunham@arm.com InitReg(MISCREG_DFSR) 325012479SCurtis.Dunham@arm.com .banked(); 325112479SCurtis.Dunham@arm.com InitReg(MISCREG_DFSR_NS) 325212479SCurtis.Dunham@arm.com .bankedChild() 325312661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 325412479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 325512479SCurtis.Dunham@arm.com InitReg(MISCREG_DFSR_S) 325612479SCurtis.Dunham@arm.com .bankedChild() 325712479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 325812479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR) 325912479SCurtis.Dunham@arm.com .banked(); 326012479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR_NS) 326112479SCurtis.Dunham@arm.com .bankedChild() 326212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 326312479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 326412479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR_S) 326512479SCurtis.Dunham@arm.com .bankedChild() 326612479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 326712479SCurtis.Dunham@arm.com InitReg(MISCREG_ADFSR) 326812479SCurtis.Dunham@arm.com .unimplemented() 326912479SCurtis.Dunham@arm.com .warnNotFail() 327012479SCurtis.Dunham@arm.com .banked(); 327112479SCurtis.Dunham@arm.com InitReg(MISCREG_ADFSR_NS) 327212479SCurtis.Dunham@arm.com .unimplemented() 327312479SCurtis.Dunham@arm.com .warnNotFail() 327412479SCurtis.Dunham@arm.com .bankedChild() 327512661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 327612479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 327712479SCurtis.Dunham@arm.com InitReg(MISCREG_ADFSR_S) 327812479SCurtis.Dunham@arm.com .unimplemented() 327912479SCurtis.Dunham@arm.com .warnNotFail() 328012479SCurtis.Dunham@arm.com .bankedChild() 328112479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 328212479SCurtis.Dunham@arm.com InitReg(MISCREG_AIFSR) 328312479SCurtis.Dunham@arm.com .unimplemented() 328412479SCurtis.Dunham@arm.com .warnNotFail() 328512479SCurtis.Dunham@arm.com .banked(); 328612479SCurtis.Dunham@arm.com InitReg(MISCREG_AIFSR_NS) 328712479SCurtis.Dunham@arm.com .unimplemented() 328812479SCurtis.Dunham@arm.com .warnNotFail() 328912479SCurtis.Dunham@arm.com .bankedChild() 329012661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 329112479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 329212479SCurtis.Dunham@arm.com InitReg(MISCREG_AIFSR_S) 329312479SCurtis.Dunham@arm.com .unimplemented() 329412479SCurtis.Dunham@arm.com .warnNotFail() 329512479SCurtis.Dunham@arm.com .bankedChild() 329612479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 329712479SCurtis.Dunham@arm.com InitReg(MISCREG_HADFSR) 329812479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 329912479SCurtis.Dunham@arm.com InitReg(MISCREG_HAIFSR) 330012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 330112479SCurtis.Dunham@arm.com InitReg(MISCREG_HSR) 330212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 330312479SCurtis.Dunham@arm.com InitReg(MISCREG_DFAR) 330412479SCurtis.Dunham@arm.com .banked(); 330512479SCurtis.Dunham@arm.com InitReg(MISCREG_DFAR_NS) 330612479SCurtis.Dunham@arm.com .bankedChild() 330712661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 330812479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 330912479SCurtis.Dunham@arm.com InitReg(MISCREG_DFAR_S) 331012479SCurtis.Dunham@arm.com .bankedChild() 331112479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 331212479SCurtis.Dunham@arm.com InitReg(MISCREG_IFAR) 331312479SCurtis.Dunham@arm.com .banked(); 331412479SCurtis.Dunham@arm.com InitReg(MISCREG_IFAR_NS) 331512479SCurtis.Dunham@arm.com .bankedChild() 331612661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 331712479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 331812479SCurtis.Dunham@arm.com InitReg(MISCREG_IFAR_S) 331912479SCurtis.Dunham@arm.com .bankedChild() 332012479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 332112479SCurtis.Dunham@arm.com InitReg(MISCREG_HDFAR) 332212479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 332312479SCurtis.Dunham@arm.com InitReg(MISCREG_HIFAR) 332412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 332512479SCurtis.Dunham@arm.com InitReg(MISCREG_HPFAR) 332612479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 332712479SCurtis.Dunham@arm.com InitReg(MISCREG_ICIALLUIS) 332812479SCurtis.Dunham@arm.com .unimplemented() 332912479SCurtis.Dunham@arm.com .warnNotFail() 333012479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 333112479SCurtis.Dunham@arm.com InitReg(MISCREG_BPIALLIS) 333212479SCurtis.Dunham@arm.com .unimplemented() 333312479SCurtis.Dunham@arm.com .warnNotFail() 333412479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 333512479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR) 333612479SCurtis.Dunham@arm.com .banked(); 333712479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR_NS) 333812479SCurtis.Dunham@arm.com .bankedChild() 333912661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 334012479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 334112479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR_S) 334212479SCurtis.Dunham@arm.com .bankedChild() 334312479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 334412479SCurtis.Dunham@arm.com InitReg(MISCREG_ICIALLU) 334512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 334612479SCurtis.Dunham@arm.com InitReg(MISCREG_ICIMVAU) 334712479SCurtis.Dunham@arm.com .unimplemented() 334812479SCurtis.Dunham@arm.com .warnNotFail() 334912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 335012479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15ISB) 335112479SCurtis.Dunham@arm.com .writes(1); 335212479SCurtis.Dunham@arm.com InitReg(MISCREG_BPIALL) 335312479SCurtis.Dunham@arm.com .unimplemented() 335412479SCurtis.Dunham@arm.com .warnNotFail() 335512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 335612479SCurtis.Dunham@arm.com InitReg(MISCREG_BPIMVA) 335712479SCurtis.Dunham@arm.com .unimplemented() 335812479SCurtis.Dunham@arm.com .warnNotFail() 335912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 336012479SCurtis.Dunham@arm.com InitReg(MISCREG_DCIMVAC) 336112479SCurtis.Dunham@arm.com .unimplemented() 336212479SCurtis.Dunham@arm.com .warnNotFail() 336312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 336412479SCurtis.Dunham@arm.com InitReg(MISCREG_DCISW) 336512479SCurtis.Dunham@arm.com .unimplemented() 336612479SCurtis.Dunham@arm.com .warnNotFail() 336712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 336812479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CPR) 336912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337012479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CPW) 337112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337212479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CUR) 337312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337412479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1CUW) 337512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 337612479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOPR) 337712479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 337812479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOPW) 337912479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338012479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOUR) 338112479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338212479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS12NSOUW) 338312479SCurtis.Dunham@arm.com .privSecureWrite().hypWrite().monSecureWrite().monNonSecureWrite(); 338412479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCMVAC) 338512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 338612479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCSW) 338712479SCurtis.Dunham@arm.com .unimplemented() 338812479SCurtis.Dunham@arm.com .warnNotFail() 338912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 339012479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15DSB) 339112479SCurtis.Dunham@arm.com .writes(1); 339212479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15DMB) 339312479SCurtis.Dunham@arm.com .writes(1); 339412479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCMVAU) 339512479SCurtis.Dunham@arm.com .unimplemented() 339612479SCurtis.Dunham@arm.com .warnNotFail() 339712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 339812479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCIMVAC) 339912479SCurtis.Dunham@arm.com .unimplemented() 340012479SCurtis.Dunham@arm.com .warnNotFail() 340112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 340212479SCurtis.Dunham@arm.com InitReg(MISCREG_DCCISW) 340312479SCurtis.Dunham@arm.com .unimplemented() 340412479SCurtis.Dunham@arm.com .warnNotFail() 340512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 340612479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1HR) 340712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 340812479SCurtis.Dunham@arm.com InitReg(MISCREG_ATS1HW) 340912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 341012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLIS) 341112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAIS) 341312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIASIDIS) 341512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAAIS) 341712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 341812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVALIS) 341912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAALIS) 342112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342212479SCurtis.Dunham@arm.com InitReg(MISCREG_ITLBIALL) 342312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342412479SCurtis.Dunham@arm.com InitReg(MISCREG_ITLBIMVA) 342512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342612479SCurtis.Dunham@arm.com InitReg(MISCREG_ITLBIASID) 342712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 342812479SCurtis.Dunham@arm.com InitReg(MISCREG_DTLBIALL) 342912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343012479SCurtis.Dunham@arm.com InitReg(MISCREG_DTLBIMVA) 343112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343212479SCurtis.Dunham@arm.com InitReg(MISCREG_DTLBIASID) 343312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALL) 343512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVA) 343712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 343812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIASID) 343912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAA) 344112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAL) 344312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAAL) 344512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 344612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2IS) 344712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 344812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2LIS) 344912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLHIS) 345112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAHIS) 345312479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLNSNHIS) 345512479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVALHIS) 345712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 345812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2) 345912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIIPAS2L) 346112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLH) 346312479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVAH) 346512479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIALLNSNH) 346712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 346812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBIMVALH) 346912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 347012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCR) 347112479SCurtis.Dunham@arm.com .allPrivileges(); 347212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENSET) 347312479SCurtis.Dunham@arm.com .allPrivileges(); 347412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENCLR) 347512479SCurtis.Dunham@arm.com .allPrivileges(); 347612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSR) 347712479SCurtis.Dunham@arm.com .allPrivileges(); 347812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSWINC) 347912479SCurtis.Dunham@arm.com .allPrivileges(); 348012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSELR) 348112479SCurtis.Dunham@arm.com .allPrivileges(); 348212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID0) 348312479SCurtis.Dunham@arm.com .allPrivileges(); 348412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID1) 348512479SCurtis.Dunham@arm.com .allPrivileges(); 348612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCNTR) 348712479SCurtis.Dunham@arm.com .allPrivileges(); 348812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVTYPER) 348912479SCurtis.Dunham@arm.com .allPrivileges(); 349012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCFILTR) 349112479SCurtis.Dunham@arm.com .allPrivileges(); 349212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVCNTR) 349312479SCurtis.Dunham@arm.com .allPrivileges(); 349412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMUSERENR) 349512479SCurtis.Dunham@arm.com .allPrivileges().userNonSecureWrite(0).userSecureWrite(0); 349612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENSET) 349712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 349812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENCLR) 349912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 350012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSSET) 350112479SCurtis.Dunham@arm.com .unimplemented() 350212479SCurtis.Dunham@arm.com .allPrivileges(); 350312479SCurtis.Dunham@arm.com InitReg(MISCREG_L2CTLR) 350412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 350512479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ECTLR) 350612479SCurtis.Dunham@arm.com .unimplemented() 350712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 350812479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR) 350912479SCurtis.Dunham@arm.com .banked(); 351012479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_NS) 351112479SCurtis.Dunham@arm.com .bankedChild() 351212661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 351312479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 351412479SCurtis.Dunham@arm.com InitReg(MISCREG_PRRR_S) 351512479SCurtis.Dunham@arm.com .bankedChild() 351612479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 351712479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR0) 351812479SCurtis.Dunham@arm.com .banked(); 351912479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR0_NS) 352012479SCurtis.Dunham@arm.com .bankedChild() 352112661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 352212479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 352312479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR0_S) 352412479SCurtis.Dunham@arm.com .bankedChild() 352512479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 352612479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR) 352712479SCurtis.Dunham@arm.com .banked(); 352812479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_NS) 352912479SCurtis.Dunham@arm.com .bankedChild() 353012661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 353112479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 353212479SCurtis.Dunham@arm.com InitReg(MISCREG_NMRR_S) 353312479SCurtis.Dunham@arm.com .bankedChild() 353412479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 353512479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR1) 353612479SCurtis.Dunham@arm.com .banked(); 353712479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR1_NS) 353812479SCurtis.Dunham@arm.com .bankedChild() 353912661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 354012479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 354112479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR1_S) 354212479SCurtis.Dunham@arm.com .bankedChild() 354312479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 354412479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR0) 354512479SCurtis.Dunham@arm.com .banked(); 354612479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR0_NS) 354712479SCurtis.Dunham@arm.com .bankedChild() 354812661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 354912479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 355012479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR0_S) 355112479SCurtis.Dunham@arm.com .bankedChild() 355212479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 355312479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR1) 355412479SCurtis.Dunham@arm.com .banked(); 355512479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR1_NS) 355612479SCurtis.Dunham@arm.com .bankedChild() 355712661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 355812479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 355912479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR1_S) 356012479SCurtis.Dunham@arm.com .bankedChild() 356112479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 356212479SCurtis.Dunham@arm.com InitReg(MISCREG_HMAIR0) 356312479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 356412479SCurtis.Dunham@arm.com InitReg(MISCREG_HMAIR1) 356512479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 356612479SCurtis.Dunham@arm.com InitReg(MISCREG_HAMAIR0) 356712479SCurtis.Dunham@arm.com .unimplemented() 356812479SCurtis.Dunham@arm.com .warnNotFail() 356912479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 357012479SCurtis.Dunham@arm.com InitReg(MISCREG_HAMAIR1) 357112479SCurtis.Dunham@arm.com .unimplemented() 357212479SCurtis.Dunham@arm.com .warnNotFail() 357312479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 357412479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR) 357512479SCurtis.Dunham@arm.com .banked(); 357612479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_NS) 357712479SCurtis.Dunham@arm.com .bankedChild() 357812661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 357912479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 358012479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_S) 358112479SCurtis.Dunham@arm.com .bankedChild() 358212479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 358312479SCurtis.Dunham@arm.com InitReg(MISCREG_MVBAR) 358413395Sgiacomo.travaglini@arm.com .mon().secure() 358513395Sgiacomo.travaglini@arm.com .hypRead(FullSystem && system->highestEL() == EL2) 358613395Sgiacomo.travaglini@arm.com .privRead(FullSystem && system->highestEL() == EL1) 358713395Sgiacomo.travaglini@arm.com .exceptUserMode(); 358812479SCurtis.Dunham@arm.com InitReg(MISCREG_RMR) 358912479SCurtis.Dunham@arm.com .unimplemented() 359012479SCurtis.Dunham@arm.com .mon().secure().exceptUserMode(); 359112479SCurtis.Dunham@arm.com InitReg(MISCREG_ISR) 359212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 359312479SCurtis.Dunham@arm.com InitReg(MISCREG_HVBAR) 359413502SCurtis.Dunham@arm.com .hyp().monNonSecure() 359513502SCurtis.Dunham@arm.com .res0(0x1f); 359612479SCurtis.Dunham@arm.com InitReg(MISCREG_FCSEIDR) 359712479SCurtis.Dunham@arm.com .unimplemented() 359812479SCurtis.Dunham@arm.com .warnNotFail() 359912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 360012479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR) 360112479SCurtis.Dunham@arm.com .banked(); 360212479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_NS) 360312479SCurtis.Dunham@arm.com .bankedChild() 360412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 360512479SCurtis.Dunham@arm.com .nonSecure().exceptUserMode(); 360612479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_S) 360712479SCurtis.Dunham@arm.com .bankedChild() 360812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 360912479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURW) 361012479SCurtis.Dunham@arm.com .banked(); 361112479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURW_NS) 361212479SCurtis.Dunham@arm.com .bankedChild() 361312661Sgiacomo.travaglini@arm.com .allPrivileges() 361412661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 361512661Sgiacomo.travaglini@arm.com .monSecure(0); 361612479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURW_S) 361712479SCurtis.Dunham@arm.com .bankedChild() 361812479SCurtis.Dunham@arm.com .secure(); 361912479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURO) 362012479SCurtis.Dunham@arm.com .banked(); 362112479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURO_NS) 362212479SCurtis.Dunham@arm.com .bankedChild() 362312661Sgiacomo.travaglini@arm.com .allPrivileges() 362412661Sgiacomo.travaglini@arm.com .userNonSecureWrite(0).userSecureRead(1) 362512661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 362612661Sgiacomo.travaglini@arm.com .monSecure(0); 362712479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRURO_S) 362812479SCurtis.Dunham@arm.com .bankedChild() 362912479SCurtis.Dunham@arm.com .secure().userSecureWrite(0); 363012479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRPRW) 363112479SCurtis.Dunham@arm.com .banked(); 363212479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRPRW_NS) 363312479SCurtis.Dunham@arm.com .bankedChild() 363412661Sgiacomo.travaglini@arm.com .nonSecure().exceptUserMode() 363512661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3); 363612479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRPRW_S) 363712479SCurtis.Dunham@arm.com .bankedChild() 363812479SCurtis.Dunham@arm.com .secure().exceptUserMode(); 363912479SCurtis.Dunham@arm.com InitReg(MISCREG_HTPIDR) 364012479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 364112479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTFRQ) 364212479SCurtis.Dunham@arm.com .unverifiable() 364312479SCurtis.Dunham@arm.com .reads(1).mon(); 364412479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTKCTL) 364512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 364612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL) 364712479SCurtis.Dunham@arm.com .banked(); 364812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL_NS) 364912479SCurtis.Dunham@arm.com .bankedChild() 365012661Sgiacomo.travaglini@arm.com .allPrivileges() 365112661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 365212661Sgiacomo.travaglini@arm.com .monSecure(0); 365312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL_S) 365412479SCurtis.Dunham@arm.com .bankedChild() 365512479SCurtis.Dunham@arm.com .secure().user(1); 365612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL) 365712479SCurtis.Dunham@arm.com .banked(); 365812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL_NS) 365912479SCurtis.Dunham@arm.com .bankedChild() 366012661Sgiacomo.travaglini@arm.com .allPrivileges() 366112661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 366212661Sgiacomo.travaglini@arm.com .monSecure(0); 366312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL_S) 366412479SCurtis.Dunham@arm.com .bankedChild() 366512479SCurtis.Dunham@arm.com .secure().user(1); 366612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_TVAL) 366712479SCurtis.Dunham@arm.com .allPrivileges(); 366812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CTL) 366912479SCurtis.Dunham@arm.com .allPrivileges(); 367012479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHCTL) 367112479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 367212479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_TVAL) 367312479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 367412479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CTL) 367512479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 367612479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA0) 367712479SCurtis.Dunham@arm.com .unimplemented() 367812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 367912479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA1) 368012479SCurtis.Dunham@arm.com .unimplemented() 368112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 368212479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA2) 368312479SCurtis.Dunham@arm.com .unimplemented() 368412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 368512479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA3) 368612479SCurtis.Dunham@arm.com .unimplemented() 368712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 368812479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA0) 368912479SCurtis.Dunham@arm.com .unimplemented() 369012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369112479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA1) 369212479SCurtis.Dunham@arm.com .unimplemented() 369312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369412479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA2) 369512479SCurtis.Dunham@arm.com .unimplemented() 369612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 369712479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA3) 369812479SCurtis.Dunham@arm.com .unimplemented() 369912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 370012479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA4) 370112479SCurtis.Dunham@arm.com .unimplemented() 370212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 370312479SCurtis.Dunham@arm.com InitReg(MISCREG_RAMINDEX) 370412479SCurtis.Dunham@arm.com .unimplemented() 370512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 370612479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ACTLR) 370712479SCurtis.Dunham@arm.com .unimplemented() 370812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 370912479SCurtis.Dunham@arm.com InitReg(MISCREG_CBAR) 371012479SCurtis.Dunham@arm.com .unimplemented() 371112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 371212479SCurtis.Dunham@arm.com InitReg(MISCREG_HTTBR) 371312479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 371412479SCurtis.Dunham@arm.com InitReg(MISCREG_VTTBR) 371512479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 371612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPCT) 371712479SCurtis.Dunham@arm.com .reads(1); 371812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVCT) 371912479SCurtis.Dunham@arm.com .unverifiable() 372012479SCurtis.Dunham@arm.com .reads(1); 372112479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL) 372212479SCurtis.Dunham@arm.com .banked(); 372312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL_NS) 372412479SCurtis.Dunham@arm.com .bankedChild() 372512661Sgiacomo.travaglini@arm.com .allPrivileges() 372612661Sgiacomo.travaglini@arm.com .privSecure(!aarch32EL3) 372712661Sgiacomo.travaglini@arm.com .monSecure(0); 372812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL_S) 372912479SCurtis.Dunham@arm.com .bankedChild() 373012479SCurtis.Dunham@arm.com .secure().user(1); 373112479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CVAL) 373212479SCurtis.Dunham@arm.com .allPrivileges(); 373312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVOFF) 373412479SCurtis.Dunham@arm.com .hyp().monNonSecure(); 373512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CVAL) 373612479SCurtis.Dunham@arm.com .hypWrite().monNonSecureRead(); 373712479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUMERRSR) 373812479SCurtis.Dunham@arm.com .unimplemented() 373912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 374012479SCurtis.Dunham@arm.com InitReg(MISCREG_L2MERRSR) 374112479SCurtis.Dunham@arm.com .unimplemented() 374212479SCurtis.Dunham@arm.com .warnNotFail() 374312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 374412479SCurtis.Dunham@arm.com 374512479SCurtis.Dunham@arm.com // AArch64 registers (Op0=2); 374612479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCCINT_EL1) 374712479SCurtis.Dunham@arm.com .allPrivileges(); 374812479SCurtis.Dunham@arm.com InitReg(MISCREG_OSDTRRX_EL1) 374912479SCurtis.Dunham@arm.com .allPrivileges() 375012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDTRRXext); 375112479SCurtis.Dunham@arm.com InitReg(MISCREG_MDSCR_EL1) 375212479SCurtis.Dunham@arm.com .allPrivileges() 375312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDSCRext); 375412479SCurtis.Dunham@arm.com InitReg(MISCREG_OSDTRTX_EL1) 375512479SCurtis.Dunham@arm.com .allPrivileges() 375612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDTRTXext); 375712479SCurtis.Dunham@arm.com InitReg(MISCREG_OSECCR_EL1) 375812479SCurtis.Dunham@arm.com .allPrivileges() 375912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSECCR); 376012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR0_EL1) 376112479SCurtis.Dunham@arm.com .allPrivileges() 376212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR0 /*, MISCREG_DBGBXVR0 */); 376312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR1_EL1) 376412479SCurtis.Dunham@arm.com .allPrivileges() 376512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR1 /*, MISCREG_DBGBXVR1 */); 376612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR2_EL1) 376712479SCurtis.Dunham@arm.com .allPrivileges() 376812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR2 /*, MISCREG_DBGBXVR2 */); 376912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR3_EL1) 377012479SCurtis.Dunham@arm.com .allPrivileges() 377112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR3 /*, MISCREG_DBGBXVR3 */); 377212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR4_EL1) 377312479SCurtis.Dunham@arm.com .allPrivileges() 377412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR4 /*, MISCREG_DBGBXVR4 */); 377512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBVR5_EL1) 377612479SCurtis.Dunham@arm.com .allPrivileges() 377712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBVR5 /*, MISCREG_DBGBXVR5 */); 377812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR0_EL1) 377912479SCurtis.Dunham@arm.com .allPrivileges() 378012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR0); 378112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR1_EL1) 378212479SCurtis.Dunham@arm.com .allPrivileges() 378312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR1); 378412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR2_EL1) 378512479SCurtis.Dunham@arm.com .allPrivileges() 378612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR2); 378712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR3_EL1) 378812479SCurtis.Dunham@arm.com .allPrivileges() 378912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR3); 379012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR4_EL1) 379112479SCurtis.Dunham@arm.com .allPrivileges() 379212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR4); 379312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGBCR5_EL1) 379412479SCurtis.Dunham@arm.com .allPrivileges() 379512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGBCR5); 379612479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR0_EL1) 379712479SCurtis.Dunham@arm.com .allPrivileges() 379812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR0); 379912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR1_EL1) 380012479SCurtis.Dunham@arm.com .allPrivileges() 380112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR1); 380212479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR2_EL1) 380312479SCurtis.Dunham@arm.com .allPrivileges() 380412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR2); 380512479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWVR3_EL1) 380612479SCurtis.Dunham@arm.com .allPrivileges() 380712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWVR3); 380812479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR0_EL1) 380912479SCurtis.Dunham@arm.com .allPrivileges() 381012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR0); 381112479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR1_EL1) 381212479SCurtis.Dunham@arm.com .allPrivileges() 381312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR1); 381412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR2_EL1) 381512479SCurtis.Dunham@arm.com .allPrivileges() 381612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR2); 381712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGWCR3_EL1) 381812479SCurtis.Dunham@arm.com .allPrivileges() 381912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGWCR3); 382012479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCCSR_EL0) 382112479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 382212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDSCRint); 382312479SCurtis.Dunham@arm.com InitReg(MISCREG_MDDTR_EL0) 382412479SCurtis.Dunham@arm.com .allPrivileges(); 382512479SCurtis.Dunham@arm.com InitReg(MISCREG_MDDTRTX_EL0) 382612479SCurtis.Dunham@arm.com .allPrivileges(); 382712479SCurtis.Dunham@arm.com InitReg(MISCREG_MDDTRRX_EL0) 382812479SCurtis.Dunham@arm.com .allPrivileges(); 382912479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGVCR32_EL2) 383012479SCurtis.Dunham@arm.com .allPrivileges() 383112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGVCR); 383212479SCurtis.Dunham@arm.com InitReg(MISCREG_MDRAR_EL1) 383312479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 383412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGDRAR); 383512479SCurtis.Dunham@arm.com InitReg(MISCREG_OSLAR_EL1) 383612479SCurtis.Dunham@arm.com .allPrivileges().monSecureRead(0).monNonSecureRead(0) 383712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSLAR); 383812479SCurtis.Dunham@arm.com InitReg(MISCREG_OSLSR_EL1) 383912479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 384012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSLSR); 384112479SCurtis.Dunham@arm.com InitReg(MISCREG_OSDLR_EL1) 384212479SCurtis.Dunham@arm.com .allPrivileges() 384312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGOSDLR); 384412479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGPRCR_EL1) 384512479SCurtis.Dunham@arm.com .allPrivileges() 384612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGPRCR); 384712479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMSET_EL1) 384812479SCurtis.Dunham@arm.com .allPrivileges() 384912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGCLAIMSET); 385012479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGCLAIMCLR_EL1) 385112479SCurtis.Dunham@arm.com .allPrivileges() 385212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGCLAIMCLR); 385312479SCurtis.Dunham@arm.com InitReg(MISCREG_DBGAUTHSTATUS_EL1) 385412479SCurtis.Dunham@arm.com .allPrivileges().monSecureWrite(0).monNonSecureWrite(0) 385512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DBGAUTHSTATUS); 385612479SCurtis.Dunham@arm.com InitReg(MISCREG_TEECR32_EL1); 385712479SCurtis.Dunham@arm.com InitReg(MISCREG_TEEHBR32_EL1); 385812479SCurtis.Dunham@arm.com 385912479SCurtis.Dunham@arm.com // AArch64 registers (Op0=1,3); 386012479SCurtis.Dunham@arm.com InitReg(MISCREG_MIDR_EL1) 386112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 386212479SCurtis.Dunham@arm.com InitReg(MISCREG_MPIDR_EL1) 386312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 386412479SCurtis.Dunham@arm.com InitReg(MISCREG_REVIDR_EL1) 386512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 386612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR0_EL1) 386712690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 386812690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_PFR0); 386912479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_PFR1_EL1) 387012690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 387112690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_PFR1); 387212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_DFR0_EL1) 387312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0) 387412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_ID_DFR0); 387512479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AFR0_EL1) 387612690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 387712690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_AFR0); 387812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR0_EL1) 387912690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388012690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR0); 388112479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR1_EL1) 388212690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388312690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR1); 388412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR2_EL1) 388512690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388612690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR2); 388712479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_MMFR3_EL1) 388812690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 388912690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_MMFR3); 389012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR0_EL1) 389112690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 389212690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR0); 389312479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR1_EL1) 389412690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 389512690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR1); 389612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR2_EL1) 389712690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 389812690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR2); 389912479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR3_EL1) 390012690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390112690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR3); 390212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR4_EL1) 390312690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390412690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR4); 390512479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_ISAR5_EL1) 390612690Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0) 390712690Sgiacomo.travaglini@arm.com .mapsTo(MISCREG_ID_ISAR5); 390812479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR0_EL1) 390912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391012479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR1_EL1) 391112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391212479SCurtis.Dunham@arm.com InitReg(MISCREG_MVFR2_EL1) 391312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64PFR0_EL1) 391512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64PFR1_EL1) 391712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 391812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64DFR0_EL1) 391912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64DFR1_EL1) 392112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64AFR0_EL1) 392312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392412479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64AFR1_EL1) 392512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392612479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64ISAR0_EL1) 392712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 392812479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64ISAR1_EL1) 392912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393012479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64MMFR0_EL1) 393112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393212479SCurtis.Dunham@arm.com InitReg(MISCREG_ID_AA64MMFR1_EL1) 393312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393413116Sgiacomo.travaglini@arm.com InitReg(MISCREG_ID_AA64MMFR2_EL1) 393513116Sgiacomo.travaglini@arm.com .allPrivileges().exceptUserMode().writes(0); 393612479SCurtis.Dunham@arm.com InitReg(MISCREG_CCSIDR_EL1) 393712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 393812479SCurtis.Dunham@arm.com InitReg(MISCREG_CLIDR_EL1) 393912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 394012479SCurtis.Dunham@arm.com InitReg(MISCREG_AIDR_EL1) 394112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 394212479SCurtis.Dunham@arm.com InitReg(MISCREG_CSSELR_EL1) 394312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 394412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CSSELR_NS); 394512479SCurtis.Dunham@arm.com InitReg(MISCREG_CTR_EL0) 394612479SCurtis.Dunham@arm.com .reads(1); 394712479SCurtis.Dunham@arm.com InitReg(MISCREG_DCZID_EL0) 394812479SCurtis.Dunham@arm.com .reads(1); 394912479SCurtis.Dunham@arm.com InitReg(MISCREG_VPIDR_EL2) 395012479SCurtis.Dunham@arm.com .hyp().mon() 395112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VPIDR); 395212479SCurtis.Dunham@arm.com InitReg(MISCREG_VMPIDR_EL2) 395312479SCurtis.Dunham@arm.com .hyp().mon() 395412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VMPIDR); 395512479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_EL1) 395612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 395713502SCurtis.Dunham@arm.com .res0( 0x20440 | (EnDB ? 0 : 0x2000) 395813502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 395913502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 396013502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 396113502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 396213502SCurtis.Dunham@arm.com .res1(0x500800 | (SPAN ? 0 : 0x800000) 396313502SCurtis.Dunham@arm.com | (nTLSMD ? 0 : 0x8000000) 396413502SCurtis.Dunham@arm.com | (LSMAOE ? 0 : 0x10000000)) 396512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SCTLR_NS); 396612479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_EL1) 396712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 396812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_ACTLR_NS); 396912479SCurtis.Dunham@arm.com InitReg(MISCREG_CPACR_EL1) 397012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 397112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CPACR); 397212479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_EL2) 397312479SCurtis.Dunham@arm.com .hyp().mon() 397413502SCurtis.Dunham@arm.com .res0(0x0512c7c0 | (EnDB ? 0 : 0x2000) 397513502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 397613502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 397713502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 397813502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 397913502SCurtis.Dunham@arm.com .res1(0x30c50830) 398012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HSCTLR); 398112479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_EL2) 398212479SCurtis.Dunham@arm.com .hyp().mon() 398312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HACTLR); 398412479SCurtis.Dunham@arm.com InitReg(MISCREG_HCR_EL2) 398512479SCurtis.Dunham@arm.com .hyp().mon() 398612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HCR /*, MISCREG_HCR2*/); 398712479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCR_EL2) 398812479SCurtis.Dunham@arm.com .hyp().mon() 398912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HDCR); 399012479SCurtis.Dunham@arm.com InitReg(MISCREG_CPTR_EL2) 399112479SCurtis.Dunham@arm.com .hyp().mon() 399212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HCPTR); 399312479SCurtis.Dunham@arm.com InitReg(MISCREG_HSTR_EL2) 399412479SCurtis.Dunham@arm.com .hyp().mon() 399512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HSTR); 399612479SCurtis.Dunham@arm.com InitReg(MISCREG_HACR_EL2) 399712479SCurtis.Dunham@arm.com .hyp().mon() 399812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HACR); 399912479SCurtis.Dunham@arm.com InitReg(MISCREG_SCTLR_EL3) 400013502SCurtis.Dunham@arm.com .mon() 400113502SCurtis.Dunham@arm.com .res0(0x0512c7c0 | (EnDB ? 0 : 0x2000) 400213502SCurtis.Dunham@arm.com | (IESB ? 0 : 0x200000) 400313502SCurtis.Dunham@arm.com | (EnDA ? 0 : 0x8000000) 400413502SCurtis.Dunham@arm.com | (EnIB ? 0 : 0x40000000) 400513502SCurtis.Dunham@arm.com | (EnIA ? 0 : 0x80000000)) 400613502SCurtis.Dunham@arm.com .res1(0x30c50830); 400712479SCurtis.Dunham@arm.com InitReg(MISCREG_ACTLR_EL3) 400812479SCurtis.Dunham@arm.com .mon(); 400912479SCurtis.Dunham@arm.com InitReg(MISCREG_SCR_EL3) 401012479SCurtis.Dunham@arm.com .mon() 401112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SCR); // NAM D7-2005 401212479SCurtis.Dunham@arm.com InitReg(MISCREG_SDER32_EL3) 401312479SCurtis.Dunham@arm.com .mon() 401412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SDER); 401512479SCurtis.Dunham@arm.com InitReg(MISCREG_CPTR_EL3) 401612479SCurtis.Dunham@arm.com .mon(); 401712479SCurtis.Dunham@arm.com InitReg(MISCREG_MDCR_EL3) 401812479SCurtis.Dunham@arm.com .mon(); 401912479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_EL1) 402012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 402112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TTBR0_NS); 402212479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR1_EL1) 402312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 402412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TTBR1_NS); 402512479SCurtis.Dunham@arm.com InitReg(MISCREG_TCR_EL1) 402612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 402712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TTBCR_NS); 402812479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_EL2) 402912479SCurtis.Dunham@arm.com .hyp().mon() 403012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HTTBR); 403112675Sgiacomo.travaglini@arm.com InitReg(MISCREG_TTBR1_EL2) 403212709Sgiacomo.travaglini@arm.com .hyp().mon(); 403312479SCurtis.Dunham@arm.com InitReg(MISCREG_TCR_EL2) 403412479SCurtis.Dunham@arm.com .hyp().mon() 403512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HTCR); 403612479SCurtis.Dunham@arm.com InitReg(MISCREG_VTTBR_EL2) 403712479SCurtis.Dunham@arm.com .hyp().mon() 403812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VTTBR); 403912479SCurtis.Dunham@arm.com InitReg(MISCREG_VTCR_EL2) 404012479SCurtis.Dunham@arm.com .hyp().mon() 404112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VTCR); 404212479SCurtis.Dunham@arm.com InitReg(MISCREG_TTBR0_EL3) 404312479SCurtis.Dunham@arm.com .mon(); 404412479SCurtis.Dunham@arm.com InitReg(MISCREG_TCR_EL3) 404512479SCurtis.Dunham@arm.com .mon(); 404612479SCurtis.Dunham@arm.com InitReg(MISCREG_DACR32_EL2) 404712479SCurtis.Dunham@arm.com .hyp().mon() 404812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DACR_NS); 404912479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_EL1) 405012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 405112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SPSR_SVC); // NAM C5.2.17 SPSR_EL1 405212479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_EL1) 405312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 405412479SCurtis.Dunham@arm.com InitReg(MISCREG_SP_EL0) 405512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 405612479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSEL) 405712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 405812479SCurtis.Dunham@arm.com InitReg(MISCREG_CURRENTEL) 405912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 406012479SCurtis.Dunham@arm.com InitReg(MISCREG_NZCV) 406112479SCurtis.Dunham@arm.com .allPrivileges(); 406212479SCurtis.Dunham@arm.com InitReg(MISCREG_DAIF) 406312479SCurtis.Dunham@arm.com .allPrivileges(); 406412479SCurtis.Dunham@arm.com InitReg(MISCREG_FPCR) 406512479SCurtis.Dunham@arm.com .allPrivileges(); 406612479SCurtis.Dunham@arm.com InitReg(MISCREG_FPSR) 406712479SCurtis.Dunham@arm.com .allPrivileges(); 406812479SCurtis.Dunham@arm.com InitReg(MISCREG_DSPSR_EL0) 406912479SCurtis.Dunham@arm.com .allPrivileges(); 407012479SCurtis.Dunham@arm.com InitReg(MISCREG_DLR_EL0) 407112479SCurtis.Dunham@arm.com .allPrivileges(); 407212479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_EL2) 407312479SCurtis.Dunham@arm.com .hyp().mon() 407412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SPSR_HYP); // NAM C5.2.18 SPSR_EL2 407512479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_EL2) 407612479SCurtis.Dunham@arm.com .hyp().mon(); 407712479SCurtis.Dunham@arm.com InitReg(MISCREG_SP_EL1) 407812479SCurtis.Dunham@arm.com .hyp().mon(); 407912479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_IRQ_AA64) 408012479SCurtis.Dunham@arm.com .hyp().mon(); 408112479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_ABT_AA64) 408212479SCurtis.Dunham@arm.com .hyp().mon(); 408312479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_UND_AA64) 408412479SCurtis.Dunham@arm.com .hyp().mon(); 408512479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_FIQ_AA64) 408612479SCurtis.Dunham@arm.com .hyp().mon(); 408712479SCurtis.Dunham@arm.com InitReg(MISCREG_SPSR_EL3) 408812479SCurtis.Dunham@arm.com .mon() 408912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_SPSR_MON); // NAM C5.2.19 SPSR_EL3 409012479SCurtis.Dunham@arm.com InitReg(MISCREG_ELR_EL3) 409112479SCurtis.Dunham@arm.com .mon(); 409212479SCurtis.Dunham@arm.com InitReg(MISCREG_SP_EL2) 409312479SCurtis.Dunham@arm.com .mon(); 409412479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR0_EL1) 409512479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 409612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_ADFSR_NS); 409712479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR1_EL1) 409812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 409912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_AIFSR_NS); 410012479SCurtis.Dunham@arm.com InitReg(MISCREG_ESR_EL1) 410112479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 410212479SCurtis.Dunham@arm.com InitReg(MISCREG_IFSR32_EL2) 410312479SCurtis.Dunham@arm.com .hyp().mon() 410412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_IFSR_NS); 410512479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR0_EL2) 410612479SCurtis.Dunham@arm.com .hyp().mon() 410712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HADFSR); 410812479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR1_EL2) 410912479SCurtis.Dunham@arm.com .hyp().mon() 411012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HAIFSR); 411112479SCurtis.Dunham@arm.com InitReg(MISCREG_ESR_EL2) 411212479SCurtis.Dunham@arm.com .hyp().mon() 411312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HSR); 411412479SCurtis.Dunham@arm.com InitReg(MISCREG_FPEXC32_EL2) 411512669Schuan.zhu@arm.com .hyp().mon().mapsTo(MISCREG_FPEXC); 411612479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR0_EL3) 411712479SCurtis.Dunham@arm.com .mon(); 411812479SCurtis.Dunham@arm.com InitReg(MISCREG_AFSR1_EL3) 411912479SCurtis.Dunham@arm.com .mon(); 412012479SCurtis.Dunham@arm.com InitReg(MISCREG_ESR_EL3) 412112479SCurtis.Dunham@arm.com .mon(); 412212479SCurtis.Dunham@arm.com InitReg(MISCREG_FAR_EL1) 412312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 412412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_DFAR_NS, MISCREG_IFAR_NS); 412512479SCurtis.Dunham@arm.com InitReg(MISCREG_FAR_EL2) 412612479SCurtis.Dunham@arm.com .hyp().mon() 412712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HDFAR, MISCREG_HIFAR); 412812479SCurtis.Dunham@arm.com InitReg(MISCREG_HPFAR_EL2) 412912479SCurtis.Dunham@arm.com .hyp().mon() 413012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HPFAR); 413112479SCurtis.Dunham@arm.com InitReg(MISCREG_FAR_EL3) 413212479SCurtis.Dunham@arm.com .mon(); 413312479SCurtis.Dunham@arm.com InitReg(MISCREG_IC_IALLUIS) 413412479SCurtis.Dunham@arm.com .warnNotFail() 413512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 413612479SCurtis.Dunham@arm.com InitReg(MISCREG_PAR_EL1) 413712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 413812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PAR_NS); 413912479SCurtis.Dunham@arm.com InitReg(MISCREG_IC_IALLU) 414012479SCurtis.Dunham@arm.com .warnNotFail() 414112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 414212479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_IVAC_Xt) 414312479SCurtis.Dunham@arm.com .warnNotFail() 414412502Snikos.nikoleris@arm.com .writes(1).exceptUserMode(); 414512479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_ISW_Xt) 414612479SCurtis.Dunham@arm.com .warnNotFail() 414712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 414812479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E1R_Xt) 414912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415012479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E1W_Xt) 415112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415212479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E0R_Xt) 415312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415412479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E0W_Xt) 415512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415612479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CSW_Xt) 415712479SCurtis.Dunham@arm.com .warnNotFail() 415812479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 415912479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CISW_Xt) 416012479SCurtis.Dunham@arm.com .warnNotFail() 416112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 416212479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_ZVA_Xt) 416312479SCurtis.Dunham@arm.com .warnNotFail() 416412479SCurtis.Dunham@arm.com .writes(1).userSecureWrite(0); 416512479SCurtis.Dunham@arm.com InitReg(MISCREG_IC_IVAU_Xt) 416612479SCurtis.Dunham@arm.com .writes(1); 416712479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CVAC_Xt) 416812479SCurtis.Dunham@arm.com .warnNotFail() 416912479SCurtis.Dunham@arm.com .writes(1); 417012479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CVAU_Xt) 417112479SCurtis.Dunham@arm.com .warnNotFail() 417212479SCurtis.Dunham@arm.com .writes(1); 417312479SCurtis.Dunham@arm.com InitReg(MISCREG_DC_CIVAC_Xt) 417412479SCurtis.Dunham@arm.com .warnNotFail() 417512479SCurtis.Dunham@arm.com .writes(1); 417612479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E2R_Xt) 417712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 417812479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E2W_Xt) 417912479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 418012479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E1R_Xt) 418112479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 418212479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E1W_Xt) 418312479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 418412479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E0R_Xt) 418512479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 418612479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S12E0W_Xt) 418712479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 418812479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E3R_Xt) 418912479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 419012479SCurtis.Dunham@arm.com InitReg(MISCREG_AT_S1E3W_Xt) 419112479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 419212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLE1IS) 419312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 419412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE1IS_Xt) 419512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 419612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ASIDE1IS_Xt) 419712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 419812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAAE1IS_Xt) 419912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE1IS_Xt) 420112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAALE1IS_Xt) 420312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLE1) 420512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE1_Xt) 420712479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 420812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ASIDE1_Xt) 420912479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAAE1_Xt) 421112479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE1_Xt) 421312479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAALE1_Xt) 421512479SCurtis.Dunham@arm.com .writes(1).exceptUserMode(); 421612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2E1IS_Xt) 421712479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 421812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2LE1IS_Xt) 421912479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 422012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE2IS) 422112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 422212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE2IS_Xt) 422312479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 422412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE1IS) 422512479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 422612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE2IS_Xt) 422712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 422812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLS12E1IS) 422912479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2E1_Xt) 423112479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_IPAS2LE1_Xt) 423312479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 423412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE2) 423512479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 423612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE2_Xt) 423712479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 423812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE1) 423912479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 424012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE2_Xt) 424112479SCurtis.Dunham@arm.com .monNonSecureWrite().hypWrite(); 424212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VMALLS12E1) 424312479SCurtis.Dunham@arm.com .hypWrite().monSecureWrite().monNonSecureWrite(); 424412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE3IS) 424512479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 424612479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE3IS_Xt) 424712479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 424812479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE3IS_Xt) 424912479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425012479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_ALLE3) 425112479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425212479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VAE3_Xt) 425312479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425412479SCurtis.Dunham@arm.com InitReg(MISCREG_TLBI_VALE3_Xt) 425512479SCurtis.Dunham@arm.com .monSecureWrite().monNonSecureWrite(); 425612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENSET_EL1) 425712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 425812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMINTENSET); 425912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMINTENCLR_EL1) 426012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 426112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMINTENCLR); 426212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCR_EL0) 426312479SCurtis.Dunham@arm.com .allPrivileges() 426412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCR); 426512479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENSET_EL0) 426612479SCurtis.Dunham@arm.com .allPrivileges() 426712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCNTENSET); 426812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCNTENCLR_EL0) 426912479SCurtis.Dunham@arm.com .allPrivileges() 427012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCNTENCLR); 427112479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSCLR_EL0) 427212479SCurtis.Dunham@arm.com .allPrivileges(); 427312479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMOVSCLR); 427412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSWINC_EL0) 427512479SCurtis.Dunham@arm.com .writes(1).user() 427612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMSWINC); 427712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMSELR_EL0) 427812479SCurtis.Dunham@arm.com .allPrivileges() 427912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMSELR); 428012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID0_EL0) 428112479SCurtis.Dunham@arm.com .reads(1).user() 428212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCEID0); 428312479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCEID1_EL0) 428412479SCurtis.Dunham@arm.com .reads(1).user() 428512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCEID1); 428612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCNTR_EL0) 428712479SCurtis.Dunham@arm.com .allPrivileges() 428812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMCCNTR); 428912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVTYPER_EL0) 429012479SCurtis.Dunham@arm.com .allPrivileges() 429112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMXEVTYPER); 429212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMCCFILTR_EL0) 429312479SCurtis.Dunham@arm.com .allPrivileges(); 429412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMXEVCNTR_EL0) 429512479SCurtis.Dunham@arm.com .allPrivileges() 429612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMXEVCNTR); 429712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMUSERENR_EL0) 429812479SCurtis.Dunham@arm.com .allPrivileges().userNonSecureWrite(0).userSecureWrite(0) 429912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMUSERENR); 430012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMOVSSET_EL0) 430112479SCurtis.Dunham@arm.com .allPrivileges() 430212479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PMOVSSET); 430312479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR_EL1) 430412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 430512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_PRRR_NS, MISCREG_NMRR_NS); 430612479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR_EL1) 430712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 430812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_AMAIR0_NS, MISCREG_AMAIR1_NS); 430912479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR_EL2) 431012479SCurtis.Dunham@arm.com .hyp().mon() 431112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HMAIR0, MISCREG_HMAIR1); 431212479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR_EL2) 431312479SCurtis.Dunham@arm.com .hyp().mon() 431412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HAMAIR0, MISCREG_HAMAIR1); 431512479SCurtis.Dunham@arm.com InitReg(MISCREG_MAIR_EL3) 431612479SCurtis.Dunham@arm.com .mon(); 431712479SCurtis.Dunham@arm.com InitReg(MISCREG_AMAIR_EL3) 431812479SCurtis.Dunham@arm.com .mon(); 431912479SCurtis.Dunham@arm.com InitReg(MISCREG_L2CTLR_EL1) 432012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 432112479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ECTLR_EL1) 432212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 432312479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_EL1) 432412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 432512479SCurtis.Dunham@arm.com .mapsTo(MISCREG_VBAR_NS); 432612479SCurtis.Dunham@arm.com InitReg(MISCREG_RVBAR_EL1) 432712479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 432812479SCurtis.Dunham@arm.com InitReg(MISCREG_ISR_EL1) 432912479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 433012479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_EL2) 433112479SCurtis.Dunham@arm.com .hyp().mon() 433213502SCurtis.Dunham@arm.com .res0(0x7ff) 433312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HVBAR); 433412479SCurtis.Dunham@arm.com InitReg(MISCREG_RVBAR_EL2) 433512479SCurtis.Dunham@arm.com .mon().hyp().writes(0); 433612479SCurtis.Dunham@arm.com InitReg(MISCREG_VBAR_EL3) 433712479SCurtis.Dunham@arm.com .mon(); 433812479SCurtis.Dunham@arm.com InitReg(MISCREG_RVBAR_EL3) 433912479SCurtis.Dunham@arm.com .mon().writes(0); 434012479SCurtis.Dunham@arm.com InitReg(MISCREG_RMR_EL3) 434112479SCurtis.Dunham@arm.com .mon(); 434212479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_EL1) 434312479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 434412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CONTEXTIDR_NS); 434512479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL1) 434612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 434712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TPIDRPRW_NS); 434812479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL0) 434912479SCurtis.Dunham@arm.com .allPrivileges() 435012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TPIDRURW_NS); 435112479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDRRO_EL0) 435212479SCurtis.Dunham@arm.com .allPrivileges().userNonSecureWrite(0).userSecureWrite(0) 435312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_TPIDRURO_NS); 435412479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL2) 435512479SCurtis.Dunham@arm.com .hyp().mon() 435612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_HTPIDR); 435712479SCurtis.Dunham@arm.com InitReg(MISCREG_TPIDR_EL3) 435812479SCurtis.Dunham@arm.com .mon(); 435912479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTKCTL_EL1) 436012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode() 436112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTKCTL); 436212479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTFRQ_EL0) 436312479SCurtis.Dunham@arm.com .reads(1).mon() 436412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTFRQ); 436512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPCT_EL0) 436612479SCurtis.Dunham@arm.com .reads(1) 436712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTPCT); /* 64b */ 436812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVCT_EL0) 436912479SCurtis.Dunham@arm.com .unverifiable() 437012479SCurtis.Dunham@arm.com .reads(1) 437112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTVCT); /* 64b */ 437212479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_TVAL_EL0) 437312479SCurtis.Dunham@arm.com .allPrivileges() 437412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTP_TVAL_NS); 437512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CTL_EL0) 437612479SCurtis.Dunham@arm.com .allPrivileges() 437712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTP_CTL_NS); 437812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTP_CVAL_EL0) 437912479SCurtis.Dunham@arm.com .allPrivileges() 438012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTP_CVAL_NS); /* 64b */ 438112479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_TVAL_EL0) 438212479SCurtis.Dunham@arm.com .allPrivileges() 438312479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTV_TVAL); 438412479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CTL_EL0) 438512479SCurtis.Dunham@arm.com .allPrivileges() 438612479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTV_CTL); 438712479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTV_CVAL_EL0) 438812479SCurtis.Dunham@arm.com .allPrivileges() 438912479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTV_CVAL); /* 64b */ 439012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR0_EL0) 439112479SCurtis.Dunham@arm.com .allPrivileges(); 439212479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR0); 439312479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR1_EL0) 439412479SCurtis.Dunham@arm.com .allPrivileges(); 439512479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR1); 439612479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR2_EL0) 439712479SCurtis.Dunham@arm.com .allPrivileges(); 439812479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR2); 439912479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR3_EL0) 440012479SCurtis.Dunham@arm.com .allPrivileges(); 440112479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR3); 440212479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR4_EL0) 440312479SCurtis.Dunham@arm.com .allPrivileges(); 440412479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR4); 440512479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVCNTR5_EL0) 440612479SCurtis.Dunham@arm.com .allPrivileges(); 440712479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVCNTR5); 440812479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER0_EL0) 440912479SCurtis.Dunham@arm.com .allPrivileges(); 441012479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER0); 441112479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER1_EL0) 441212479SCurtis.Dunham@arm.com .allPrivileges(); 441312479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER1); 441412479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER2_EL0) 441512479SCurtis.Dunham@arm.com .allPrivileges(); 441612479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER2); 441712479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER3_EL0) 441812479SCurtis.Dunham@arm.com .allPrivileges(); 441912479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER3); 442012479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER4_EL0) 442112479SCurtis.Dunham@arm.com .allPrivileges(); 442212479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER4); 442312479SCurtis.Dunham@arm.com InitReg(MISCREG_PMEVTYPER5_EL0) 442412479SCurtis.Dunham@arm.com .allPrivileges(); 442512479SCurtis.Dunham@arm.com// .mapsTo(MISCREG_PMEVTYPER5); 442612479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTVOFF_EL2) 442712479SCurtis.Dunham@arm.com .hyp().mon() 442812479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTVOFF); /* 64b */ 442912479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHCTL_EL2) 443012733Sandreas.sandberg@arm.com .mon().hyp() 443112479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHCTL); 443212479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_TVAL_EL2) 443312733Sandreas.sandberg@arm.com .mon().hyp() 443412479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHP_TVAL); 443512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CTL_EL2) 443612733Sandreas.sandberg@arm.com .mon().hyp() 443712479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHP_CTL); 443812479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTHP_CVAL_EL2) 443912733Sandreas.sandberg@arm.com .mon().hyp() 444012479SCurtis.Dunham@arm.com .mapsTo(MISCREG_CNTHP_CVAL); /* 64b */ 444112479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPS_TVAL_EL1) 444212733Sandreas.sandberg@arm.com .mon().privSecure(); 444312479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPS_CTL_EL1) 444412733Sandreas.sandberg@arm.com .mon().privSecure(); 444512479SCurtis.Dunham@arm.com InitReg(MISCREG_CNTPS_CVAL_EL1) 444612733Sandreas.sandberg@arm.com .mon().privSecure(); 444712479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA0_EL1) 444812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 444912479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA1_EL1) 445012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445112479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA2_EL1) 445212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445312479SCurtis.Dunham@arm.com InitReg(MISCREG_IL1DATA3_EL1) 445412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445512479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA0_EL1) 445612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445712479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA1_EL1) 445812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 445912479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA2_EL1) 446012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446112479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA3_EL1) 446212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446312479SCurtis.Dunham@arm.com InitReg(MISCREG_DL1DATA4_EL1) 446412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446512479SCurtis.Dunham@arm.com InitReg(MISCREG_L2ACTLR_EL1) 446612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446712479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUACTLR_EL1) 446812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 446912479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUECTLR_EL1) 447012479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447112479SCurtis.Dunham@arm.com InitReg(MISCREG_CPUMERRSR_EL1) 447212479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447312479SCurtis.Dunham@arm.com InitReg(MISCREG_L2MERRSR_EL1) 447412479SCurtis.Dunham@arm.com .unimplemented() 447512479SCurtis.Dunham@arm.com .warnNotFail() 447612479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode(); 447712479SCurtis.Dunham@arm.com InitReg(MISCREG_CBAR_EL1) 447812479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 447912479SCurtis.Dunham@arm.com InitReg(MISCREG_CONTEXTIDR_EL2) 448012479SCurtis.Dunham@arm.com .mon().hyp(); 448113531Sjairo.balart@metempsy.com 448213531Sjairo.balart@metempsy.com // GICv3 AArch64 448313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_PMR_EL1) 448413531Sjairo.balart@metempsy.com .res0(0xffffff00) // [31:8] 448513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 448613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_PMR); 448713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR0_EL1) 448813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 448913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IAR0); 449013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR0_EL1) 449113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 449213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_EOIR0); 449313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR0_EL1) 449413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 449513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_HPPIR0); 449613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR0_EL1) 449713531Sjairo.balart@metempsy.com .res0(0xfffffff8) // [31:3] 449813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 449913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR0); 450013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R0_EL1) 450113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 450213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R0); 450313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R1_EL1) 450413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 450513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R1); 450613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R2_EL1) 450713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 450813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R2); 450913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R3_EL1) 451013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 451113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP0R3); 451213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_EL1) 451313531Sjairo.balart@metempsy.com .banked() 451413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R0); 451513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_EL1_NS) 451613531Sjairo.balart@metempsy.com .bankedChild() 451713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 451813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R0_NS); 451913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_EL1_S) 452013531Sjairo.balart@metempsy.com .bankedChild() 452113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 452213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R0_S); 452313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_EL1) 452413531Sjairo.balart@metempsy.com .banked() 452513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R1); 452613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_EL1_NS) 452713531Sjairo.balart@metempsy.com .bankedChild() 452813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 452913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R1_NS); 453013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_EL1_S) 453113531Sjairo.balart@metempsy.com .bankedChild() 453213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 453313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R1_S); 453413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_EL1) 453513531Sjairo.balart@metempsy.com .banked() 453613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R2); 453713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_EL1_NS) 453813531Sjairo.balart@metempsy.com .bankedChild() 453913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 454013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R2_NS); 454113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_EL1_S) 454213531Sjairo.balart@metempsy.com .bankedChild() 454313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 454413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R2_S); 454513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_EL1) 454613531Sjairo.balart@metempsy.com .banked() 454713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R3); 454813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_EL1_NS) 454913531Sjairo.balart@metempsy.com .bankedChild() 455013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 455113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R3_NS); 455213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_EL1_S) 455313531Sjairo.balart@metempsy.com .bankedChild() 455413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 455513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_AP1R3_S); 455613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_DIR_EL1) 455713531Sjairo.balart@metempsy.com .res0(0xFF000000) // [31:24] 455813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 455913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_DIR); 456013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_RPR_EL1) 456113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 456213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_RPR); 456313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI1R_EL1) 456413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 456513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SGI1R); 456613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_ASGI1R_EL1) 456713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 456813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_ASGI1R); 456913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI0R_EL1) 457013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 457113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SGI0R); 457213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR1_EL1) 457313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 457413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IAR1); 457513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR1_EL1) 457613531Sjairo.balart@metempsy.com .res0(0xFF000000) // [31:24] 457713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0) 457813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_EOIR1); 457913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR1_EL1) 458013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0) 458113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_HPPIR1); 458213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_EL1) 458313531Sjairo.balart@metempsy.com .banked() 458413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR1); 458513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_EL1_NS) 458613531Sjairo.balart@metempsy.com .bankedChild() 458713531Sjairo.balart@metempsy.com .res0(0xfffffff8) // [31:3] 458813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 458913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR1_NS); 459013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_EL1_S) 459113531Sjairo.balart@metempsy.com .bankedChild() 459213531Sjairo.balart@metempsy.com .res0(0xfffffff8) // [31:3] 459313531Sjairo.balart@metempsy.com .secure().exceptUserMode() 459413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_BPR1_S); 459513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL1) 459613531Sjairo.balart@metempsy.com .banked() 459713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_CTLR); 459813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL1_NS) 459913531Sjairo.balart@metempsy.com .bankedChild() 460013531Sjairo.balart@metempsy.com .res0(0xFFFB00BC) // [31:19, 17:16, 7, 5:2] 460113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 460213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_CTLR_NS); 460313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL1_S) 460413531Sjairo.balart@metempsy.com .bankedChild() 460513531Sjairo.balart@metempsy.com .res0(0xFFFB00BC) // [31:19, 17:16, 7, 5:2] 460613531Sjairo.balart@metempsy.com .secure().exceptUserMode() 460713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_CTLR_S); 460813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL1) 460913531Sjairo.balart@metempsy.com .banked() 461013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SRE); 461113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL1_NS) 461213531Sjairo.balart@metempsy.com .bankedChild() 461313531Sjairo.balart@metempsy.com .res0(0xFFFFFFF8) // [31:3] 461413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 461513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SRE_NS); 461613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL1_S) 461713531Sjairo.balart@metempsy.com .bankedChild() 461813531Sjairo.balart@metempsy.com .res0(0xFFFFFFF8) // [31:3] 461913531Sjairo.balart@metempsy.com .secure().exceptUserMode() 462013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_SRE_S); 462113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN0_EL1) 462213531Sjairo.balart@metempsy.com .res0(0xFFFFFFFE) // [31:1] 462313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 462413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN0); 462513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL1) 462613531Sjairo.balart@metempsy.com .banked() 462713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN1); 462813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL1_NS) 462913531Sjairo.balart@metempsy.com .bankedChild() 463013531Sjairo.balart@metempsy.com .res0(0xFFFFFFFE) // [31:1] 463113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 463213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN1_NS); 463313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL1_S) 463413531Sjairo.balart@metempsy.com .bankedChild() 463513531Sjairo.balart@metempsy.com .res0(0xFFFFFFFE) // [31:1] 463613531Sjairo.balart@metempsy.com .secure().exceptUserMode() 463713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_IGRPEN1_S); 463813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL2) 463913531Sjairo.balart@metempsy.com .hyp().mon() 464013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_HSRE); 464113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_EL3) 464213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 464313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_MCTLR); 464413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_EL3) 464513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 464613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_MSRE); 464713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_EL3) 464813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode() 464913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICC_MGRPEN1); 465013531Sjairo.balart@metempsy.com 465113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R0_EL2) 465213531Sjairo.balart@metempsy.com .hyp().mon() 465313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R0); 465413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R1_EL2) 465513531Sjairo.balart@metempsy.com .hyp().mon() 465613531Sjairo.balart@metempsy.com .unimplemented() 465713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R1); 465813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R2_EL2) 465913531Sjairo.balart@metempsy.com .hyp().mon() 466013531Sjairo.balart@metempsy.com .unimplemented() 466113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R2); 466213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R3_EL2) 466313531Sjairo.balart@metempsy.com .hyp().mon() 466413531Sjairo.balart@metempsy.com .unimplemented() 466513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP0R3); 466613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R0_EL2) 466713531Sjairo.balart@metempsy.com .hyp().mon() 466813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R0); 466913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R1_EL2) 467013531Sjairo.balart@metempsy.com .hyp().mon() 467113531Sjairo.balart@metempsy.com .unimplemented() 467213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R1); 467313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R2_EL2) 467413531Sjairo.balart@metempsy.com .hyp().mon() 467513531Sjairo.balart@metempsy.com .unimplemented() 467613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R2); 467713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R3_EL2) 467813531Sjairo.balart@metempsy.com .hyp().mon() 467913531Sjairo.balart@metempsy.com .unimplemented() 468013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_AP1R3); 468113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_HCR_EL2) 468213531Sjairo.balart@metempsy.com .hyp().mon() 468313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_HCR); 468413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VTR_EL2) 468513531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 468613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_VTR); 468713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_MISR_EL2) 468813531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 468913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_MISR); 469013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_EISR_EL2) 469113531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 469213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_EISR); 469313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_ELRSR_EL2) 469413531Sjairo.balart@metempsy.com .hyp().mon().writes(0) 469513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_ELRSR); 469613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VMCR_EL2) 469713531Sjairo.balart@metempsy.com .hyp().mon() 469813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_VMCR); 469913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR0_EL2) 470013531Sjairo.balart@metempsy.com .hyp().mon() 470113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 470213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR1_EL2) 470313531Sjairo.balart@metempsy.com .hyp().mon() 470413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 470513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR2_EL2) 470613531Sjairo.balart@metempsy.com .hyp().mon() 470713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 470813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR3_EL2) 470913531Sjairo.balart@metempsy.com .hyp().mon() 471013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR4_EL2) 471213531Sjairo.balart@metempsy.com .hyp().mon() 471313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR5_EL2) 471513531Sjairo.balart@metempsy.com .hyp().mon() 471613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 471713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR6_EL2) 471813531Sjairo.balart@metempsy.com .hyp().mon() 471913531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR7_EL2) 472113531Sjairo.balart@metempsy.com .hyp().mon() 472213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR8_EL2) 472413531Sjairo.balart@metempsy.com .hyp().mon() 472513531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR9_EL2) 472713531Sjairo.balart@metempsy.com .hyp().mon() 472813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 472913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR10_EL2) 473013531Sjairo.balart@metempsy.com .hyp().mon() 473113531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 473213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR11_EL2) 473313531Sjairo.balart@metempsy.com .hyp().mon() 473413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 473513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR12_EL2) 473613531Sjairo.balart@metempsy.com .hyp().mon() 473713531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 473813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR13_EL2) 473913531Sjairo.balart@metempsy.com .hyp().mon() 474013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR14_EL2) 474213531Sjairo.balart@metempsy.com .hyp().mon() 474313531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR15_EL2) 474513531Sjairo.balart@metempsy.com .hyp().mon() 474613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 474713531Sjairo.balart@metempsy.com 474813531Sjairo.balart@metempsy.com // GICv3 AArch32 474913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R0) 475013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R1) 475213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R2) 475413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP0R3) 475613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0) 475813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 475913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_NS) 476013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R0_S) 476213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1) 476413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_NS) 476613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R1_S) 476813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 476913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2) 477013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_NS) 477213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R2_S) 477413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3) 477613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_NS) 477813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 477913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_AP1R3_S) 478013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_ASGI1R) 478213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 478313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR0) 478413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1) 478613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_NS) 478813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 478913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_BPR1_S) 479013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR) 479213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_NS) 479413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_CTLR_S) 479613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 479713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_DIR) 479813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 479913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR0) 480013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 480113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_EOIR1) 480213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 480313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR0) 480413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 480513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HPPIR1) 480613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 480713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_HSRE) 480813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 480913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR0) 481013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 481113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IAR1) 481213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 481313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN0) 481413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 481513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1) 481613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 481713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_NS) 481813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 481913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_IGRPEN1_S) 482013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_MCTLR) 482213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_MGRPEN1) 482413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_MSRE) 482613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_PMR) 482813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 482913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_RPR) 483013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().writes(0); 483113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI0R) 483213531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 483313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SGI1R) 483413531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode().reads(0); 483513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE) 483613531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 483713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_NS) 483813531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 483913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICC_SRE_S) 484013531Sjairo.balart@metempsy.com .allPrivileges().exceptUserMode(); 484113531Sjairo.balart@metempsy.com 484213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R0) 484313531Sjairo.balart@metempsy.com .hyp().mon(); 484413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R1) 484513531Sjairo.balart@metempsy.com .hyp().mon(); 484613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R2) 484713531Sjairo.balart@metempsy.com .hyp().mon(); 484813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP0R3) 484913531Sjairo.balart@metempsy.com .hyp().mon(); 485013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R0) 485113531Sjairo.balart@metempsy.com .hyp().mon(); 485213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R1) 485313531Sjairo.balart@metempsy.com .hyp().mon(); 485413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R2) 485513531Sjairo.balart@metempsy.com .hyp().mon(); 485613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_AP1R3) 485713531Sjairo.balart@metempsy.com .hyp().mon(); 485813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_HCR) 485913531Sjairo.balart@metempsy.com .hyp().mon(); 486013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VTR) 486113531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 486213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_MISR) 486313531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 486413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_EISR) 486513531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 486613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_ELRSR) 486713531Sjairo.balart@metempsy.com .hyp().mon().writes(0); 486813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_VMCR) 486913531Sjairo.balart@metempsy.com .hyp().mon(); 487013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR0) 487113531Sjairo.balart@metempsy.com .hyp().mon(); 487213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR1) 487313531Sjairo.balart@metempsy.com .hyp().mon(); 487413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR2) 487513531Sjairo.balart@metempsy.com .hyp().mon(); 487613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR3) 487713531Sjairo.balart@metempsy.com .hyp().mon(); 487813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR4) 487913531Sjairo.balart@metempsy.com .hyp().mon(); 488013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR5) 488113531Sjairo.balart@metempsy.com .hyp().mon(); 488213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR6) 488313531Sjairo.balart@metempsy.com .hyp().mon(); 488413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR7) 488513531Sjairo.balart@metempsy.com .hyp().mon(); 488613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR8) 488713531Sjairo.balart@metempsy.com .hyp().mon(); 488813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR9) 488913531Sjairo.balart@metempsy.com .hyp().mon(); 489013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR10) 489113531Sjairo.balart@metempsy.com .hyp().mon(); 489213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR11) 489313531Sjairo.balart@metempsy.com .hyp().mon(); 489413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR12) 489513531Sjairo.balart@metempsy.com .hyp().mon(); 489613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR13) 489713531Sjairo.balart@metempsy.com .hyp().mon(); 489813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR14) 489913531Sjairo.balart@metempsy.com .hyp().mon(); 490013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LR15) 490113531Sjairo.balart@metempsy.com .hyp().mon(); 490213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC0) 490313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR0) 490413531Sjairo.balart@metempsy.com .hyp().mon(); 490513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC1) 490613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR1) 490713531Sjairo.balart@metempsy.com .hyp().mon(); 490813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC2) 490913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR2) 491013531Sjairo.balart@metempsy.com .hyp().mon(); 491113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC3) 491213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR3) 491313531Sjairo.balart@metempsy.com .hyp().mon(); 491413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC4) 491513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR4) 491613531Sjairo.balart@metempsy.com .hyp().mon(); 491713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC5) 491813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR5) 491913531Sjairo.balart@metempsy.com .hyp().mon(); 492013531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC6) 492113531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR6) 492213531Sjairo.balart@metempsy.com .hyp().mon(); 492313531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC7) 492413531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR7) 492513531Sjairo.balart@metempsy.com .hyp().mon(); 492613531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC8) 492713531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR8) 492813531Sjairo.balart@metempsy.com .hyp().mon(); 492913531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC9) 493013531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR9) 493113531Sjairo.balart@metempsy.com .hyp().mon(); 493213531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC10) 493313531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR10) 493413531Sjairo.balart@metempsy.com .hyp().mon(); 493513531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC11) 493613531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR11) 493713531Sjairo.balart@metempsy.com .hyp().mon(); 493813531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC12) 493913531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR12) 494013531Sjairo.balart@metempsy.com .hyp().mon(); 494113531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC13) 494213531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR13) 494313531Sjairo.balart@metempsy.com .hyp().mon(); 494413531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC14) 494513531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR14) 494613531Sjairo.balart@metempsy.com .hyp().mon(); 494713531Sjairo.balart@metempsy.com InitReg(MISCREG_ICH_LRC15) 494813531Sjairo.balart@metempsy.com .mapsTo(MISCREG_ICH_LR15) 494913531Sjairo.balart@metempsy.com .hyp().mon(); 495013531Sjairo.balart@metempsy.com 495112816Sgiacomo.travaglini@arm.com InitReg(MISCREG_CNTHV_CTL_EL2) 495212816Sgiacomo.travaglini@arm.com .mon().hyp(); 495312816Sgiacomo.travaglini@arm.com InitReg(MISCREG_CNTHV_CVAL_EL2) 495412816Sgiacomo.travaglini@arm.com .mon().hyp(); 495512816Sgiacomo.travaglini@arm.com InitReg(MISCREG_CNTHV_TVAL_EL2) 495612816Sgiacomo.travaglini@arm.com .mon().hyp(); 495712479SCurtis.Dunham@arm.com 495813759Sgiacomo.gabrielli@arm.com // SVE 495913759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ID_AA64ZFR0_EL1) 496013759Sgiacomo.gabrielli@arm.com .allPrivileges().exceptUserMode().writes(0); 496113759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL3) 496213759Sgiacomo.gabrielli@arm.com .mon(); 496313759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL2) 496413759Sgiacomo.gabrielli@arm.com .hyp().mon(); 496513759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL12) 496613759Sgiacomo.gabrielli@arm.com .unimplemented().warnNotFail(); 496713759Sgiacomo.gabrielli@arm.com InitReg(MISCREG_ZCR_EL1) 496813759Sgiacomo.gabrielli@arm.com .allPrivileges().exceptUserMode(); 496913759Sgiacomo.gabrielli@arm.com 497012479SCurtis.Dunham@arm.com // Dummy registers 497112479SCurtis.Dunham@arm.com InitReg(MISCREG_NOP) 497212479SCurtis.Dunham@arm.com .allPrivileges(); 497312479SCurtis.Dunham@arm.com InitReg(MISCREG_RAZ) 497412479SCurtis.Dunham@arm.com .allPrivileges().exceptUserMode().writes(0); 497512479SCurtis.Dunham@arm.com InitReg(MISCREG_CP14_UNIMPL) 497612479SCurtis.Dunham@arm.com .unimplemented() 497712479SCurtis.Dunham@arm.com .warnNotFail(); 497812479SCurtis.Dunham@arm.com InitReg(MISCREG_CP15_UNIMPL) 497912479SCurtis.Dunham@arm.com .unimplemented() 498012479SCurtis.Dunham@arm.com .warnNotFail(); 498112479SCurtis.Dunham@arm.com InitReg(MISCREG_UNKNOWN); 498212714Sgiacomo.travaglini@arm.com InitReg(MISCREG_IMPDEF_UNIMPL) 498312714Sgiacomo.travaglini@arm.com .unimplemented() 498412714Sgiacomo.travaglini@arm.com .warnNotFail(impdefAsNop); 498512479SCurtis.Dunham@arm.com 498612815Sgiacomo.travaglini@arm.com // RAS extension (unimplemented) 498712815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERRIDR_EL1) 498812815Sgiacomo.travaglini@arm.com .unimplemented() 498912815Sgiacomo.travaglini@arm.com .warnNotFail(); 499012815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERRSELR_EL1) 499112815Sgiacomo.travaglini@arm.com .unimplemented() 499212815Sgiacomo.travaglini@arm.com .warnNotFail(); 499312815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXFR_EL1) 499412815Sgiacomo.travaglini@arm.com .unimplemented() 499512815Sgiacomo.travaglini@arm.com .warnNotFail(); 499612815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXCTLR_EL1) 499712815Sgiacomo.travaglini@arm.com .unimplemented() 499812815Sgiacomo.travaglini@arm.com .warnNotFail(); 499912815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXSTATUS_EL1) 500012815Sgiacomo.travaglini@arm.com .unimplemented() 500112815Sgiacomo.travaglini@arm.com .warnNotFail(); 500212815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXADDR_EL1) 500312815Sgiacomo.travaglini@arm.com .unimplemented() 500412815Sgiacomo.travaglini@arm.com .warnNotFail(); 500512815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXMISC0_EL1) 500612815Sgiacomo.travaglini@arm.com .unimplemented() 500712815Sgiacomo.travaglini@arm.com .warnNotFail(); 500812815Sgiacomo.travaglini@arm.com InitReg(MISCREG_ERXMISC1_EL1) 500912815Sgiacomo.travaglini@arm.com .unimplemented() 501012815Sgiacomo.travaglini@arm.com .warnNotFail(); 501112815Sgiacomo.travaglini@arm.com InitReg(MISCREG_DISR_EL1) 501212815Sgiacomo.travaglini@arm.com .unimplemented() 501312815Sgiacomo.travaglini@arm.com .warnNotFail(); 501412815Sgiacomo.travaglini@arm.com InitReg(MISCREG_VSESR_EL2) 501512815Sgiacomo.travaglini@arm.com .unimplemented() 501612815Sgiacomo.travaglini@arm.com .warnNotFail(); 501712815Sgiacomo.travaglini@arm.com InitReg(MISCREG_VDISR_EL2) 501812815Sgiacomo.travaglini@arm.com .unimplemented() 501912815Sgiacomo.travaglini@arm.com .warnNotFail(); 502012815Sgiacomo.travaglini@arm.com 502112479SCurtis.Dunham@arm.com // Register mappings for some unimplemented registers: 502212479SCurtis.Dunham@arm.com // ESR_EL1 -> DFSR 502312479SCurtis.Dunham@arm.com // RMR_EL1 -> RMR 502412479SCurtis.Dunham@arm.com // RMR_EL2 -> HRMR 502512479SCurtis.Dunham@arm.com // DBGDTR_EL0 -> DBGDTR{R or T}Xint 502612479SCurtis.Dunham@arm.com // DBGDTRRX_EL0 -> DBGDTRRXint 502712479SCurtis.Dunham@arm.com // DBGDTRTX_EL0 -> DBGDTRRXint 502812479SCurtis.Dunham@arm.com // MDCR_EL3 -> SDCR, NAM D7-2108 (the latter is unimpl. in gem5) 502912479SCurtis.Dunham@arm.com 503012479SCurtis.Dunham@arm.com completed = true; 503112479SCurtis.Dunham@arm.com} 503212479SCurtis.Dunham@arm.com 503310037SARM gem5 Developers} // namespace ArmISA 5034