Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
accel/tcg: Tidy includes for translator.[ch]
Reduce the header to only bswap.h and cpu_ldst.h.
Move exec/translate-all.h to translator.c.
Reduce tcg.h and tcg-op.h to tcg-op-common.h.
Remove otherwise unused headers.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Jun 5, 2023
1 parent 1f17f91 commit 653c46d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 3 additions & 5 deletions accel/tcg/translator.c
Expand Up @@ -8,15 +8,13 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "tcg/tcg.h"
#include "tcg/tcg-op.h"
#include "exec/exec-all.h"
#include "exec/log.h"
#include "exec/translator.h"
#include "exec/translate-all.h"
#include "exec/plugin-gen.h"
#include "exec/replay-core.h"

#include "tcg/tcg-op-common.h"

static void gen_io_start(void)
{
Expand Down
6 changes: 1 addition & 5 deletions include/exec/translator.h
Expand Up @@ -18,12 +18,8 @@
* member in your target-specific DisasContext.
*/


#include "qemu/bswap.h"
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h"
#include "exec/translate-all.h"
#include "tcg/tcg.h"
#include "exec/cpu_ldst.h" /* for abi_ptr */

/**
* gen_intermediate_code
Expand Down

0 comments on commit 653c46d

Please sign in to comment.