[PATCH, AArch64] Deprecate the alias system registers spsr_svc and spsr_hyp

Yufeng Zhang Yufeng.Zhang@arm.com
Tue Nov 5 17:58:00 GMT 2013


Hi,

This patch updates the AArch64 gas to warn about the deprecated alias 
system registers names "spsr_svc" and "spsr_hyp", as a response to a 
recent clarification in the ISA.  The names "spsr_el1" and "spsr_el2" 
are preferred.

OK for the trunk and 2.24?

Thanks,
Yufeng

gcc/

	* config/tc-aarch64.c (parse_sys_reg): Update to use aarch64_sys_reg;
	call aarch64_sys_reg_deprecated_p and warn about the deprecated
	system registers.

gas/testsuite/

	* gas/aarch64/deprecated.d: New file.
	* gas/aarch64/deprecated.l: New file.
	* gas/aarch64/deprecated.s: New file.
	* gas/aarch64/sysreg-1.s: Add tests.
	* gas/aarch64/sysreg-1.d: Add tests.

include/opcode/

	* aarch64.h (aarch64_sys_reg): New typedef.
	(aarch64_sys_regs): Change to define with the new type.
	(aarch64_sys_reg_deprecated_p): Declare.

opcodes/

	* aarch64-opc.c (F_DEPRECATED): New macro.
	(aarch64_sys_regs): Update; flag "spsr_svc" and "spsr_hyp" with
	F_DEPRECATED.
	(aarch64_print_operand): Call aarch64_sys_reg_deprecated_p on
	AARCH64_OPND_SYSREG.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20131105/97aac1b1/attachment.ksh>


More information about the Binutils mailing list