Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 make more system registers are disa...
details: https://anonhg.NetBSD.org/src/rev/37e16478d691
branches: trunk
changeset: 1019024:37e16478d691
user: ryo <ryo%NetBSD.org@localhost>
date: Tue Feb 23 20:15:04 2021 +0000
description:
make more system registers are disassemblable
diffstat:
sys/arch/aarch64/aarch64/disasm.c | 47 +++++++++++++++++++++++++++++++++++++-
1 files changed, 45 insertions(+), 2 deletions(-)
diffs (157 lines):
diff -r e3643ac05e74 -r 37e16478d691 sys/arch/aarch64/aarch64/disasm.c
--- a/sys/arch/aarch64/aarch64/disasm.c Tue Feb 23 17:48:46 2021 +0000
+++ b/sys/arch/aarch64/aarch64/disasm.c Tue Feb 23 20:15:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disasm.c,v 1.12 2021/02/23 17:48:46 ryo Exp $ */
+/* $NetBSD: disasm.c,v 1.13 2021/02/23 20:15:04 ryo Exp $ */
/*
* Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disasm.c,v 1.12 2021/02/23 17:48:46 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disasm.c,v 1.13 2021/02/23 20:15:04 ryo Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -323,9 +323,14 @@
{ SYSREG_ENC(3, 0, 0, 2, 3), "id_isar3_el1" },
{ SYSREG_ENC(3, 0, 0, 2, 4), "id_isar4_el1" },
{ SYSREG_ENC(3, 0, 0, 2, 5), "id_isar5_el1" },
+ { SYSREG_ENC(3, 0, 0, 2, 6), "id_mmfr4_el1" },
+ { SYSREG_ENC(3, 0, 0, 2, 7), "id_isar6_el1" },
{ SYSREG_ENC(3, 0, 0, 3, 0), "mvfr0_el1" },
{ SYSREG_ENC(3, 0, 0, 3, 1), "mvfr1_el1" },
{ SYSREG_ENC(3, 0, 0, 3, 2), "mvfr2_el1" },
+ { SYSREG_ENC(3, 0, 0, 3, 4), "id_pfr2_el1" },
+ { SYSREG_ENC(3, 0, 0, 3, 5), "id_dfr1_el1" },
+ { SYSREG_ENC(3, 0, 0, 3, 6), "id_mmfr5_el1" },
{ SYSREG_ENC(3, 0, 0, 4, 0), "id_aa64pfr0_el1" },
{ SYSREG_ENC(3, 0, 0, 4, 1), "id_aa64pfr1_el1" },
{ SYSREG_ENC(3, 0, 0, 5, 0), "id_aa64dfr0_el1" },
@@ -336,9 +341,12 @@
{ SYSREG_ENC(3, 0, 0, 6, 1), "id_aa64isar1_el1" },
{ SYSREG_ENC(3, 0, 0, 7, 0), "id_aa64mmfr0_el1" },
{ SYSREG_ENC(3, 0, 0, 7, 1), "id_aa64mmfr1_el1" },
+ { SYSREG_ENC(3, 0, 0, 7, 2), "id_aa64mmfr2_el1" },
{ SYSREG_ENC(3, 0, 1, 0, 0), "sctlr_el1" },
{ SYSREG_ENC(3, 0, 1, 0, 1), "actlr_el1" },
{ SYSREG_ENC(3, 0, 1, 0, 2), "cpacr_el1" },
+ { SYSREG_ENC(3, 0, 1, 0, 5), "rgsr_el1" },
+ { SYSREG_ENC(3, 0, 1, 0, 6), "gcr_el1" },
{ SYSREG_ENC(3, 0, 2, 0, 0), "ttbr0_el1" },
{ SYSREG_ENC(3, 0, 2, 0, 1), "ttbr1_el1" },
{ SYSREG_ENC(3, 0, 2, 0, 2), "tcr_el1" },
@@ -362,21 +370,31 @@
{ SYSREG_ENC(3, 0, 5, 1, 0), "afsr0_el1" },
{ SYSREG_ENC(3, 0, 5, 1, 1), "afsr1_el1" },
{ SYSREG_ENC(3, 0, 5, 2, 0), "esr_el1" },
+ { SYSREG_ENC(3, 0, 5, 6, 0), "tfsr_el1" },
+ { SYSREG_ENC(3, 0, 5, 6, 1), "tfsre0_el1" },
{ SYSREG_ENC(3, 0, 6, 0, 0), "far_el1" },
{ SYSREG_ENC(3, 0, 7, 4, 0), "par_el1" },
{ SYSREG_ENC(3, 0, 9, 14, 1), "pmintenset_el1" },
{ SYSREG_ENC(3, 0, 9, 14, 2), "pmintenclr_el1" },
{ SYSREG_ENC(3, 0, 10, 2, 0), "mair_el1" },
{ SYSREG_ENC(3, 0, 10, 3, 0), "amair_el1" },
+ { SYSREG_ENC(3, 0, 10, 4, 0), "lorsa_el1" },
+ { SYSREG_ENC(3, 0, 10, 4, 1), "lorea_el1" },
+ { SYSREG_ENC(3, 0, 10, 4, 2), "lorn_el1" },
+ { SYSREG_ENC(3, 0, 10, 4, 3), "lorc_el1" },
+ { SYSREG_ENC(3, 0, 10, 4, 7), "lorid_el1" },
{ SYSREG_ENC(3, 0, 12, 0, 0), "vbar_el1" },
{ SYSREG_ENC(3, 0, 12, 0, 1), "rvbar_el1" },
{ SYSREG_ENC(3, 0, 12, 0, 2), "rmr_el1" },
{ SYSREG_ENC(3, 0, 12, 1, 0), "isr_el1" },
{ SYSREG_ENC(3, 0, 13, 0, 1), "contextidr_el1" },
{ SYSREG_ENC(3, 0, 13, 0, 4), "tpidr_el1" },
+ { SYSREG_ENC(3, 0, 13, 0, 7), "scxtnum_el1" },
{ SYSREG_ENC(3, 0, 14, 1, 0), "cntkctl_el1" },
{ SYSREG_ENC(3, 1, 0, 0, 0), "ccsidr_el1" },
{ SYSREG_ENC(3, 1, 0, 0, 1), "clidr_el1" },
+ { SYSREG_ENC(3, 1, 0, 0, 2), "ccsidr2_el1" },
+ { SYSREG_ENC(3, 1, 0, 0, 4), "gmid_el1" },
{ SYSREG_ENC(3, 1, 0, 0, 7), "aidr_el1" },
{ SYSREG_ENC(3, 2, 0, 0, 0), "csselr_el1" },
{ SYSREG_ENC(3, 3, 0, 0, 1), "ctr_el0" },
@@ -407,6 +425,7 @@
{ SYSREG_ENC(3, 3, 9, 14, 3), "pmovsset_el0" },
{ SYSREG_ENC(3, 3, 13, 0, 2), "tpidr_el0" },
{ SYSREG_ENC(3, 3, 13, 0, 3), "tpidrro_el0" },
+ { SYSREG_ENC(3, 3, 13, 0, 7), "scxtnum_el0" },
{ SYSREG_ENC(3, 3, 14, 0, 0), "cntfrq_el0" },
{ SYSREG_ENC(3, 3, 14, 0, 1), "cntpct_el0" },
{ SYSREG_ENC(3, 3, 14, 0, 2), "cntvct_el0" },
@@ -487,12 +506,22 @@
{ SYSREG_ENC(3, 4, 1, 1, 1), "mdcr_el2" },
{ SYSREG_ENC(3, 4, 1, 1, 2), "cptr_el2" },
{ SYSREG_ENC(3, 4, 1, 1, 3), "hstr_el2" },
+ { SYSREG_ENC(3, 4, 1, 1, 4), "hfgrtr_el2" },
+ { SYSREG_ENC(3, 4, 1, 1, 5), "hfgwtr_el2" },
+ { SYSREG_ENC(3, 4, 1, 1, 6), "hfgitr_el2" },
{ SYSREG_ENC(3, 4, 1, 1, 7), "hacr_el2" },
{ SYSREG_ENC(3, 4, 2, 0, 0), "ttbr0_el2" },
+ { SYSREG_ENC(3, 4, 2, 0, 1), "ttbr1_el2" },
{ SYSREG_ENC(3, 4, 2, 0, 2), "tcr_el2" },
{ SYSREG_ENC(3, 4, 2, 1, 0), "vttbr_el2" },
{ SYSREG_ENC(3, 4, 2, 1, 2), "vtcr_el2" },
+ { SYSREG_ENC(3, 4, 2, 2, 0), "vncr_el2" },
+ { SYSREG_ENC(3, 4, 2, 6, 0), "vsttbr_el2" },
+ { SYSREG_ENC(3, 4, 2, 6, 2), "vstcr_el2" },
{ SYSREG_ENC(3, 4, 3, 0, 0), "dacr32_el2" },
+ { SYSREG_ENC(3, 4, 3, 1, 4), "hdfgrtr_el2" },
+ { SYSREG_ENC(3, 4, 3, 1, 5), "hdfgwtr_el2" },
+ { SYSREG_ENC(3, 4, 3, 1, 6), "hafgrtr_el2" },
{ SYSREG_ENC(3, 4, 4, 0, 0), "spsr_el2" },
{ SYSREG_ENC(3, 4, 4, 0, 1), "elr_el2" },
{ SYSREG_ENC(3, 4, 4, 1, 0), "sp_el1" },
@@ -505,6 +534,7 @@
{ SYSREG_ENC(3, 4, 5, 1, 1), "afsr1_el2" },
{ SYSREG_ENC(3, 4, 5, 2, 0), "esr_el2" },
{ SYSREG_ENC(3, 4, 5, 3, 0), "fpexc32_el2" },
+ { SYSREG_ENC(3, 4, 5, 6, 0), "tfsr_el2" },
{ SYSREG_ENC(3, 4, 6, 0, 0), "far_el2" },
{ SYSREG_ENC(3, 4, 6, 0, 4), "hpfar_el2" },
{ SYSREG_ENC(3, 4, 10, 2, 0), "mair_el2" },
@@ -512,12 +542,23 @@
{ SYSREG_ENC(3, 4, 12, 0, 0), "vbar_el2" },
{ SYSREG_ENC(3, 4, 12, 0, 1), "rvbar_el2" },
{ SYSREG_ENC(3, 4, 12, 0, 2), "rmr_el2" },
+ { SYSREG_ENC(3, 4, 13, 0, 1), "contextidr_el2" },
{ SYSREG_ENC(3, 4, 13, 0, 2), "tpidr_el2" },
+ { SYSREG_ENC(3, 4, 13, 0, 7), "scxtnum_el2" },
{ SYSREG_ENC(3, 4, 14, 0, 3), "cntvoff_el2" },
{ SYSREG_ENC(3, 4, 14, 1, 0), "cnthctl_el2" },
{ SYSREG_ENC(3, 4, 14, 2, 0), "cnthp_tval_el2" },
{ SYSREG_ENC(3, 4, 14, 2, 1), "cnthp_ctl_el2" },
{ SYSREG_ENC(3, 4, 14, 2, 2), "cnthp_cval_el2" },
+ { SYSREG_ENC(3, 4, 14, 3, 0), "cnthv_tval_el2" },
+ { SYSREG_ENC(3, 4, 14, 3, 1), "cnthv_ctl_el2" },
+ { SYSREG_ENC(3, 4, 14, 3, 2), "cnthv_cval_el2" },
+ { SYSREG_ENC(3, 4, 14, 4, 0), "cnthvs_tval_el2" },
+ { SYSREG_ENC(3, 4, 14, 4, 1), "cnthvs_ctl_el2" },
+ { SYSREG_ENC(3, 4, 14, 4, 2), "cnthvs_cval_el2" },
+ { SYSREG_ENC(3, 4, 14, 5, 0), "cnthps_tval_el2" },
+ { SYSREG_ENC(3, 4, 14, 5, 1), "cnthps_ctl_el2" },
+ { SYSREG_ENC(3, 4, 14, 5, 2), "cnthps_cval_el2" },
{ SYSREG_ENC(3, 6, 1, 0, 0), "sctlr_el3" },
{ SYSREG_ENC(3, 6, 1, 0, 1), "actlr_el3" },
{ SYSREG_ENC(3, 6, 1, 1, 0), "scr_el3" },
@@ -532,6 +573,7 @@
{ SYSREG_ENC(3, 6, 5, 1, 0), "afsr0_el3" },
{ SYSREG_ENC(3, 6, 5, 1, 1), "afsr1_el3" },
{ SYSREG_ENC(3, 6, 5, 2, 0), "esr_el3" },
+ { SYSREG_ENC(3, 6, 5, 6, 0), "tfsr_el3" },
{ SYSREG_ENC(3, 6, 6, 0, 0), "far_el3" },
{ SYSREG_ENC(3, 6, 10, 2, 0), "mair_el3" },
{ SYSREG_ENC(3, 6, 10, 3, 0), "amair_el3" },
@@ -539,6 +581,7 @@
{ SYSREG_ENC(3, 6, 12, 0, 1), "rvbar_el3" },
{ SYSREG_ENC(3, 6, 12, 0, 2), "rmr_el3" },
{ SYSREG_ENC(3, 6, 13, 0, 2), "tpidr_el3" },
+ { SYSREG_ENC(3, 6, 13, 0, 7), "scxtnum_el3" },
{ SYSREG_ENC(3, 7, 14, 2, 0), "cntps_tval_el1" },
{ SYSREG_ENC(3, 7, 14, 2, 1), "cntps_ctl_el1" },
{ SYSREG_ENC(3, 7, 14, 2, 2), "cntps_cval_el1" }
Home |
Main Index |
Thread Index |
Old Index