From: Claudio Fontana<cfontana@suse.de>
the exception code in tcg/ needs some adjustment before being exposed
to KVM-only builds. We need to call arm_rebuild_hflags only when
TCG is enabled, or we will error out.
The direct call to helper_rebuild_hflags_a64(env, new_el) will not
be possible when extracting out to common code,
it seems safe to replace it with a call to arm_rebuild_hflags, since
the write to pstate is already done.
Also, some CONFIG_TCG needs to be extended further, so that all
the tcg-only code is marked as such.
Signed-off-by: Claudio Fontana<cfontana@suse.de>
Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
---
target/arm/tcg/helper.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)