[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v12 34/65] target/arm: wrap call to aarch64_sve_change_el in tcg_en
From: |
Claudio Fontana |
Subject: |
[RFC v12 34/65] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled() |
Date: |
Fri, 26 Mar 2021 20:36:30 +0100 |
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 2a87c548e5..078018df7f 100644
--- a/target/arm/cpu-sysemu.c
+++ b/target/arm/cpu-sysemu.c
@@ -819,11 +819,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
- Re: [RFC v12 40/65] tests/qtest: skip bios-tables-test test_acpi_oem_fields_virt for KVM, (continued)
- [RFC v12 36/65] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Claudio Fontana, 2021/03/26
- Re: [RFC v12 36/65] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Richard Henderson, 2021/03/28
- Re: [RFC v12 36/65] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Richard Henderson, 2021/03/28
- [RFC v12 33/65] target/arm: move cpu_tcg to tcg/tcg-cpu-models.c, Claudio Fontana, 2021/03/26
- [RFC v12 41/65] tests: restrict TCG-only arm-cpu-features tests to TCG builds, Claudio Fontana, 2021/03/26
- [RFC v12 27/65] target/arm: split a15 cpu model and 32bit class functions to cpu32.c, Claudio Fontana, 2021/03/26
- [RFC v12 34/65] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled(),
Claudio Fontana <=
- [RFC v12 37/65] target/arm: cleanup cpu includes, Claudio Fontana, 2021/03/26
- [RFC v12 42/65] tests: do not run test-hmp on all machines for ARM KVM-only, Claudio Fontana, 2021/03/26
- [RFC v12 44/65] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/26
- [RFC v12 47/65] target/arm: move kvm post init initialization to kvm cpu accel, Claudio Fontana, 2021/03/26
- [RFC v12 43/65] tests: device-introspect-test: cope with ARM TCG-only devices, Claudio Fontana, 2021/03/26