[PATCH ARM 3/6]: Architectural Extensions - Security Extensions

Matthew Gretton-Dann matthew.gretton-dann@arm.com
Thu Sep 23 09:20:00 GMT 2010


All,

The attached patch adds explicit support for Security Extensions to v7-A
and v6K, under the 'sec' architecture extension.

The majority of support was already available in the tools, but this
patch makes it explicitly separate from the base-line v7-A architecture.
It also corrects an issue where we would accept 'SMC' in v6T2 when in
fact it is not present until v7-A.

Proposed ChangeLogs:

gas/ChangeLog:
2010-09-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* config/tc-arm.c (arm_ext_v6z): Remove.
	(arm_ext_sec): Add.
	(do_t_smc): In Thumb state SMC requires v7-A.
	(insns): Make SMC depend on Security Extensions.
	(arm_cpus): All -mcpu=cortex-a* options have the Security 
	Extensions.
	(arm_extensions): Add 'sec' extension.
	(cpu_arch_ver): Reorder.
	(aeabi_set_public_attributes): Emit Tag_Virtualization_use as
	appropriate.
	* doc/c-arm.texi: Document Security Extensions.

gas/testsuite/ChangeLog:
2010-09-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* gas/arm/attr-march-all.d: Update for Security Extensions..
	* gas/arm/attr-march-armv6k+sec.d: New test.
	* gas/arm/attr-march-armv6z.d: Update for Security Extensions.
	* gas/arm/attr-march-armv6zk.d: Likewise.
	* gas/arm/attr-march-armv6zkt2.d: Likewise.
	* gas/arm/attr-march-armv6zt2.d: Likewise.
	* gas/arm/attr-march-armv7-a+sec.d: New test.
	* gas/arm/attr-mcpu.d: Update for Security Extensions.
	* gas/arm/thumb32.d: Likewise.
	* gas/arm/thumb32.s: Likewise.

include/opcode/ChangeLog:
2010-09-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* arm.h (ARM_EXT_V6Z): Remove.
	(ARM_EXT_SEC): Add.
	(ARM_AEXT_V6Z): Use Security Extensions.
	(ARM_AEXT_V6ZK): Likeiwse.
	(ARM_AEXT_V6ZT2): Likewise.
	(ARM_AEXT_V6ZKT2): Likewise.
	(ARM_AEXT_V7_ARM): Base v7 does not have Security Extensions.
	(ARM_ARCH_V7A_SEC): Add.
	(ARM_ARCH_V7A_MP): Rename...
	(ARM_ARCH_V7A_MP_SEC): ...to this and add Security Extensions.

ld/testsuite/ChangeLog:
2010-09-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* ld-arm/attr-merge-6.attr: Update for Security Extensions.
	* ld-arm/attr-merge-7.attr: Likewise.

opcodes/ChangeLog:
2010-09-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* arm-dis.c (arm_opcodes): SMC implies Security Extensions.
	(thumb32_opcodes): Likewise.

Thanks,

Matt


-- 
Matthew Gretton-Dann
Principal Engineer - PDSW Tools
ARM Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1009-003-arch-extensions-sec.patch
Type: text/x-patch
Size: 14996 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100923/4e19fef2/attachment.bin>


More information about the Binutils mailing list