diff options
author | Fabiano Rosas <farosas@suse.de> | 2023-02-17 17:11:32 -0300 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-02-27 13:27:04 +0000 |
commit | 2b77ad4de615542dd8f6b9886a816e744b0abffd (patch) | |
tree | ad7ff3963315972c1145b373039907205a60b0c4 /target/arm/cpu.c | |
parent | 9def656e7a23515d5afd5e5e350574d1dfb7fcc9 (diff) | |
download | qemu-2b77ad4de615542dd8f6b9886a816e744b0abffd.zip qemu-2b77ad4de615542dd8f6b9886a816e744b0abffd.tar.gz qemu-2b77ad4de615542dd8f6b9886a816e744b0abffd.tar.bz2 |
target/arm: Wrap arm_rebuild_hflags calls with tcg_enabled
This is in preparation to moving the hflags code into its own file
under the tcg/ directory.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.c')
-rw-r--r-- | target/arm/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index da416f7..0b333a7 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -542,8 +542,9 @@ static void arm_cpu_reset_hold(Object *obj) if (tcg_enabled()) { hw_breakpoint_update_all(cpu); hw_watchpoint_update_all(cpu); + + arm_rebuild_hflags(env); } - arm_rebuild_hflags(env); } #if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY) |