[PATCH][AArch64][1/14] Add ident field to struct processor
James Greenhalgh
james.greenhalgh@arm.com
Fri Jul 17 09:12:00 GMT 2015
On Thu, Jul 16, 2015 at 04:20:30PM +0100, Kyrill Tkachov wrote:
> Hi all,
>
> This first patch adds a field to the processor structure that uniquely
> identifies that processor. Note that the current 'core' field is actually
> just the core for which to schedule the instructions. With this patch we get
> the nice property that we can reference a processor struct by just indexing
> the all_cores at the index specified by the value of the 'ident' enum. It's
> not hard to implement either, since we already construct the required enum
> values in aarch64-opts.h and aarch64-cores.def already specifies the correct
> values for each core!
>
> Thus, to implement the 'back up and restore' functionality we need for
> SWITCHABLE_TARGET the only thing we'd need to save and restore on the tuning
> side is an aarch64_processor enum value.
>
> Bootstrapped with and without LTO and tested on aarch64 as part of series.
>
> Ok for trunk?
OK.
Thanks,
James
> 2015-07-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
>
> * config/aarch64/aarch64.c (struct processor): Add ident field.
> Rename core sched_core.
> (all_cores): Handle above changes.
> (all_architectures): Likewise.
> (aarch64_parse_arch): Likewise.
> (aarch64_override_options): Likewise.
More information about the Gcc-patches
mailing list