]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/mips: Tidy helpers for translation
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 2 Apr 2023 03:44:44 +0000 (20:44 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 5 Jun 2023 19:04:29 +0000 (12:04 -0700)
Move most includes from *translate*.c to translate.h, ensuring
that we get the ordering correct.  Ensure cpu.h is first.
Use disas/disas.h instead of exec/log.h.
Drop otherwise unused includes.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/mips/tcg/msa_translate.c
target/mips/tcg/mxu_translate.c
target/mips/tcg/octeon_translate.c
target/mips/tcg/rel6_translate.c
target/mips/tcg/translate.c
target/mips/tcg/translate.h
target/mips/tcg/translate_addr_const.c
target/mips/tcg/tx79_translate.c
target/mips/tcg/vr54xx_translate.c

index 220cd3b0489fc1347b46e2d4d19db741b7c66ddc..b5b66fb38ab8d442d911c369aa98b41722ff22c7 100644 (file)
  * SPDX-License-Identifier: LGPL-2.1-or-later
  */
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
-#include "exec/helper-gen.h"
 #include "translate.h"
 #include "fpu_helper.h"
-#include "internal.h"
 
 static int elm_n(DisasContext *ctx, int x);
 static int elm_df(DisasContext *ctx, int x);
index be038b5f07a48336fdfb88859d3eb60ec7a55936..39348b3a9176dadff1ae75605f601cfa3c00ba70 100644 (file)
@@ -16,8 +16,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
-#include "exec/helper-gen.h"
 #include "translate.h"
 
 /*
index 103c304d104dbe4df168eba4ee3e09dfa3c8304e..e25c4cbaa0647f179e98a1f388812135ece3b9a5 100644 (file)
@@ -7,10 +7,8 @@
  */
 
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
-#include "tcg/tcg-op-gvec.h"
-#include "exec/helper-gen.h"
 #include "translate.h"
+#include "tcg/tcg-op-gvec.h"
 
 /* Include the auto-generated decoder.  */
 #include "decode-octeon.c.inc"
index d631851258aaf316d700912518a5eb8add41688b..59f237ba3bac845121a6a5c472fc515a38d47a76 100644 (file)
@@ -9,8 +9,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
-#include "exec/helper-gen.h"
 #include "translate.h"
 
 /* Include the auto-generated decoders.  */
index 312ed66989cecdc6ea28773b41246c14eadfac35..f3da05ba3b9aa928e36a9058dfdbb25b01f5b81a 100644 (file)
  */
 
 #include "qemu/osdep.h"
-#include "cpu.h"
+#include "translate.h"
 #include "internal.h"
-#include "tcg/tcg-op.h"
-#include "exec/translator.h"
 #include "exec/helper-proto.h"
-#include "exec/helper-gen.h"
 #include "semihosting/semihost.h"
-
 #include "trace.h"
-#include "exec/log.h"
-#include "qemu/qemu-print.h"
+#include "disas/disas.h"
 #include "fpu_helper.h"
-#include "translate.h"
 
 #define HELPER_H "helper.h"
 #include "exec/helper-info.c.inc"
index fa8bf552091ff2f501f4708a171454f2b6c48201..3b0498a47a8ce9a600c32c13533955fda3a2df52 100644 (file)
@@ -8,9 +8,11 @@
 #ifndef TARGET_MIPS_TRANSLATE_H
 #define TARGET_MIPS_TRANSLATE_H
 
-#include "qemu/log.h"
-#include "exec/translator.h"
+#include "cpu.h"
 #include "tcg/tcg-op.h"
+#include "exec/translator.h"
+#include "exec/helper-gen.h"
+#include "qemu/log.h"
 
 #define MIPS_DEBUG_DISAS 0
 
index a510da406c93bff100d3470cf875be0699a2d996..6f4b39f715b818cab3878c507a6884af246219a1 100644 (file)
@@ -11,7 +11,6 @@
  * SPDX-License-Identifier: LGPL-2.1-or-later
  */
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
 #include "translate.h"
 
 bool gen_lsa(DisasContext *ctx, int rd, int rt, int rs, int sa)
index 3a45a1bfea3efa62e2bff5c354297703d5ccbd91..dd6fb8a7bd7230a3369845c7bdc0892080e294fc 100644 (file)
@@ -8,10 +8,8 @@
  */
 
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
-#include "tcg/tcg-op-gvec.h"
-#include "exec/helper-gen.h"
 #include "translate.h"
+#include "tcg/tcg-op-gvec.h"
 
 /* Include the auto-generated decoder.  */
 #include "decode-tx79.c.inc"
index 804672f84c27275bcf6f0312823069788c6bc716..2c1f6cc5278526d596ba326b176c0bcb86bfbdae 100644 (file)
  */
 
 #include "qemu/osdep.h"
-#include "tcg/tcg-op.h"
-#include "exec/helper-gen.h"
 #include "translate.h"
-#include "internal.h"
 
 /* Include the auto-generated decoder. */
 #include "decode-vr54xx.c.inc"