[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v16 33/99] target/arm: add temporary stub for arm_rebuild_hflags
From: |
Alex Bennée |
Subject: |
[PATCH v16 33/99] target/arm: add temporary stub for arm_rebuild_hflags |
Date: |
Fri, 4 Jun 2021 16:52:06 +0100 |
From: Claudio Fontana <cfontana@suse.de>
this should go away once the configuration and hw/arm is clean
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
hw/arm/boot.c | 5 ++++-
target/arm/arm-powerctl.c | 8 +++++---
target/arm/tcg/tcg-stubs.c | 5 +++++
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index d7b059225e..13eea9e372 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -26,6 +26,7 @@
#include "qemu/config-file.h"
#include "qemu/option.h"
#include "qemu/units.h"
+#include "sysemu/tcg.h"
/* Kernel boot protocol is specified in the kernel docs
* Documentation/arm/Booting and Documentation/arm64/booting.txt
@@ -796,7 +797,9 @@ static void do_cpu_reset(void *opaque)
info->secondary_cpu_reset_hook(cpu, info);
}
}
- arm_rebuild_hflags(env);
+ if (tcg_enabled()) {
+ arm_rebuild_hflags(env);
+ }
}
}
diff --git a/target/arm/arm-powerctl.c b/target/arm/arm-powerctl.c
index b75f813b40..a00624876c 100644
--- a/target/arm/arm-powerctl.c
+++ b/target/arm/arm-powerctl.c
@@ -15,6 +15,7 @@
#include "arm-powerctl.h"
#include "qemu/log.h"
#include "qemu/main-loop.h"
+#include "sysemu/tcg.h"
#ifndef DEBUG_ARM_POWERCTL
#define DEBUG_ARM_POWERCTL 0
@@ -127,9 +128,10 @@ static void arm_set_cpu_on_async_work(CPUState
*target_cpu_state,
target_cpu->env.regs[0] = info->context_id;
}
- /* CP15 update requires rebuilding hflags */
- arm_rebuild_hflags(&target_cpu->env);
-
+ if (tcg_enabled()) {
+ /* CP15 update requires rebuilding hflags */
+ arm_rebuild_hflags(&target_cpu->env);
+ }
/* Start the new CPU at the requested address */
cpu_set_pc(target_cpu_state, info->entry);
diff --git a/target/arm/tcg/tcg-stubs.c b/target/arm/tcg/tcg-stubs.c
index 14220d59a1..332f1b9cfb 100644
--- a/target/arm/tcg/tcg-stubs.c
+++ b/target/arm/tcg/tcg-stubs.c
@@ -14,3 +14,8 @@ void write_v7m_exception(CPUARMState *env, uint32_t new_exc)
{
g_assert_not_reached();
}
+
+void arm_rebuild_hflags(CPUARMState *env)
+{
+ g_assert_not_reached();
+}
--
2.20.1
- [PATCH v16 76/99] target/arm: restrict rebuild_hflags_a64 to TARGET_AARCH64, (continued)
- [PATCH v16 76/99] target/arm: restrict rebuild_hflags_a64 to TARGET_AARCH64, Alex Bennée, 2021/06/04
- [PATCH v16 92/99] target/arm: remove v7m stub function for !CONFIG_TCG, Alex Bennée, 2021/06/04
- [PATCH v16 82/99] target/arm: move sve_zcr_len_for_el to TARGET_AARCH64-only cpu-sve, Alex Bennée, 2021/06/04
- [PATCH v16 99/99] gitlab: defend the new stripped down arm64 configs, Alex Bennée, 2021/06/04
- [PATCH v16 41/99] target/arm: new cpu32 ARM 32 bit CPU Class, Alex Bennée, 2021/06/04
- [PATCH v16 33/99] target/arm: add temporary stub for arm_rebuild_hflags,
Alex Bennée <=
- [PATCH v16 31/99] target/arm: tcg: add stubs for some helpers for non-tcg builds, Alex Bennée, 2021/06/04
- [PATCH v16 51/99] target/arm: move exception code out of tcg/helper.c, Alex Bennée, 2021/06/04
- [PATCH v16 53/99] target/arm: replace CONFIG_TCG with tcg_enabled, Alex Bennée, 2021/06/04
- [PATCH v16 23/99] target/arm: only build psci for TCG, Alex Bennée, 2021/06/04
- [PATCH v16 68/99] target/arm: move kvm post init initialization to kvm cpu accel, Alex Bennée, 2021/06/04
- [PATCH v16 67/99] target/arm: create kvm cpu accel class, Alex Bennée, 2021/06/04
- [PATCH v16 40/99] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code, Alex Bennée, 2021/06/04