[PATCH AArch64] Add support for trace unit registers

Yufeng Zhang Yufeng.Zhang@arm.com
Fri Nov 15 17:13:00 GMT 2013
Hi,

This patch adds support for the trace unit registers to the AArch64 gas 
and libopcodes.

There are 210 registers added; those registers are described in the 
section 7.1 Register summary of "ARM Embedded Trace Macrocell 
Architecture Specification ETMv4" 
(https://silver.arm.com/download/ARM_and_AMBA_Architecture/AR053-DA-75005-r0p0-00rel0/IHI0064B_etm_v4_architecture_spec.pdf).

OK to for the mainline and 2_24 branch?


Thanks,
Yufeng


gas/

         * config/tc-aarch64.c (set_other_error): New function.
         (parse_sys_reg): Add new parameter 'sys_reg' and if non-NULL set
         the variable to which it points with 'o'.
         (parse_operands): Update; check for write to read-only system
         registers or read from write-only ones.

gas/testsuite/

         * gas/aarch64/diagnostic.s: Add tests.
         * gas/aarch64/diagnostic.l: Update.
         * gas/aarch64/tracereg-illegal.d: New file.
         * gas/aarch64/tracereg-illegal.l: Ditto
         * gas/aarch64/tracereg-illegal.s: Ditto
         * gas/aarch64/tracereg.d: Ditto
         * gas/aarch64/tracereg.s: Ditto

include/opcode

         * aarch64.h (aarch64_sys_reg_readonly_p): New declaration.
         (aarch64_sys_reg_writeonly_p): Ditto.

opcodes/

         * aarch64-opc.c (CPENT): New define.
         (F_READONLY, F_WRITEONLY): Likewise.
         (aarch64_sys_regs): Add trace unit registers.
         (aarch64_sys_reg_readonly_p): New function.
         (aarch64_sys_reg_writeonly_p): Ditto.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20131115/d89c730d/attachment.ksh>


More information about the Binutils mailing list