Implement {spe,sve}_supported() helpers and refactor code
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Mon, 19 Feb 2018 14:52:19 +0000 (14:52 +0000)
committerDimitris Papastamos <dimitris.papastamos@arm.com>
Tue, 27 Feb 2018 12:05:59 +0000 (12:05 +0000)
commit2ff8fbf3b0d1403afab9b5316fd7ea40859c889c
tree6eaae91e9bf4e3b5bdf6031ef4920e1e69c323b3
parentc7aa7fdf56b4a41172f0ad5998262352d104b6d7
Implement {spe,sve}_supported() helpers and refactor code

Implement helpers to test if the core supports SPE/SVE.  We have a
similar helper for AMU and this patch makes all extensions consistent
in their implementation.

Change-Id: I3e6f7522535ca358259ad142550b19fcb883ca67
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
include/lib/extensions/spe.h
include/lib/extensions/sve.h
lib/extensions/spe/spe.c
lib/extensions/sve/sve.c