mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
9def656e7a
commit
2b77ad4de6
6 changed files with 42 additions and 17 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "hw/arm/boot.h"
|
||||
#include "hw/arm/linux-boot-if.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "sysemu/tcg.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysemu/numa.h"
|
||||
#include "hw/boards.h"
|
||||
|
@ -827,7 +828,10 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue