diff options
author | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-10-22 15:17:35 +0100 |
---|---|---|
committer | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-10-22 15:17:35 +0100 |
commit | 6278c6a66379c40d2d91107a2101408ec4ca0673 (patch) | |
tree | 088adac86a9cce729287f6010e57a2c5a0836894 /opcodes/aarch64-opc.c | |
parent | 5feaa09beca04312e51adc69766b0e4bfc181f99 (diff) | |
download | gdb-6278c6a66379c40d2d91107a2101408ec4ca0673.zip gdb-6278c6a66379c40d2d91107a2101408ec4ca0673.tar.gz gdb-6278c6a66379c40d2d91107a2101408ec4ca0673.tar.bz2 |
[PATCH][GAS][AArch64] Define BRBE system registers
This patch introduces BRBE (Branch Record Buffer Extension) system
registers.
Note: as this is register only extension we do not want to hide these
registers behind -march flag going forward (they should be enabled by
default).
gas/ChangeLog:
2020-10-08 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* NEWS: Docs update.
* testsuite/gas/aarch64/brbe-invalid.d: New test.
* testsuite/gas/aarch64/brbe-invalid.l: New test.
* testsuite/gas/aarch64/brbe-invalid.s: New test.
* testsuite/gas/aarch64/brbe.d: New test.
* testsuite/gas/aarch64/brbe.s: New test.
opcodes/ChangeLog:
2020-10-08 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* aarch64-opc.c: Add BRBE system registers.
Diffstat (limited to 'opcodes/aarch64-opc.c')
-rw-r--r-- | opcodes/aarch64-opc.c | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index b97d055..cebf8a4 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -4554,6 +4554,112 @@ const aarch64_sys_reg aarch64_sys_regs [] = SR_CORE ("csrptr_el2", CPENC (2,4,C8,C0,1), 0), SR_CORE ("csrptridx_el2", CPENC (2,4,C8,C0,3), F_REG_READ), + SR_CORE ("brbcr_el1", CPENC (2,1,C9,C0,0), 0), + SR_CORE ("brbcr_el12", CPENC (2,5,C9,C0,0), 0), + SR_CORE ("brbfcr_el1", CPENC (2,1,C9,C0,1), 0), + SR_CORE ("brbts_el1", CPENC (2,1,C9,C0,2), 0), + SR_CORE ("brbinfinj_el1", CPENC (2,1,C9,C1,0), 0), + SR_CORE ("brbsrcinj_el1", CPENC (2,1,C9,C1,1), 0), + SR_CORE ("brbtgtinj_el1", CPENC (2,1,C9,C1,2), 0), + SR_CORE ("brbidr0_el1", CPENC (2,1,C9,C2,0), F_REG_READ), + SR_CORE ("brbcr_el2", CPENC (2,4,C9,C0,0), 0), + SR_CORE ("brbsrc0_el1", CPENC (2,1,C8,C0,1), F_REG_READ), + SR_CORE ("brbsrc1_el1", CPENC (2,1,C8,C1,1), F_REG_READ), + SR_CORE ("brbsrc2_el1", CPENC (2,1,C8,C2,1), F_REG_READ), + SR_CORE ("brbsrc3_el1", CPENC (2,1,C8,C3,1), F_REG_READ), + SR_CORE ("brbsrc4_el1", CPENC (2,1,C8,C4,1), F_REG_READ), + SR_CORE ("brbsrc5_el1", CPENC (2,1,C8,C5,1), F_REG_READ), + SR_CORE ("brbsrc6_el1", CPENC (2,1,C8,C6,1), F_REG_READ), + SR_CORE ("brbsrc7_el1", CPENC (2,1,C8,C7,1), F_REG_READ), + SR_CORE ("brbsrc8_el1", CPENC (2,1,C8,C8,1), F_REG_READ), + SR_CORE ("brbsrc9_el1", CPENC (2,1,C8,C9,1), F_REG_READ), + SR_CORE ("brbsrc10_el1", CPENC (2,1,C8,C10,1), F_REG_READ), + SR_CORE ("brbsrc11_el1", CPENC (2,1,C8,C11,1), F_REG_READ), + SR_CORE ("brbsrc12_el1", CPENC (2,1,C8,C12,1), F_REG_READ), + SR_CORE ("brbsrc13_el1", CPENC (2,1,C8,C13,1), F_REG_READ), + SR_CORE ("brbsrc14_el1", CPENC (2,1,C8,C14,1), F_REG_READ), + SR_CORE ("brbsrc15_el1", CPENC (2,1,C8,C15,1), F_REG_READ), + SR_CORE ("brbsrc16_el1", CPENC (2,1,C8,C0,5), F_REG_READ), + SR_CORE ("brbsrc17_el1", CPENC (2,1,C8,C1,5), F_REG_READ), + SR_CORE ("brbsrc18_el1", CPENC (2,1,C8,C2,5), F_REG_READ), + SR_CORE ("brbsrc19_el1", CPENC (2,1,C8,C3,5), F_REG_READ), + SR_CORE ("brbsrc20_el1", CPENC (2,1,C8,C4,5), F_REG_READ), + SR_CORE ("brbsrc21_el1", CPENC (2,1,C8,C5,5), F_REG_READ), + SR_CORE ("brbsrc22_el1", CPENC (2,1,C8,C6,5), F_REG_READ), + SR_CORE ("brbsrc23_el1", CPENC (2,1,C8,C7,5), F_REG_READ), + SR_CORE ("brbsrc24_el1", CPENC (2,1,C8,C8,5), F_REG_READ), + SR_CORE ("brbsrc25_el1", CPENC (2,1,C8,C9,5), F_REG_READ), + SR_CORE ("brbsrc26_el1", CPENC (2,1,C8,C10,5), F_REG_READ), + SR_CORE ("brbsrc27_el1", CPENC (2,1,C8,C11,5), F_REG_READ), + SR_CORE ("brbsrc28_el1", CPENC (2,1,C8,C12,5), F_REG_READ), + SR_CORE ("brbsrc29_el1", CPENC (2,1,C8,C13,5), F_REG_READ), + SR_CORE ("brbsrc30_el1", CPENC (2,1,C8,C14,5), F_REG_READ), + SR_CORE ("brbsrc31_el1", CPENC (2,1,C8,C15,5), F_REG_READ), + SR_CORE ("brbtgt0_el1", CPENC (2,1,C8,C0,2), F_REG_READ), + SR_CORE ("brbtgt1_el1", CPENC (2,1,C8,C1,2), F_REG_READ), + SR_CORE ("brbtgt2_el1", CPENC (2,1,C8,C2,2), F_REG_READ), + SR_CORE ("brbtgt3_el1", CPENC (2,1,C8,C3,2), F_REG_READ), + SR_CORE ("brbtgt4_el1", CPENC (2,1,C8,C4,2), F_REG_READ), + SR_CORE ("brbtgt5_el1", CPENC (2,1,C8,C5,2), F_REG_READ), + SR_CORE ("brbtgt6_el1", CPENC (2,1,C8,C6,2), F_REG_READ), + SR_CORE ("brbtgt7_el1", CPENC (2,1,C8,C7,2), F_REG_READ), + SR_CORE ("brbtgt8_el1", CPENC (2,1,C8,C8,2), F_REG_READ), + SR_CORE ("brbtgt9_el1", CPENC (2,1,C8,C9,2), F_REG_READ), + SR_CORE ("brbtgt10_el1", CPENC (2,1,C8,C10,2), F_REG_READ), + SR_CORE ("brbtgt11_el1", CPENC (2,1,C8,C11,2), F_REG_READ), + SR_CORE ("brbtgt12_el1", CPENC (2,1,C8,C12,2), F_REG_READ), + SR_CORE ("brbtgt13_el1", CPENC (2,1,C8,C13,2), F_REG_READ), + SR_CORE ("brbtgt14_el1", CPENC (2,1,C8,C14,2), F_REG_READ), + SR_CORE ("brbtgt15_el1", CPENC (2,1,C8,C15,2), F_REG_READ), + SR_CORE ("brbtgt16_el1", CPENC (2,1,C8,C0,6), F_REG_READ), + SR_CORE ("brbtgt17_el1", CPENC (2,1,C8,C1,6), F_REG_READ), + SR_CORE ("brbtgt18_el1", CPENC (2,1,C8,C2,6), F_REG_READ), + SR_CORE ("brbtgt19_el1", CPENC (2,1,C8,C3,6), F_REG_READ), + SR_CORE ("brbtgt20_el1", CPENC (2,1,C8,C4,6), F_REG_READ), + SR_CORE ("brbtgt21_el1", CPENC (2,1,C8,C5,6), F_REG_READ), + SR_CORE ("brbtgt22_el1", CPENC (2,1,C8,C6,6), F_REG_READ), + SR_CORE ("brbtgt23_el1", CPENC (2,1,C8,C7,6), F_REG_READ), + SR_CORE ("brbtgt24_el1", CPENC (2,1,C8,C8,6), F_REG_READ), + SR_CORE ("brbtgt25_el1", CPENC (2,1,C8,C9,6), F_REG_READ), + SR_CORE ("brbtgt26_el1", CPENC (2,1,C8,C10,6), F_REG_READ), + SR_CORE ("brbtgt27_el1", CPENC (2,1,C8,C11,6), F_REG_READ), + SR_CORE ("brbtgt28_el1", CPENC (2,1,C8,C12,6), F_REG_READ), + SR_CORE ("brbtgt29_el1", CPENC (2,1,C8,C13,6), F_REG_READ), + SR_CORE ("brbtgt30_el1", CPENC (2,1,C8,C14,6), F_REG_READ), + SR_CORE ("brbtgt31_el1", CPENC (2,1,C8,C15,6), F_REG_READ), + SR_CORE ("brbinf0_el1", CPENC (2,1,C8,C0,0), F_REG_READ), + SR_CORE ("brbinf1_el1", CPENC (2,1,C8,C1,0), F_REG_READ), + SR_CORE ("brbinf2_el1", CPENC (2,1,C8,C2,0), F_REG_READ), + SR_CORE ("brbinf3_el1", CPENC (2,1,C8,C3,0), F_REG_READ), + SR_CORE ("brbinf4_el1", CPENC (2,1,C8,C4,0), F_REG_READ), + SR_CORE ("brbinf5_el1", CPENC (2,1,C8,C5,0), F_REG_READ), + SR_CORE ("brbinf6_el1", CPENC (2,1,C8,C6,0), F_REG_READ), + SR_CORE ("brbinf7_el1", CPENC (2,1,C8,C7,0), F_REG_READ), + SR_CORE ("brbinf8_el1", CPENC (2,1,C8,C8,0), F_REG_READ), + SR_CORE ("brbinf9_el1", CPENC (2,1,C8,C9,0), F_REG_READ), + SR_CORE ("brbinf10_el1", CPENC (2,1,C8,C10,0), F_REG_READ), + SR_CORE ("brbinf11_el1", CPENC (2,1,C8,C11,0), F_REG_READ), + SR_CORE ("brbinf12_el1", CPENC (2,1,C8,C12,0), F_REG_READ), + SR_CORE ("brbinf13_el1", CPENC (2,1,C8,C13,0), F_REG_READ), + SR_CORE ("brbinf14_el1", CPENC (2,1,C8,C14,0), F_REG_READ), + SR_CORE ("brbinf15_el1", CPENC (2,1,C8,C15,0), F_REG_READ), + SR_CORE ("brbinf16_el1", CPENC (2,1,C8,C0,4), F_REG_READ), + SR_CORE ("brbinf17_el1", CPENC (2,1,C8,C1,4), F_REG_READ), + SR_CORE ("brbinf18_el1", CPENC (2,1,C8,C2,4), F_REG_READ), + SR_CORE ("brbinf19_el1", CPENC (2,1,C8,C3,4), F_REG_READ), + SR_CORE ("brbinf20_el1", CPENC (2,1,C8,C4,4), F_REG_READ), + SR_CORE ("brbinf21_el1", CPENC (2,1,C8,C5,4), F_REG_READ), + SR_CORE ("brbinf22_el1", CPENC (2,1,C8,C6,4), F_REG_READ), + SR_CORE ("brbinf23_el1", CPENC (2,1,C8,C7,4), F_REG_READ), + SR_CORE ("brbinf24_el1", CPENC (2,1,C8,C8,4), F_REG_READ), + SR_CORE ("brbinf25_el1", CPENC (2,1,C8,C9,4), F_REG_READ), + SR_CORE ("brbinf26_el1", CPENC (2,1,C8,C10,4), F_REG_READ), + SR_CORE ("brbinf27_el1", CPENC (2,1,C8,C11,4), F_REG_READ), + SR_CORE ("brbinf28_el1", CPENC (2,1,C8,C12,4), F_REG_READ), + SR_CORE ("brbinf29_el1", CPENC (2,1,C8,C13,4), F_REG_READ), + SR_CORE ("brbinf30_el1", CPENC (2,1,C8,C14,4), F_REG_READ), + SR_CORE ("brbinf31_el1", CPENC (2,1,C8,C15,4), F_REG_READ), + { 0, CPENC (0,0,0,0,0), 0, 0 } }; |