LLVM API Documentation

AArch64BaseInfo.cpp
Go to the documentation of this file.
00001 //===-- AArch64BaseInfo.cpp - AArch64 Base encoding information------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file provides basic encoding and assembly information for AArch64.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 #include "AArch64BaseInfo.h"
00014 #include "llvm/ADT/APFloat.h"
00015 #include "llvm/ADT/SmallVector.h"
00016 #include "llvm/ADT/StringExtras.h"
00017 #include "llvm/Support/Regex.h"
00018 
00019 using namespace llvm;
00020 
00021 StringRef AArch64NamedImmMapper::toString(uint32_t Value, bool &Valid) const {
00022   for (unsigned i = 0; i < NumPairs; ++i) {
00023     if (Pairs[i].Value == Value) {
00024       Valid = true;
00025       return Pairs[i].Name;
00026     }
00027   }
00028 
00029   Valid = false;
00030   return StringRef();
00031 }
00032 
00033 uint32_t AArch64NamedImmMapper::fromString(StringRef Name, bool &Valid) const {
00034   std::string LowerCaseName = Name.lower();
00035   for (unsigned i = 0; i < NumPairs; ++i) {
00036     if (Pairs[i].Name == LowerCaseName) {
00037       Valid = true;
00038       return Pairs[i].Value;
00039     }
00040   }
00041 
00042   Valid = false;
00043   return -1;
00044 }
00045 
00046 bool AArch64NamedImmMapper::validImm(uint32_t Value) const {
00047   return Value < TooBigImm;
00048 }
00049 
00050 const AArch64NamedImmMapper::Mapping AArch64AT::ATMapper::ATPairs[] = {
00051   {"s1e1r", S1E1R},
00052   {"s1e2r", S1E2R},
00053   {"s1e3r", S1E3R},
00054   {"s1e1w", S1E1W},
00055   {"s1e2w", S1E2W},
00056   {"s1e3w", S1E3W},
00057   {"s1e0r", S1E0R},
00058   {"s1e0w", S1E0W},
00059   {"s12e1r", S12E1R},
00060   {"s12e1w", S12E1W},
00061   {"s12e0r", S12E0R},
00062   {"s12e0w", S12E0W},
00063 };
00064 
00065 AArch64AT::ATMapper::ATMapper()
00066   : AArch64NamedImmMapper(ATPairs, 0) {}
00067 
00068 const AArch64NamedImmMapper::Mapping AArch64DB::DBarrierMapper::DBarrierPairs[] = {
00069   {"oshld", OSHLD},
00070   {"oshst", OSHST},
00071   {"osh", OSH},
00072   {"nshld", NSHLD},
00073   {"nshst", NSHST},
00074   {"nsh", NSH},
00075   {"ishld", ISHLD},
00076   {"ishst", ISHST},
00077   {"ish", ISH},
00078   {"ld", LD},
00079   {"st", ST},
00080   {"sy", SY}
00081 };
00082 
00083 AArch64DB::DBarrierMapper::DBarrierMapper()
00084   : AArch64NamedImmMapper(DBarrierPairs, 16u) {}
00085 
00086 const AArch64NamedImmMapper::Mapping AArch64DC::DCMapper::DCPairs[] = {
00087   {"zva", ZVA},
00088   {"ivac", IVAC},
00089   {"isw", ISW},
00090   {"cvac", CVAC},
00091   {"csw", CSW},
00092   {"cvau", CVAU},
00093   {"civac", CIVAC},
00094   {"cisw", CISW}
00095 };
00096 
00097 AArch64DC::DCMapper::DCMapper()
00098   : AArch64NamedImmMapper(DCPairs, 0) {}
00099 
00100 const AArch64NamedImmMapper::Mapping AArch64IC::ICMapper::ICPairs[] = {
00101   {"ialluis",  IALLUIS},
00102   {"iallu", IALLU},
00103   {"ivau", IVAU}
00104 };
00105 
00106 AArch64IC::ICMapper::ICMapper()
00107   : AArch64NamedImmMapper(ICPairs, 0) {}
00108 
00109 const AArch64NamedImmMapper::Mapping AArch64ISB::ISBMapper::ISBPairs[] = {
00110   {"sy",  SY},
00111 };
00112 
00113 AArch64ISB::ISBMapper::ISBMapper()
00114   : AArch64NamedImmMapper(ISBPairs, 16) {}
00115 
00116 const AArch64NamedImmMapper::Mapping AArch64PRFM::PRFMMapper::PRFMPairs[] = {
00117   {"pldl1keep", PLDL1KEEP},
00118   {"pldl1strm", PLDL1STRM},
00119   {"pldl2keep", PLDL2KEEP},
00120   {"pldl2strm", PLDL2STRM},
00121   {"pldl3keep", PLDL3KEEP},
00122   {"pldl3strm", PLDL3STRM},
00123   {"plil1keep", PLIL1KEEP},
00124   {"plil1strm", PLIL1STRM},
00125   {"plil2keep", PLIL2KEEP},
00126   {"plil2strm", PLIL2STRM},
00127   {"plil3keep", PLIL3KEEP},
00128   {"plil3strm", PLIL3STRM},
00129   {"pstl1keep", PSTL1KEEP},
00130   {"pstl1strm", PSTL1STRM},
00131   {"pstl2keep", PSTL2KEEP},
00132   {"pstl2strm", PSTL2STRM},
00133   {"pstl3keep", PSTL3KEEP},
00134   {"pstl3strm", PSTL3STRM}
00135 };
00136 
00137 AArch64PRFM::PRFMMapper::PRFMMapper()
00138   : AArch64NamedImmMapper(PRFMPairs, 32) {}
00139 
00140 const AArch64NamedImmMapper::Mapping AArch64PState::PStateMapper::PStatePairs[] = {
00141   {"spsel", SPSel},
00142   {"daifset", DAIFSet},
00143   {"daifclr", DAIFClr}
00144 };
00145 
00146 AArch64PState::PStateMapper::PStateMapper()
00147   : AArch64NamedImmMapper(PStatePairs, 0) {}
00148 
00149 const AArch64NamedImmMapper::Mapping AArch64SysReg::MRSMapper::MRSPairs[] = {
00150   {"mdccsr_el0", MDCCSR_EL0},
00151   {"dbgdtrrx_el0", DBGDTRRX_EL0},
00152   {"mdrar_el1", MDRAR_EL1},
00153   {"oslsr_el1", OSLSR_EL1},
00154   {"dbgauthstatus_el1", DBGAUTHSTATUS_EL1},
00155   {"pmceid0_el0", PMCEID0_EL0},
00156   {"pmceid1_el0", PMCEID1_EL0},
00157   {"midr_el1", MIDR_EL1},
00158   {"ccsidr_el1", CCSIDR_EL1},
00159   {"clidr_el1", CLIDR_EL1},
00160   {"ctr_el0", CTR_EL0},
00161   {"mpidr_el1", MPIDR_EL1},
00162   {"revidr_el1", REVIDR_EL1},
00163   {"aidr_el1", AIDR_EL1},
00164   {"dczid_el0", DCZID_EL0},
00165   {"id_pfr0_el1", ID_PFR0_EL1},
00166   {"id_pfr1_el1", ID_PFR1_EL1},
00167   {"id_dfr0_el1", ID_DFR0_EL1},
00168   {"id_afr0_el1", ID_AFR0_EL1},
00169   {"id_mmfr0_el1", ID_MMFR0_EL1},
00170   {"id_mmfr1_el1", ID_MMFR1_EL1},
00171   {"id_mmfr2_el1", ID_MMFR2_EL1},
00172   {"id_mmfr3_el1", ID_MMFR3_EL1},
00173   {"id_isar0_el1", ID_ISAR0_EL1},
00174   {"id_isar1_el1", ID_ISAR1_EL1},
00175   {"id_isar2_el1", ID_ISAR2_EL1},
00176   {"id_isar3_el1", ID_ISAR3_EL1},
00177   {"id_isar4_el1", ID_ISAR4_EL1},
00178   {"id_isar5_el1", ID_ISAR5_EL1},
00179   {"id_aa64pfr0_el1", ID_A64PFR0_EL1},
00180   {"id_aa64pfr1_el1", ID_A64PFR1_EL1},
00181   {"id_aa64dfr0_el1", ID_A64DFR0_EL1},
00182   {"id_aa64dfr1_el1", ID_A64DFR1_EL1},
00183   {"id_aa64afr0_el1", ID_A64AFR0_EL1},
00184   {"id_aa64afr1_el1", ID_A64AFR1_EL1},
00185   {"id_aa64isar0_el1", ID_A64ISAR0_EL1},
00186   {"id_aa64isar1_el1", ID_A64ISAR1_EL1},
00187   {"id_aa64mmfr0_el1", ID_A64MMFR0_EL1},
00188   {"id_aa64mmfr1_el1", ID_A64MMFR1_EL1},
00189   {"mvfr0_el1", MVFR0_EL1},
00190   {"mvfr1_el1", MVFR1_EL1},
00191   {"mvfr2_el1", MVFR2_EL1},
00192   {"rvbar_el1", RVBAR_EL1},
00193   {"rvbar_el2", RVBAR_EL2},
00194   {"rvbar_el3", RVBAR_EL3},
00195   {"isr_el1", ISR_EL1},
00196   {"cntpct_el0", CNTPCT_EL0},
00197   {"cntvct_el0", CNTVCT_EL0},
00198 
00199   // Trace registers
00200   {"trcstatr", TRCSTATR},
00201   {"trcidr8", TRCIDR8},
00202   {"trcidr9", TRCIDR9},
00203   {"trcidr10", TRCIDR10},
00204   {"trcidr11", TRCIDR11},
00205   {"trcidr12", TRCIDR12},
00206   {"trcidr13", TRCIDR13},
00207   {"trcidr0", TRCIDR0},
00208   {"trcidr1", TRCIDR1},
00209   {"trcidr2", TRCIDR2},
00210   {"trcidr3", TRCIDR3},
00211   {"trcidr4", TRCIDR4},
00212   {"trcidr5", TRCIDR5},
00213   {"trcidr6", TRCIDR6},
00214   {"trcidr7", TRCIDR7},
00215   {"trcoslsr", TRCOSLSR},
00216   {"trcpdsr", TRCPDSR},
00217   {"trcdevaff0", TRCDEVAFF0},
00218   {"trcdevaff1", TRCDEVAFF1},
00219   {"trclsr", TRCLSR},
00220   {"trcauthstatus", TRCAUTHSTATUS},
00221   {"trcdevarch", TRCDEVARCH},
00222   {"trcdevid", TRCDEVID},
00223   {"trcdevtype", TRCDEVTYPE},
00224   {"trcpidr4", TRCPIDR4},
00225   {"trcpidr5", TRCPIDR5},
00226   {"trcpidr6", TRCPIDR6},
00227   {"trcpidr7", TRCPIDR7},
00228   {"trcpidr0", TRCPIDR0},
00229   {"trcpidr1", TRCPIDR1},
00230   {"trcpidr2", TRCPIDR2},
00231   {"trcpidr3", TRCPIDR3},
00232   {"trccidr0", TRCCIDR0},
00233   {"trccidr1", TRCCIDR1},
00234   {"trccidr2", TRCCIDR2},
00235   {"trccidr3", TRCCIDR3},
00236 
00237   // GICv3 registers
00238   {"icc_iar1_el1", ICC_IAR1_EL1},
00239   {"icc_iar0_el1", ICC_IAR0_EL1},
00240   {"icc_hppir1_el1", ICC_HPPIR1_EL1},
00241   {"icc_hppir0_el1", ICC_HPPIR0_EL1},
00242   {"icc_rpr_el1", ICC_RPR_EL1},
00243   {"ich_vtr_el2", ICH_VTR_EL2},
00244   {"ich_eisr_el2", ICH_EISR_EL2},
00245   {"ich_elsr_el2", ICH_ELSR_EL2}
00246 };
00247 
00248 AArch64SysReg::MRSMapper::MRSMapper(uint64_t FeatureBits)
00249   : SysRegMapper(FeatureBits) {
00250     InstPairs = &MRSPairs[0];
00251     NumInstPairs = llvm::array_lengthof(MRSPairs);
00252 }
00253 
00254 const AArch64NamedImmMapper::Mapping AArch64SysReg::MSRMapper::MSRPairs[] = {
00255   {"dbgdtrtx_el0", DBGDTRTX_EL0},
00256   {"oslar_el1", OSLAR_EL1},
00257   {"pmswinc_el0", PMSWINC_EL0},
00258 
00259   // Trace registers
00260   {"trcoslar", TRCOSLAR},
00261   {"trclar", TRCLAR},
00262 
00263   // GICv3 registers
00264   {"icc_eoir1_el1", ICC_EOIR1_EL1},
00265   {"icc_eoir0_el1", ICC_EOIR0_EL1},
00266   {"icc_dir_el1", ICC_DIR_EL1},
00267   {"icc_sgi1r_el1", ICC_SGI1R_EL1},
00268   {"icc_asgi1r_el1", ICC_ASGI1R_EL1},
00269   {"icc_sgi0r_el1", ICC_SGI0R_EL1}
00270 };
00271 
00272 AArch64SysReg::MSRMapper::MSRMapper(uint64_t FeatureBits)
00273   : SysRegMapper(FeatureBits) {
00274     InstPairs = &MSRPairs[0];
00275     NumInstPairs = llvm::array_lengthof(MSRPairs);
00276 }
00277 
00278 
00279 const AArch64NamedImmMapper::Mapping AArch64SysReg::SysRegMapper::SysRegPairs[] = {
00280   {"osdtrrx_el1", OSDTRRX_EL1},
00281   {"osdtrtx_el1",  OSDTRTX_EL1},
00282   {"teecr32_el1", TEECR32_EL1},
00283   {"mdccint_el1", MDCCINT_EL1},
00284   {"mdscr_el1", MDSCR_EL1},
00285   {"dbgdtr_el0", DBGDTR_EL0},
00286   {"oseccr_el1", OSECCR_EL1},
00287   {"dbgvcr32_el2", DBGVCR32_EL2},
00288   {"dbgbvr0_el1", DBGBVR0_EL1},
00289   {"dbgbvr1_el1", DBGBVR1_EL1},
00290   {"dbgbvr2_el1", DBGBVR2_EL1},
00291   {"dbgbvr3_el1", DBGBVR3_EL1},
00292   {"dbgbvr4_el1", DBGBVR4_EL1},
00293   {"dbgbvr5_el1", DBGBVR5_EL1},
00294   {"dbgbvr6_el1", DBGBVR6_EL1},
00295   {"dbgbvr7_el1", DBGBVR7_EL1},
00296   {"dbgbvr8_el1", DBGBVR8_EL1},
00297   {"dbgbvr9_el1", DBGBVR9_EL1},
00298   {"dbgbvr10_el1", DBGBVR10_EL1},
00299   {"dbgbvr11_el1", DBGBVR11_EL1},
00300   {"dbgbvr12_el1", DBGBVR12_EL1},
00301   {"dbgbvr13_el1", DBGBVR13_EL1},
00302   {"dbgbvr14_el1", DBGBVR14_EL1},
00303   {"dbgbvr15_el1", DBGBVR15_EL1},
00304   {"dbgbcr0_el1", DBGBCR0_EL1},
00305   {"dbgbcr1_el1", DBGBCR1_EL1},
00306   {"dbgbcr2_el1", DBGBCR2_EL1},
00307   {"dbgbcr3_el1", DBGBCR3_EL1},
00308   {"dbgbcr4_el1", DBGBCR4_EL1},
00309   {"dbgbcr5_el1", DBGBCR5_EL1},
00310   {"dbgbcr6_el1", DBGBCR6_EL1},
00311   {"dbgbcr7_el1", DBGBCR7_EL1},
00312   {"dbgbcr8_el1", DBGBCR8_EL1},
00313   {"dbgbcr9_el1", DBGBCR9_EL1},
00314   {"dbgbcr10_el1", DBGBCR10_EL1},
00315   {"dbgbcr11_el1", DBGBCR11_EL1},
00316   {"dbgbcr12_el1", DBGBCR12_EL1},
00317   {"dbgbcr13_el1", DBGBCR13_EL1},
00318   {"dbgbcr14_el1", DBGBCR14_EL1},
00319   {"dbgbcr15_el1", DBGBCR15_EL1},
00320   {"dbgwvr0_el1", DBGWVR0_EL1},
00321   {"dbgwvr1_el1", DBGWVR1_EL1},
00322   {"dbgwvr2_el1", DBGWVR2_EL1},
00323   {"dbgwvr3_el1", DBGWVR3_EL1},
00324   {"dbgwvr4_el1", DBGWVR4_EL1},
00325   {"dbgwvr5_el1", DBGWVR5_EL1},
00326   {"dbgwvr6_el1", DBGWVR6_EL1},
00327   {"dbgwvr7_el1", DBGWVR7_EL1},
00328   {"dbgwvr8_el1", DBGWVR8_EL1},
00329   {"dbgwvr9_el1", DBGWVR9_EL1},
00330   {"dbgwvr10_el1", DBGWVR10_EL1},
00331   {"dbgwvr11_el1", DBGWVR11_EL1},
00332   {"dbgwvr12_el1", DBGWVR12_EL1},
00333   {"dbgwvr13_el1", DBGWVR13_EL1},
00334   {"dbgwvr14_el1", DBGWVR14_EL1},
00335   {"dbgwvr15_el1", DBGWVR15_EL1},
00336   {"dbgwcr0_el1", DBGWCR0_EL1},
00337   {"dbgwcr1_el1", DBGWCR1_EL1},
00338   {"dbgwcr2_el1", DBGWCR2_EL1},
00339   {"dbgwcr3_el1", DBGWCR3_EL1},
00340   {"dbgwcr4_el1", DBGWCR4_EL1},
00341   {"dbgwcr5_el1", DBGWCR5_EL1},
00342   {"dbgwcr6_el1", DBGWCR6_EL1},
00343   {"dbgwcr7_el1", DBGWCR7_EL1},
00344   {"dbgwcr8_el1", DBGWCR8_EL1},
00345   {"dbgwcr9_el1", DBGWCR9_EL1},
00346   {"dbgwcr10_el1", DBGWCR10_EL1},
00347   {"dbgwcr11_el1", DBGWCR11_EL1},
00348   {"dbgwcr12_el1", DBGWCR12_EL1},
00349   {"dbgwcr13_el1", DBGWCR13_EL1},
00350   {"dbgwcr14_el1", DBGWCR14_EL1},
00351   {"dbgwcr15_el1", DBGWCR15_EL1},
00352   {"teehbr32_el1", TEEHBR32_EL1},
00353   {"osdlr_el1", OSDLR_EL1},
00354   {"dbgprcr_el1", DBGPRCR_EL1},
00355   {"dbgclaimset_el1", DBGCLAIMSET_EL1},
00356   {"dbgclaimclr_el1", DBGCLAIMCLR_EL1},
00357   {"csselr_el1", CSSELR_EL1},
00358   {"vpidr_el2", VPIDR_EL2},
00359   {"vmpidr_el2", VMPIDR_EL2},
00360   {"sctlr_el1", SCTLR_EL1},
00361   {"sctlr_el2", SCTLR_EL2},
00362   {"sctlr_el3", SCTLR_EL3},
00363   {"actlr_el1", ACTLR_EL1},
00364   {"actlr_el2", ACTLR_EL2},
00365   {"actlr_el3", ACTLR_EL3},
00366   {"cpacr_el1", CPACR_EL1},
00367   {"hcr_el2", HCR_EL2},
00368   {"scr_el3", SCR_EL3},
00369   {"mdcr_el2", MDCR_EL2},
00370   {"sder32_el3", SDER32_EL3},
00371   {"cptr_el2", CPTR_EL2},
00372   {"cptr_el3", CPTR_EL3},
00373   {"hstr_el2", HSTR_EL2},
00374   {"hacr_el2", HACR_EL2},
00375   {"mdcr_el3", MDCR_EL3},
00376   {"ttbr0_el1", TTBR0_EL1},
00377   {"ttbr0_el2", TTBR0_EL2},
00378   {"ttbr0_el3", TTBR0_EL3},
00379   {"ttbr1_el1", TTBR1_EL1},
00380   {"tcr_el1", TCR_EL1},
00381   {"tcr_el2", TCR_EL2},
00382   {"tcr_el3", TCR_EL3},
00383   {"vttbr_el2", VTTBR_EL2},
00384   {"vtcr_el2", VTCR_EL2},
00385   {"dacr32_el2", DACR32_EL2},
00386   {"spsr_el1", SPSR_EL1},
00387   {"spsr_el2", SPSR_EL2},
00388   {"spsr_el3", SPSR_EL3},
00389   {"elr_el1", ELR_EL1},
00390   {"elr_el2", ELR_EL2},
00391   {"elr_el3", ELR_EL3},
00392   {"sp_el0", SP_EL0},
00393   {"sp_el1", SP_EL1},
00394   {"sp_el2", SP_EL2},
00395   {"spsel", SPSel},
00396   {"nzcv", NZCV},
00397   {"daif", DAIF},
00398   {"currentel", CurrentEL},
00399   {"spsr_irq", SPSR_irq},
00400   {"spsr_abt", SPSR_abt},
00401   {"spsr_und", SPSR_und},
00402   {"spsr_fiq", SPSR_fiq},
00403   {"fpcr", FPCR},
00404   {"fpsr", FPSR},
00405   {"dspsr_el0", DSPSR_EL0},
00406   {"dlr_el0", DLR_EL0},
00407   {"ifsr32_el2", IFSR32_EL2},
00408   {"afsr0_el1", AFSR0_EL1},
00409   {"afsr0_el2", AFSR0_EL2},
00410   {"afsr0_el3", AFSR0_EL3},
00411   {"afsr1_el1", AFSR1_EL1},
00412   {"afsr1_el2", AFSR1_EL2},
00413   {"afsr1_el3", AFSR1_EL3},
00414   {"esr_el1", ESR_EL1},
00415   {"esr_el2", ESR_EL2},
00416   {"esr_el3", ESR_EL3},
00417   {"fpexc32_el2", FPEXC32_EL2},
00418   {"far_el1", FAR_EL1},
00419   {"far_el2", FAR_EL2},
00420   {"far_el3", FAR_EL3},
00421   {"hpfar_el2", HPFAR_EL2},
00422   {"par_el1", PAR_EL1},
00423   {"pmcr_el0", PMCR_EL0},
00424   {"pmcntenset_el0", PMCNTENSET_EL0},
00425   {"pmcntenclr_el0", PMCNTENCLR_EL0},
00426   {"pmovsclr_el0", PMOVSCLR_EL0},
00427   {"pmselr_el0", PMSELR_EL0},
00428   {"pmccntr_el0", PMCCNTR_EL0},
00429   {"pmxevtyper_el0", PMXEVTYPER_EL0},
00430   {"pmxevcntr_el0", PMXEVCNTR_EL0},
00431   {"pmuserenr_el0", PMUSERENR_EL0},
00432   {"pmintenset_el1", PMINTENSET_EL1},
00433   {"pmintenclr_el1", PMINTENCLR_EL1},
00434   {"pmovsset_el0", PMOVSSET_EL0},
00435   {"mair_el1", MAIR_EL1},
00436   {"mair_el2", MAIR_EL2},
00437   {"mair_el3", MAIR_EL3},
00438   {"amair_el1", AMAIR_EL1},
00439   {"amair_el2", AMAIR_EL2},
00440   {"amair_el3", AMAIR_EL3},
00441   {"vbar_el1", VBAR_EL1},
00442   {"vbar_el2", VBAR_EL2},
00443   {"vbar_el3", VBAR_EL3},
00444   {"rmr_el1", RMR_EL1},
00445   {"rmr_el2", RMR_EL2},
00446   {"rmr_el3", RMR_EL3},
00447   {"contextidr_el1", CONTEXTIDR_EL1},
00448   {"tpidr_el0", TPIDR_EL0},
00449   {"tpidr_el2", TPIDR_EL2},
00450   {"tpidr_el3", TPIDR_EL3},
00451   {"tpidrro_el0", TPIDRRO_EL0},
00452   {"tpidr_el1", TPIDR_EL1},
00453   {"cntfrq_el0", CNTFRQ_EL0},
00454   {"cntvoff_el2", CNTVOFF_EL2},
00455   {"cntkctl_el1", CNTKCTL_EL1},
00456   {"cnthctl_el2", CNTHCTL_EL2},
00457   {"cntp_tval_el0", CNTP_TVAL_EL0},
00458   {"cnthp_tval_el2", CNTHP_TVAL_EL2},
00459   {"cntps_tval_el1", CNTPS_TVAL_EL1},
00460   {"cntp_ctl_el0", CNTP_CTL_EL0},
00461   {"cnthp_ctl_el2", CNTHP_CTL_EL2},
00462   {"cntps_ctl_el1", CNTPS_CTL_EL1},
00463   {"cntp_cval_el0", CNTP_CVAL_EL0},
00464   {"cnthp_cval_el2", CNTHP_CVAL_EL2},
00465   {"cntps_cval_el1", CNTPS_CVAL_EL1},
00466   {"cntv_tval_el0", CNTV_TVAL_EL0},
00467   {"cntv_ctl_el0", CNTV_CTL_EL0},
00468   {"cntv_cval_el0", CNTV_CVAL_EL0},
00469   {"pmevcntr0_el0", PMEVCNTR0_EL0},
00470   {"pmevcntr1_el0", PMEVCNTR1_EL0},
00471   {"pmevcntr2_el0", PMEVCNTR2_EL0},
00472   {"pmevcntr3_el0", PMEVCNTR3_EL0},
00473   {"pmevcntr4_el0", PMEVCNTR4_EL0},
00474   {"pmevcntr5_el0", PMEVCNTR5_EL0},
00475   {"pmevcntr6_el0", PMEVCNTR6_EL0},
00476   {"pmevcntr7_el0", PMEVCNTR7_EL0},
00477   {"pmevcntr8_el0", PMEVCNTR8_EL0},
00478   {"pmevcntr9_el0", PMEVCNTR9_EL0},
00479   {"pmevcntr10_el0", PMEVCNTR10_EL0},
00480   {"pmevcntr11_el0", PMEVCNTR11_EL0},
00481   {"pmevcntr12_el0", PMEVCNTR12_EL0},
00482   {"pmevcntr13_el0", PMEVCNTR13_EL0},
00483   {"pmevcntr14_el0", PMEVCNTR14_EL0},
00484   {"pmevcntr15_el0", PMEVCNTR15_EL0},
00485   {"pmevcntr16_el0", PMEVCNTR16_EL0},
00486   {"pmevcntr17_el0", PMEVCNTR17_EL0},
00487   {"pmevcntr18_el0", PMEVCNTR18_EL0},
00488   {"pmevcntr19_el0", PMEVCNTR19_EL0},
00489   {"pmevcntr20_el0", PMEVCNTR20_EL0},
00490   {"pmevcntr21_el0", PMEVCNTR21_EL0},
00491   {"pmevcntr22_el0", PMEVCNTR22_EL0},
00492   {"pmevcntr23_el0", PMEVCNTR23_EL0},
00493   {"pmevcntr24_el0", PMEVCNTR24_EL0},
00494   {"pmevcntr25_el0", PMEVCNTR25_EL0},
00495   {"pmevcntr26_el0", PMEVCNTR26_EL0},
00496   {"pmevcntr27_el0", PMEVCNTR27_EL0},
00497   {"pmevcntr28_el0", PMEVCNTR28_EL0},
00498   {"pmevcntr29_el0", PMEVCNTR29_EL0},
00499   {"pmevcntr30_el0", PMEVCNTR30_EL0},
00500   {"pmccfiltr_el0", PMCCFILTR_EL0},
00501   {"pmevtyper0_el0", PMEVTYPER0_EL0},
00502   {"pmevtyper1_el0", PMEVTYPER1_EL0},
00503   {"pmevtyper2_el0", PMEVTYPER2_EL0},
00504   {"pmevtyper3_el0", PMEVTYPER3_EL0},
00505   {"pmevtyper4_el0", PMEVTYPER4_EL0},
00506   {"pmevtyper5_el0", PMEVTYPER5_EL0},
00507   {"pmevtyper6_el0", PMEVTYPER6_EL0},
00508   {"pmevtyper7_el0", PMEVTYPER7_EL0},
00509   {"pmevtyper8_el0", PMEVTYPER8_EL0},
00510   {"pmevtyper9_el0", PMEVTYPER9_EL0},
00511   {"pmevtyper10_el0", PMEVTYPER10_EL0},
00512   {"pmevtyper11_el0", PMEVTYPER11_EL0},
00513   {"pmevtyper12_el0", PMEVTYPER12_EL0},
00514   {"pmevtyper13_el0", PMEVTYPER13_EL0},
00515   {"pmevtyper14_el0", PMEVTYPER14_EL0},
00516   {"pmevtyper15_el0", PMEVTYPER15_EL0},
00517   {"pmevtyper16_el0", PMEVTYPER16_EL0},
00518   {"pmevtyper17_el0", PMEVTYPER17_EL0},
00519   {"pmevtyper18_el0", PMEVTYPER18_EL0},
00520   {"pmevtyper19_el0", PMEVTYPER19_EL0},
00521   {"pmevtyper20_el0", PMEVTYPER20_EL0},
00522   {"pmevtyper21_el0", PMEVTYPER21_EL0},
00523   {"pmevtyper22_el0", PMEVTYPER22_EL0},
00524   {"pmevtyper23_el0", PMEVTYPER23_EL0},
00525   {"pmevtyper24_el0", PMEVTYPER24_EL0},
00526   {"pmevtyper25_el0", PMEVTYPER25_EL0},
00527   {"pmevtyper26_el0", PMEVTYPER26_EL0},
00528   {"pmevtyper27_el0", PMEVTYPER27_EL0},
00529   {"pmevtyper28_el0", PMEVTYPER28_EL0},
00530   {"pmevtyper29_el0", PMEVTYPER29_EL0},
00531   {"pmevtyper30_el0", PMEVTYPER30_EL0},
00532 
00533   // Trace registers
00534   {"trcprgctlr", TRCPRGCTLR},
00535   {"trcprocselr", TRCPROCSELR},
00536   {"trcconfigr", TRCCONFIGR},
00537   {"trcauxctlr", TRCAUXCTLR},
00538   {"trceventctl0r", TRCEVENTCTL0R},
00539   {"trceventctl1r", TRCEVENTCTL1R},
00540   {"trcstallctlr", TRCSTALLCTLR},
00541   {"trctsctlr", TRCTSCTLR},
00542   {"trcsyncpr", TRCSYNCPR},
00543   {"trcccctlr", TRCCCCTLR},
00544   {"trcbbctlr", TRCBBCTLR},
00545   {"trctraceidr", TRCTRACEIDR},
00546   {"trcqctlr", TRCQCTLR},
00547   {"trcvictlr", TRCVICTLR},
00548   {"trcviiectlr", TRCVIIECTLR},
00549   {"trcvissctlr", TRCVISSCTLR},
00550   {"trcvipcssctlr", TRCVIPCSSCTLR},
00551   {"trcvdctlr", TRCVDCTLR},
00552   {"trcvdsacctlr", TRCVDSACCTLR},
00553   {"trcvdarcctlr", TRCVDARCCTLR},
00554   {"trcseqevr0", TRCSEQEVR0},
00555   {"trcseqevr1", TRCSEQEVR1},
00556   {"trcseqevr2", TRCSEQEVR2},
00557   {"trcseqrstevr", TRCSEQRSTEVR},
00558   {"trcseqstr", TRCSEQSTR},
00559   {"trcextinselr", TRCEXTINSELR},
00560   {"trccntrldvr0", TRCCNTRLDVR0},
00561   {"trccntrldvr1", TRCCNTRLDVR1},
00562   {"trccntrldvr2", TRCCNTRLDVR2},
00563   {"trccntrldvr3", TRCCNTRLDVR3},
00564   {"trccntctlr0", TRCCNTCTLR0},
00565   {"trccntctlr1", TRCCNTCTLR1},
00566   {"trccntctlr2", TRCCNTCTLR2},
00567   {"trccntctlr3", TRCCNTCTLR3},
00568   {"trccntvr0", TRCCNTVR0},
00569   {"trccntvr1", TRCCNTVR1},
00570   {"trccntvr2", TRCCNTVR2},
00571   {"trccntvr3", TRCCNTVR3},
00572   {"trcimspec0", TRCIMSPEC0},
00573   {"trcimspec1", TRCIMSPEC1},
00574   {"trcimspec2", TRCIMSPEC2},
00575   {"trcimspec3", TRCIMSPEC3},
00576   {"trcimspec4", TRCIMSPEC4},
00577   {"trcimspec5", TRCIMSPEC5},
00578   {"trcimspec6", TRCIMSPEC6},
00579   {"trcimspec7", TRCIMSPEC7},
00580   {"trcrsctlr2", TRCRSCTLR2},
00581   {"trcrsctlr3", TRCRSCTLR3},
00582   {"trcrsctlr4", TRCRSCTLR4},
00583   {"trcrsctlr5", TRCRSCTLR5},
00584   {"trcrsctlr6", TRCRSCTLR6},
00585   {"trcrsctlr7", TRCRSCTLR7},
00586   {"trcrsctlr8", TRCRSCTLR8},
00587   {"trcrsctlr9", TRCRSCTLR9},
00588   {"trcrsctlr10", TRCRSCTLR10},
00589   {"trcrsctlr11", TRCRSCTLR11},
00590   {"trcrsctlr12", TRCRSCTLR12},
00591   {"trcrsctlr13", TRCRSCTLR13},
00592   {"trcrsctlr14", TRCRSCTLR14},
00593   {"trcrsctlr15", TRCRSCTLR15},
00594   {"trcrsctlr16", TRCRSCTLR16},
00595   {"trcrsctlr17", TRCRSCTLR17},
00596   {"trcrsctlr18", TRCRSCTLR18},
00597   {"trcrsctlr19", TRCRSCTLR19},
00598   {"trcrsctlr20", TRCRSCTLR20},
00599   {"trcrsctlr21", TRCRSCTLR21},
00600   {"trcrsctlr22", TRCRSCTLR22},
00601   {"trcrsctlr23", TRCRSCTLR23},
00602   {"trcrsctlr24", TRCRSCTLR24},
00603   {"trcrsctlr25", TRCRSCTLR25},
00604   {"trcrsctlr26", TRCRSCTLR26},
00605   {"trcrsctlr27", TRCRSCTLR27},
00606   {"trcrsctlr28", TRCRSCTLR28},
00607   {"trcrsctlr29", TRCRSCTLR29},
00608   {"trcrsctlr30", TRCRSCTLR30},
00609   {"trcrsctlr31", TRCRSCTLR31},
00610   {"trcssccr0", TRCSSCCR0},
00611   {"trcssccr1", TRCSSCCR1},
00612   {"trcssccr2", TRCSSCCR2},
00613   {"trcssccr3", TRCSSCCR3},
00614   {"trcssccr4", TRCSSCCR4},
00615   {"trcssccr5", TRCSSCCR5},
00616   {"trcssccr6", TRCSSCCR6},
00617   {"trcssccr7", TRCSSCCR7},
00618   {"trcsscsr0", TRCSSCSR0},
00619   {"trcsscsr1", TRCSSCSR1},
00620   {"trcsscsr2", TRCSSCSR2},
00621   {"trcsscsr3", TRCSSCSR3},
00622   {"trcsscsr4", TRCSSCSR4},
00623   {"trcsscsr5", TRCSSCSR5},
00624   {"trcsscsr6", TRCSSCSR6},
00625   {"trcsscsr7", TRCSSCSR7},
00626   {"trcsspcicr0", TRCSSPCICR0},
00627   {"trcsspcicr1", TRCSSPCICR1},
00628   {"trcsspcicr2", TRCSSPCICR2},
00629   {"trcsspcicr3", TRCSSPCICR3},
00630   {"trcsspcicr4", TRCSSPCICR4},
00631   {"trcsspcicr5", TRCSSPCICR5},
00632   {"trcsspcicr6", TRCSSPCICR6},
00633   {"trcsspcicr7", TRCSSPCICR7},
00634   {"trcpdcr", TRCPDCR},
00635   {"trcacvr0", TRCACVR0},
00636   {"trcacvr1", TRCACVR1},
00637   {"trcacvr2", TRCACVR2},
00638   {"trcacvr3", TRCACVR3},
00639   {"trcacvr4", TRCACVR4},
00640   {"trcacvr5", TRCACVR5},
00641   {"trcacvr6", TRCACVR6},
00642   {"trcacvr7", TRCACVR7},
00643   {"trcacvr8", TRCACVR8},
00644   {"trcacvr9", TRCACVR9},
00645   {"trcacvr10", TRCACVR10},
00646   {"trcacvr11", TRCACVR11},
00647   {"trcacvr12", TRCACVR12},
00648   {"trcacvr13", TRCACVR13},
00649   {"trcacvr14", TRCACVR14},
00650   {"trcacvr15", TRCACVR15},
00651   {"trcacatr0", TRCACATR0},
00652   {"trcacatr1", TRCACATR1},
00653   {"trcacatr2", TRCACATR2},
00654   {"trcacatr3", TRCACATR3},
00655   {"trcacatr4", TRCACATR4},
00656   {"trcacatr5", TRCACATR5},
00657   {"trcacatr6", TRCACATR6},
00658   {"trcacatr7", TRCACATR7},
00659   {"trcacatr8", TRCACATR8},
00660   {"trcacatr9", TRCACATR9},
00661   {"trcacatr10", TRCACATR10},
00662   {"trcacatr11", TRCACATR11},
00663   {"trcacatr12", TRCACATR12},
00664   {"trcacatr13", TRCACATR13},
00665   {"trcacatr14", TRCACATR14},
00666   {"trcacatr15", TRCACATR15},
00667   {"trcdvcvr0", TRCDVCVR0},
00668   {"trcdvcvr1", TRCDVCVR1},
00669   {"trcdvcvr2", TRCDVCVR2},
00670   {"trcdvcvr3", TRCDVCVR3},
00671   {"trcdvcvr4", TRCDVCVR4},
00672   {"trcdvcvr5", TRCDVCVR5},
00673   {"trcdvcvr6", TRCDVCVR6},
00674   {"trcdvcvr7", TRCDVCVR7},
00675   {"trcdvcmr0", TRCDVCMR0},
00676   {"trcdvcmr1", TRCDVCMR1},
00677   {"trcdvcmr2", TRCDVCMR2},
00678   {"trcdvcmr3", TRCDVCMR3},
00679   {"trcdvcmr4", TRCDVCMR4},
00680   {"trcdvcmr5", TRCDVCMR5},
00681   {"trcdvcmr6", TRCDVCMR6},
00682   {"trcdvcmr7", TRCDVCMR7},
00683   {"trccidcvr0", TRCCIDCVR0},
00684   {"trccidcvr1", TRCCIDCVR1},
00685   {"trccidcvr2", TRCCIDCVR2},
00686   {"trccidcvr3", TRCCIDCVR3},
00687   {"trccidcvr4", TRCCIDCVR4},
00688   {"trccidcvr5", TRCCIDCVR5},
00689   {"trccidcvr6", TRCCIDCVR6},
00690   {"trccidcvr7", TRCCIDCVR7},
00691   {"trcvmidcvr0", TRCVMIDCVR0},
00692   {"trcvmidcvr1", TRCVMIDCVR1},
00693   {"trcvmidcvr2", TRCVMIDCVR2},
00694   {"trcvmidcvr3", TRCVMIDCVR3},
00695   {"trcvmidcvr4", TRCVMIDCVR4},
00696   {"trcvmidcvr5", TRCVMIDCVR5},
00697   {"trcvmidcvr6", TRCVMIDCVR6},
00698   {"trcvmidcvr7", TRCVMIDCVR7},
00699   {"trccidcctlr0", TRCCIDCCTLR0},
00700   {"trccidcctlr1", TRCCIDCCTLR1},
00701   {"trcvmidcctlr0", TRCVMIDCCTLR0},
00702   {"trcvmidcctlr1", TRCVMIDCCTLR1},
00703   {"trcitctrl", TRCITCTRL},
00704   {"trcclaimset", TRCCLAIMSET},
00705   {"trcclaimclr", TRCCLAIMCLR},
00706 
00707   // GICv3 registers
00708   {"icc_bpr1_el1", ICC_BPR1_EL1},
00709   {"icc_bpr0_el1", ICC_BPR0_EL1},
00710   {"icc_pmr_el1", ICC_PMR_EL1},
00711   {"icc_ctlr_el1", ICC_CTLR_EL1},
00712   {"icc_ctlr_el3", ICC_CTLR_EL3},
00713   {"icc_sre_el1", ICC_SRE_EL1},
00714   {"icc_sre_el2", ICC_SRE_EL2},
00715   {"icc_sre_el3", ICC_SRE_EL3},
00716   {"icc_igrpen0_el1", ICC_IGRPEN0_EL1},
00717   {"icc_igrpen1_el1", ICC_IGRPEN1_EL1},
00718   {"icc_igrpen1_el3", ICC_IGRPEN1_EL3},
00719   {"icc_seien_el1", ICC_SEIEN_EL1},
00720   {"icc_ap0r0_el1", ICC_AP0R0_EL1},
00721   {"icc_ap0r1_el1", ICC_AP0R1_EL1},
00722   {"icc_ap0r2_el1", ICC_AP0R2_EL1},
00723   {"icc_ap0r3_el1", ICC_AP0R3_EL1},
00724   {"icc_ap1r0_el1", ICC_AP1R0_EL1},
00725   {"icc_ap1r1_el1", ICC_AP1R1_EL1},
00726   {"icc_ap1r2_el1", ICC_AP1R2_EL1},
00727   {"icc_ap1r3_el1", ICC_AP1R3_EL1},
00728   {"ich_ap0r0_el2", ICH_AP0R0_EL2},
00729   {"ich_ap0r1_el2", ICH_AP0R1_EL2},
00730   {"ich_ap0r2_el2", ICH_AP0R2_EL2},
00731   {"ich_ap0r3_el2", ICH_AP0R3_EL2},
00732   {"ich_ap1r0_el2", ICH_AP1R0_EL2},
00733   {"ich_ap1r1_el2", ICH_AP1R1_EL2},
00734   {"ich_ap1r2_el2", ICH_AP1R2_EL2},
00735   {"ich_ap1r3_el2", ICH_AP1R3_EL2},
00736   {"ich_hcr_el2", ICH_HCR_EL2},
00737   {"ich_misr_el2", ICH_MISR_EL2},
00738   {"ich_vmcr_el2", ICH_VMCR_EL2},
00739   {"ich_vseir_el2", ICH_VSEIR_EL2},
00740   {"ich_lr0_el2", ICH_LR0_EL2},
00741   {"ich_lr1_el2", ICH_LR1_EL2},
00742   {"ich_lr2_el2", ICH_LR2_EL2},
00743   {"ich_lr3_el2", ICH_LR3_EL2},
00744   {"ich_lr4_el2", ICH_LR4_EL2},
00745   {"ich_lr5_el2", ICH_LR5_EL2},
00746   {"ich_lr6_el2", ICH_LR6_EL2},
00747   {"ich_lr7_el2", ICH_LR7_EL2},
00748   {"ich_lr8_el2", ICH_LR8_EL2},
00749   {"ich_lr9_el2", ICH_LR9_EL2},
00750   {"ich_lr10_el2", ICH_LR10_EL2},
00751   {"ich_lr11_el2", ICH_LR11_EL2},
00752   {"ich_lr12_el2", ICH_LR12_EL2},
00753   {"ich_lr13_el2", ICH_LR13_EL2},
00754   {"ich_lr14_el2", ICH_LR14_EL2},
00755   {"ich_lr15_el2", ICH_LR15_EL2}
00756 };
00757 
00758 const AArch64NamedImmMapper::Mapping
00759 AArch64SysReg::SysRegMapper::CycloneSysRegPairs[] = {
00760   {"cpm_ioacc_ctl_el3", CPM_IOACC_CTL_EL3}
00761 };
00762 
00763 uint32_t
00764 AArch64SysReg::SysRegMapper::fromString(StringRef Name, bool &Valid) const {
00765   std::string NameLower = Name.lower();
00766 
00767   // First search the registers shared by all
00768   for (unsigned i = 0; i < array_lengthof(SysRegPairs); ++i) {
00769     if (SysRegPairs[i].Name == NameLower) {
00770       Valid = true;
00771       return SysRegPairs[i].Value;
00772     }
00773   }
00774 
00775   // Next search for target specific registers
00776   if (FeatureBits & AArch64::ProcCyclone) {
00777     for (unsigned i = 0; i < array_lengthof(CycloneSysRegPairs); ++i) {
00778       if (CycloneSysRegPairs[i].Name == NameLower) {
00779         Valid = true;
00780         return CycloneSysRegPairs[i].Value;
00781       }
00782     }
00783   }
00784 
00785   // Now try the instruction-specific registers (either read-only or
00786   // write-only).
00787   for (unsigned i = 0; i < NumInstPairs; ++i) {
00788     if (InstPairs[i].Name == NameLower) {
00789       Valid = true;
00790       return InstPairs[i].Value;
00791     }
00792   }
00793 
00794   // Try to parse an S<op0>_<op1>_<Cn>_<Cm>_<op2> register name, where the bits
00795   // are: 11 xxx 1x11 xxxx xxx
00796   Regex GenericRegPattern("^s3_([0-7])_c(1[15])_c([0-9]|1[0-5])_([0-7])$");
00797 
00798   SmallVector<StringRef, 4> Ops;
00799   if (!GenericRegPattern.match(NameLower, &Ops)) {
00800     Valid = false;
00801     return -1;
00802   }
00803 
00804   uint32_t Op0 = 3, Op1 = 0, CRn = 0, CRm = 0, Op2 = 0;
00805   uint32_t Bits;
00806   Ops[1].getAsInteger(10, Op1);
00807   Ops[2].getAsInteger(10, CRn);
00808   Ops[3].getAsInteger(10, CRm);
00809   Ops[4].getAsInteger(10, Op2);
00810   Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
00811 
00812   Valid = true;
00813   return Bits;
00814 }
00815 
00816 std::string
00817 AArch64SysReg::SysRegMapper::toString(uint32_t Bits, bool &Valid) const {
00818   // First search the registers shared by all
00819   for (unsigned i = 0; i < array_lengthof(SysRegPairs); ++i) {
00820     if (SysRegPairs[i].Value == Bits) {
00821       Valid = true;
00822       return SysRegPairs[i].Name;
00823     }
00824   }
00825 
00826   // Next search for target specific registers
00827   if (FeatureBits & AArch64::ProcCyclone) {
00828     for (unsigned i = 0; i < array_lengthof(CycloneSysRegPairs); ++i) {
00829       if (CycloneSysRegPairs[i].Value == Bits) {
00830         Valid = true;
00831         return CycloneSysRegPairs[i].Name;
00832       }
00833     }
00834   }
00835 
00836   // Now try the instruction-specific registers (either read-only or
00837   // write-only).
00838   for (unsigned i = 0; i < NumInstPairs; ++i) {
00839     if (InstPairs[i].Value == Bits) {
00840       Valid = true;
00841       return InstPairs[i].Name;
00842     }
00843   }
00844 
00845   uint32_t Op0 = (Bits >> 14) & 0x3;
00846   uint32_t Op1 = (Bits >> 11) & 0x7;
00847   uint32_t CRn = (Bits >> 7) & 0xf;
00848   uint32_t CRm = (Bits >> 3) & 0xf;
00849   uint32_t Op2 = Bits & 0x7;
00850 
00851   // Only combinations matching: 11 xxx 1x11 xxxx xxx are valid for a generic
00852   // name.
00853   if (Op0 != 3 || (CRn != 11 && CRn != 15)) {
00854       Valid = false;
00855       return "";
00856   }
00857 
00858   assert(Op0 == 3 && (CRn == 11 || CRn == 15) && "Invalid generic sysreg");
00859 
00860   Valid = true;
00861   return "s3_" + utostr(Op1) + "_c" + utostr(CRn)
00862                + "_c" + utostr(CRm) + "_" + utostr(Op2);
00863 }
00864 
00865 const AArch64NamedImmMapper::Mapping AArch64TLBI::TLBIMapper::TLBIPairs[] = {
00866   {"ipas2e1is", IPAS2E1IS},
00867   {"ipas2le1is", IPAS2LE1IS},
00868   {"vmalle1is", VMALLE1IS},
00869   {"alle2is", ALLE2IS},
00870   {"alle3is", ALLE3IS},
00871   {"vae1is", VAE1IS},
00872   {"vae2is", VAE2IS},
00873   {"vae3is", VAE3IS},
00874   {"aside1is", ASIDE1IS},
00875   {"vaae1is", VAAE1IS},
00876   {"alle1is", ALLE1IS},
00877   {"vale1is", VALE1IS},
00878   {"vale2is", VALE2IS},
00879   {"vale3is", VALE3IS},
00880   {"vmalls12e1is", VMALLS12E1IS},
00881   {"vaale1is", VAALE1IS},
00882   {"ipas2e1", IPAS2E1},
00883   {"ipas2le1", IPAS2LE1},
00884   {"vmalle1", VMALLE1},
00885   {"alle2", ALLE2},
00886   {"alle3", ALLE3},
00887   {"vae1", VAE1},
00888   {"vae2", VAE2},
00889   {"vae3", VAE3},
00890   {"aside1", ASIDE1},
00891   {"vaae1", VAAE1},
00892   {"alle1", ALLE1},
00893   {"vale1", VALE1},
00894   {"vale2", VALE2},
00895   {"vale3", VALE3},
00896   {"vmalls12e1", VMALLS12E1},
00897   {"vaale1", VAALE1}
00898 };
00899 
00900 AArch64TLBI::TLBIMapper::TLBIMapper()
00901   : AArch64NamedImmMapper(TLBIPairs, 0) {}