]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm/tcg/crypto_helper: compile file once
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Mon, 12 May 2025 18:04:54 +0000 (11:04 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 14 May 2025 14:12:40 +0000 (15:12 +0100)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250512180502.2395029-41-pierrick.bouvier@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/tcg/crypto_helper.c
target/arm/tcg/meson.build

index 7cadd61e12455a50b565eddebb44ab82d4930fa0..3428bd1bf0b4b852bad5a6a53982cd56d4d4ae64 100644 (file)
  */
 
 #include "qemu/osdep.h"
+#include "qemu/bitops.h"
 
-#include "cpu.h"
-#include "exec/helper-proto.h"
 #include "tcg/tcg-gvec-desc.h"
 #include "crypto/aes-round.h"
 #include "crypto/sm4.h"
 #include "vec_internal.h"
 
+#define HELPER_H "tcg/helper.h"
+#include "exec/helper-proto.h.inc"
+
 union CRYPTO_STATE {
     uint8_t    bytes[16];
     uint32_t   words[4];
index dd12ccedb182db5a7f99fc6e8df7a1e5357d99cc..2f73eefe3835eaa595b7023bf2decb8c549a7198 100644 (file)
@@ -30,7 +30,6 @@ arm_ss.add(files(
   'translate-mve.c',
   'translate-neon.c',
   'translate-vfp.c',
-  'crypto_helper.c',
   'hflags.c',
   'iwmmxt_helper.c',
   'm_helper.c',
@@ -63,3 +62,7 @@ arm_system_ss.add(files(
 
 arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c'))
 arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c'))
+
+arm_common_ss.add(files(
+  'crypto_helper.c',
+))