Optimize/cleanup BPIALL workaround
In the initial implementation of this workaround we used a dedicated
workaround context to save/restore state.  This patch reduces the
footprint as no additional context is needed.

Additionally, this patch reduces the memory loads and stores by 20%,
reduces the instruction count and exploits static branch prediction to
optimize the SMC path.

Change-Id: Ia9f6bf06fbf8a9037cfe7f1f1fb32e8aec38ec7d
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
1 parent 6eabbb0 commit d9bd656cf5a4d0c21597a956c3711d08626ecfd0
@Dimitris Papastamos Dimitris Papastamos authored on 11 Jan 2018
Showing 2 changed files
View
include/lib/el3_runtime/aarch64/context.h
View
lib/cpus/aarch64/workaround_cve_2017_5715_bpiall.S