Skip to content

Commit 6a0acff

Browse files
author
Markus Armbruster
committed
Clean up inclusion of exec/cpu-common.h
migration/qemu-file.h neglects to include it even though it needs ram_addr_t. Fix that. Drop a few superfluous inclusions elsewhere. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]>
1 parent 64552b6 commit 6a0acff

16 files changed

+1
-15
lines changed

accel/stubs/tcg-stub.c

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "qemu-common.h"
1515
#include "cpu.h"
1616
#include "tcg/tcg.h"
17-
#include "exec/cpu-common.h"
1817
#include "exec/exec-all.h"
1918

2019
void tb_flush(CPUState *cpu)

balloon.c

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#include "qemu/osdep.h"
2828
#include "qemu/atomic.h"
29-
#include "exec/cpu-common.h"
3029
#include "sysemu/kvm.h"
3130
#include "sysemu/balloon.h"
3231
#include "trace-root.h"

hw/smbios/smbios.c

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "hw/firmware/smbios.h"
2929
#include "hw/loader.h"
3030
#include "hw/boards.h"
31-
#include "exec/cpu-common.h"
3231
#include "smbios_build.h"
3332

3433
/* legacy structures and constants for <= 2.0 machines */

include/hw/hw.h

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#error Cannot include hw/hw.h from user emulation
77
#endif
88

9-
#include "exec/cpu-common.h"
109
#include "qom/object.h"
1110
#include "exec/memory.h"
1211
#include "migration/vmstate.h"

include/hw/ppc/ppc4xx.h

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#define PPC4XX_H
2727

2828
#include "hw/ppc/ppc.h"
29-
#include "exec/cpu-common.h"
3029
#include "exec/memory.h"
3130

3231
/* PowerPC 4xx core initialization */

include/migration/misc.h

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef MIGRATION_MISC_H
1515
#define MIGRATION_MISC_H
1616

17-
#include "exec/cpu-common.h"
1817
#include "qemu/notify.h"
1918
#include "qapi/qapi-types-net.h"
2019

include/sysemu/kvm_int.h

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#ifndef QEMU_KVM_INT_H
1010
#define QEMU_KVM_INT_H
1111

12-
#include "exec/cpu-common.h"
1312
#include "exec/memory.h"
1413
#include "sysemu/sysemu.h"
1514
#include "sysemu/accel.h"

include/sysemu/memory_mapping.h

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define MEMORY_MAPPING_H
1616

1717
#include "qemu/queue.h"
18-
#include "exec/cpu-common.h"
1918
#include "exec/cpu-defs.h"
2019
#include "exec/memory.h"
2120

migration/migration.h

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "qapi/qapi-types-migration.h"
1818
#include "qemu/thread.h"
19-
#include "exec/cpu-common.h"
2019
#include "qemu/coroutine_int.h"
2120
#include "hw/qdev.h"
2221
#include "io/channel.h"

migration/qemu-file-channel.c

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include "qemu/osdep.h"
2626
#include "qemu-file-channel.h"
27-
#include "exec/cpu-common.h"
2827
#include "qemu-file.h"
2928
#include "io/channel-socket.h"
3029
#include "qemu/iov.h"

migration/qemu-file.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define MIGRATION_QEMU_FILE_H
2727

2828
#include <zlib.h>
29+
#include "exec/cpu-common.h"
2930

3031
/* Read a chunk of data from a file at the given position. The pos argument
3132
* can be ignored if the file is only be used for streaming. The number of

migration/vmstate-types.c

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212

1313
#include "qemu/osdep.h"
14-
#include "exec/cpu-common.h"
1514
#include "qemu-file.h"
1615
#include "migration.h"
1716
#include "migration/vmstate.h"

qom/cpu.c

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "qemu/notify.h"
2626
#include "qemu/log.h"
2727
#include "exec/log.h"
28-
#include "exec/cpu-common.h"
2928
#include "qemu/error-report.h"
3029
#include "qemu/qemu-print.h"
3130
#include "sysemu/sysemu.h"

tcg/optimize.c

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525

2626
#include "qemu/osdep.h"
27-
#include "exec/cpu-common.h"
2827
#include "tcg-op.h"
2928

3029
#define CASE_OP_32_64(x) \

tcg/tcg-common.c

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424

2525
#include "qemu/osdep.h"
26-
#include "exec/cpu-common.h"
2726
#include "tcg/tcg.h"
2827

2928
#if defined(CONFIG_TCG_INTERPRETER)

tcg/tcg.c

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#define NO_CPU_IO_DEFS
4343
#include "cpu.h"
4444

45-
#include "exec/cpu-common.h"
4645
#include "exec/exec-all.h"
4746

4847
#if !defined(CONFIG_USER_ONLY)

0 commit comments

Comments
 (0)