[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v14 42/80] target/arm: wrap call to aarch64_sve_change_el in tcg_en
From: |
Claudio Fontana |
Subject: |
[RFC v14 42/80] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled() |
Date: |
Fri, 16 Apr 2021 18:27:46 +0200 |
After this patch it is possible to build only kvm:
./configure --disable-tcg --enable-kvm
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/cpu-sysemu.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/target/arm/cpu-sysemu.c b/target/arm/cpu-sysemu.c
index c09c89eeac..2d3fe4f643 100644
--- a/target/arm/cpu-sysemu.c
+++ b/target/arm/cpu-sysemu.c
@@ -917,11 +917,13 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs)
unsigned int cur_el = arm_current_el(env);
int rt;
- /*
- * Note that new_el can never be 0. If cur_el is 0, then
- * el0_a64 is is_a64(), else el0_a64 is ignored.
- */
- aarch64_sve_change_el(env, cur_el, new_el, is_a64(env));
+ if (tcg_enabled()) {
+ /*
+ * Note that new_el can never be 0. If cur_el is 0, then
+ * el0_a64 is is_a64(), else el0_a64 is ignored.
+ */
+ aarch64_sve_change_el(env, cur_el, new_el, is_a64(env));
+ }
if (cur_el < new_el) {
/*
--
2.26.2
- [RFC v14 23/80] target/arm: move sve_zcr_len_for_el to common_cpu, (continued)
- [RFC v14 23/80] target/arm: move sve_zcr_len_for_el to common_cpu, Claudio Fontana, 2021/04/16
- [RFC v14 20/80] target/arm: move arm_hcr_el2_eff from tcg/ to common_cpu, Claudio Fontana, 2021/04/16
- [RFC v14 26/80] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code, Claudio Fontana, 2021/04/16
- [RFC v14 27/80] target/arm: new cpu32 ARM 32 bit CPU Class, Claudio Fontana, 2021/04/16
- [RFC v14 28/80] target/arm: split 32bit and 64bit arm dump state, Claudio Fontana, 2021/04/16
- [RFC v14 29/80] target/arm: move a15 cpu model away from the TCG-only models, Claudio Fontana, 2021/04/16
- [RFC v14 25/80] target/arm: move arm_cpu_list to common_cpu, Claudio Fontana, 2021/04/16
- [RFC v14 32/80] target/arm: fix comments style of fp_exception_el before moving it, Claudio Fontana, 2021/04/16
- [RFC v14 33/80] target/arm: move fp_exception_el out of TCG helpers, Claudio Fontana, 2021/04/16
- [RFC v14 38/80] target/arm: rename handle_semihosting to tcg_handle_semihosting, Claudio Fontana, 2021/04/16
- [RFC v14 42/80] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled(),
Claudio Fontana <=
- [RFC v14 45/80] MAINTAINERS: update arm kvm maintained files to all in target/arm/kvm/, Claudio Fontana, 2021/04/16
- [RFC v14 48/80] target/arm: remove kvm-stub.c, Claudio Fontana, 2021/04/16
- [RFC v14 34/80] target/arm: remove now useless ifndef from fp_exception_el, Claudio Fontana, 2021/04/16
- [RFC v14 30/80] target/arm: fixup sve_exception_el code style before move, Claudio Fontana, 2021/04/16
- [RFC v14 31/80] target/arm: move sve_exception_el out of TCG helpers, Claudio Fontana, 2021/04/16
- [RFC v14 39/80] target/arm: replace CONFIG_TCG with tcg_enabled, Claudio Fontana, 2021/04/16
- [RFC v14 36/80] target/arm: fix style of arm_cpu_do_interrupt functions before move, Claudio Fontana, 2021/04/16
- [RFC v14 35/80] target/arm: make further preparation for the exception code to move, Claudio Fontana, 2021/04/16
- [RFC v14 43/80] target/arm: remove kvm include file for PSCI and arm-powerctl, Claudio Fontana, 2021/04/16
- [RFC v14 40/80] target/arm: move TCGCPUOps to tcg/tcg-cpu.c, Claudio Fontana, 2021/04/16