Skip to content

Commit 4c268d6

Browse files
philmdrth7680
authored andcommitted
accel/tcg: Rename target-specific 'internal.h' -> 'internal-target.h'
accel/tcg/internal.h contains target specific declarations. Unit files including it become "target tainted": they can not be compiled as target agnostic. Rename using the '-target' suffix to make this explicit. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Anton Johansson <anjo@rev.ng> Message-Id: <20230914185718.76241-9-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
1 parent 8c7907a commit 4c268d6

10 files changed

+12
-12
lines changed

accel/tcg/cpu-exec-common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "sysemu/tcg.h"
2323
#include "exec/exec-all.h"
2424
#include "qemu/plugin.h"
25-
#include "internal.h"
25+
#include "internal-target.h"
2626

2727
bool tcg_allowed;
2828

accel/tcg/cpu-exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "tb-jmp-cache.h"
4343
#include "tb-hash.h"
4444
#include "tb-context.h"
45-
#include "internal.h"
45+
#include "internal-target.h"
4646

4747
/* -icount align implementation. */
4848

accel/tcg/cputlb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "exec/translate-all.h"
3636
#include "trace.h"
3737
#include "tb-hash.h"
38-
#include "internal.h"
38+
#include "internal-target.h"
3939
#ifdef CONFIG_PLUGIN
4040
#include "qemu/plugin-memory.h"
4141
#endif

accel/tcg/internal.h renamed to accel/tcg/internal-target.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
2-
* Internal execution defines for qemu
2+
* Internal execution defines for qemu (target specific)
33
*
44
* Copyright (c) 2003 Fabrice Bellard
55
*
66
* SPDX-License-Identifier: LGPL-2.1-or-later
77
*/
88

9-
#ifndef ACCEL_TCG_INTERNAL_H
10-
#define ACCEL_TCG_INTERNAL_H
9+
#ifndef ACCEL_TCG_INTERNAL_TARGET_H
10+
#define ACCEL_TCG_INTERNAL_TARGET_H
1111

1212
#include "exec/exec-all.h"
1313
#include "exec/translate-all.h"

accel/tcg/monitor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "sysemu/cpu-timers.h"
1717
#include "sysemu/tcg.h"
1818
#include "tcg/tcg.h"
19-
#include "internal.h"
19+
#include "internal-target.h"
2020

2121

2222
static void dump_drift_info(GString *buf)

accel/tcg/tb-maint.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "tcg/tcg.h"
3030
#include "tb-hash.h"
3131
#include "tb-context.h"
32-
#include "internal.h"
32+
#include "internal-target.h"
3333

3434

3535
/* List iterators for lists of tagged pointers in TranslationBlock. */

accel/tcg/tcg-all.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#if !defined(CONFIG_USER_ONLY)
3939
#include "hw/boards.h"
4040
#endif
41-
#include "internal.h"
41+
#include "internal-target.h"
4242

4343
struct TCGState {
4444
AccelState parent_obj;

accel/tcg/translate-all.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#include "tb-jmp-cache.h"
6262
#include "tb-hash.h"
6363
#include "tb-context.h"
64-
#include "internal.h"
64+
#include "internal-target.h"
6565
#include "perf.h"
6666
#include "tcg/insn-start-words.h"
6767

accel/tcg/translator.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "exec/translator.h"
1515
#include "exec/plugin-gen.h"
1616
#include "tcg/tcg-op-common.h"
17-
#include "internal.h"
17+
#include "internal-target.h"
1818

1919
static void set_can_do_io(DisasContextBase *db, bool val)
2020
{

accel/tcg/user-exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "qemu/atomic128.h"
3030
#include "trace/trace-root.h"
3131
#include "tcg/tcg-ldst.h"
32-
#include "internal.h"
32+
#include "internal-target.h"
3333

3434
__thread uintptr_t helper_retaddr;
3535

0 commit comments

Comments
 (0)