This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCHv2 1/7, GCC, ARM, V8M] Add support for ARMv8-M's Secure Extensions flag and intrinsics


On 24/08/16 12:00, Andre Vieira (lists) wrote:
> On 25/07/16 14:19, Andre Vieira (lists) wrote:
>> This patch adds the support of the '-mcmse' option to enable ARMv8-M's
>> Security Extensions and supports the following intrinsics:
>> cmse_TT
>> cmse_TT_fptr
>> cmse_TTT
>> cmse_TTT_fptr
>> cmse_TTA
>> cmse_TTA_fptr
>> cmse_TTAT
>> cmse_TTAT_fptr
>> cmse_check_address_range
>> cmse_check_pointed_object
>> cmse_is_nsfptr
>> cmse_nsfptr_create
>>
>> It also defines the mandatory cmse_address_info struct and the
>> __ARM_FEATURE_CMSE macro.
>> See Chapter 4, Sections 5.2, 5.3 and 5.6 of ARM®v8-M Security
>> Extensions: Requirements on Development Tools
>> (http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/index.html).
>>
>> *** gcc/ChangeLog ***
>> 2016-07-25  Andre Vieira        <andre.simoesdiasvieira@arm.com>
>>             Thomas Preud'homme  <thomas.preudhomme@arm.com>
>>
>>         * config.gcc (extra_headers): Added arm_cmse.h.
>>         * config/arm/arm-arches.def (ARM_ARCH):
>>         (armv8-m): Add FL2_CMSE.
>>         (armv8-m.main): Likewise.
>>         (armv8-m.main+dsp): Likewise.
>>         * config/arm/arm-c.c
>>         (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
>>         * config/arm/arm-protos.h
>>         (arm_is_constant_pool_ref): Define FL2_CMSE.
>>         * config/arm.c (arm_arch_cmse): New.
>>         (arm_option_override): New error for unsupported cmse target.
>>         * config/arm/arm.h (arm_arch_cmse): New.
>>         * config/arm/arm.opt (mcmse): New.
>>         * doc/invoke.texi (ARM Options): Add -mcmse.
>>         * config/arm/arm_cmse.h: New file.
>>
>> *** libgcc/ChangeLog ***
>> 2016-07-25  Andre Vieira        <andre.simoesdiasvieira@arm.com>
>>             Thomas Preud'homme  <thomas.preudhomme@arm.com>
>>
>>         * config/arm/cmse.c: Likewise.
>>         * config/arm/t-arm (HAVE_CMSE): New.
>>
>> *** gcc/testsuite/ChangeLog ***
>> 2016-07-25  Andre Vieira        <andre.simoesdiasvieira@arm.com>
>>             Thomas Preud'homme  <thomas.preudhomme@arm.com>
>>
>>         * gcc.target/arm/cmse/cmse.exp: New.
>>         * gcc.target/arm/cmse/cmse-1.c: New.
>>         * gcc.target/arm/cmse/cmse-12.c: New.
>>         * lib/target-supports.exp
>>         (check_effective_target_arm_cmse_ok): New.
>>
> 
> Added more documentation as requested.
> 
> This patch adds the support of the '-mcmse' option to enable ARMv8-M's
> Security Extensions and supports the following intrinsics:
> cmse_TT
> cmse_TT_fptr
> cmse_TTT
> cmse_TTT_fptr
> cmse_TTA
> cmse_TTA_fptr
> cmse_TTAT
> cmse_TTAT_fptr
> cmse_check_address_range
> cmse_check_pointed_object
> cmse_is_nsfptr
> cmse_nsfptr_create
> 
> It also defines the mandatory cmse_address_info struct and the
> __ARM_FEATURE_CMSE macro.
> See Chapter 4, Sections 5.2, 5.3 and 5.6 of ARM®v8-M Security
> Extensions: Requirements on Development Tools
> (http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/index.html).
> 
> *** gcc/ChangeLog ***
> 2016-07-xx  Andre Vieira        <andre.simoesdiasvieira@arm.com>
>             Thomas Preud'homme  <thomas.preudhomme@arm.com>
> 
>         * config.gcc (extra_headers): Added arm_cmse.h.
>         * config/arm/arm-arches.def (ARM_ARCH):
>         (armv8-m): Add FL2_CMSE.
>         (armv8-m.main): Likewise.
>         (armv8-m.main+dsp): Likewise.
>         * config/arm/arm-c.c
>         (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
>         * config/arm/arm-protos.h
>         (arm_is_constant_pool_ref): Define FL2_CMSE.
>         * config/arm.c (arm_arch_cmse): New.
>         (arm_option_override): New error for unsupported cmse target.
>         * config/arm/arm.h (arm_arch_cmse): New.
>         * config/arm/arm.opt (mcmse): New.
>         * doc/invoke.texi (ARM Options): Add -mcmse.
>         * doc/extend.texi (ARM ARMv8-M Security Extensions): Add section.
>         * config/arm/arm_cmse.h: New file.
> 
> *** libgcc/ChangeLog ***
> 2016-07-xx  Andre Vieira        <andre.simoesdiasvieira@arm.com>
>             Thomas Preud'homme  <thomas.preudhomme@arm.com>
>         * config/arm/cmse.c: Likewise.
>         * config/arm/t-arm (HAVE_CMSE): New.
> 
> 
> *** gcc/testsuite/ChangeLog ***
> 2016-07-xx  Andre Vieira        <andre.simoesdiasvieira@arm.com>
>             Thomas Preud'homme  <thomas.preudhomme@arm.com>
> 
>         * gcc.target/arm/cmse/cmse.exp: New.
>         * gcc.target/arm/cmse/cmse-1.c: New.
>         * gcc.target/arm/cmse/cmse-12.c: New.
>         * lib/target-supports.exp
>         (check_effective_target_arm_cmse_ok): New.
> 
Hi,

Rebased previous patch on top of trunk as requested. No changes to
ChangeLog.

Cheers,
Andre

Attachment: diff1
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]