Skip to content

Commit 2e5b09f

Browse files
author
Markus Armbruster
committed
hw/core: Move cpu.c, cpu.h from qom/ to hw/core/
Suggested-by: Daniel P. Berrangé <[email protected]> Signed-off-by: Markus Armbruster <[email protected]> Message-Id: <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Philippe Mathieu-Daudé <[email protected]> [Rebased onto merge commit 95a9457; missed instances of qom/cpu.h in comments replaced]
1 parent 17dc579 commit 2e5b09f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+60
-62
lines changed

MAINTAINERS

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,17 +1274,17 @@ Machine core
12741274
M: Eduardo Habkost <[email protected]>
12751275
M: Marcel Apfelbaum <[email protected]>
12761276
S: Supported
1277+
F: hw/core/cpu.c
12771278
F: hw/core/machine-qmp-cmds.c
12781279
F: hw/core/machine.c
12791280
F: hw/core/null-machine.c
12801281
F: hw/core/numa.c
12811282
F: hw/cpu/cluster.c
12821283
F: qapi/machine.json
12831284
F: qapi/machine-target.json
1284-
F: qom/cpu.c
12851285
F: include/hw/boards.h
1286+
F: include/hw/core/cpu.h
12861287
F: include/hw/cpu/cluster.h
1287-
F: include/qom/cpu.h
12881288
F: include/sysemu/numa.h
12891289
T: git https://github.com/ehabkost/qemu.git machine-next
12901290

@@ -2048,12 +2048,10 @@ F: hw/core/qdev*
20482048
F: include/hw/qdev*
20492049
F: include/monitor/qdev.h
20502050
F: include/qom/
2051-
X: include/qom/cpu.h
20522051
F: qapi/qom.json
20532052
F: qapi/qdev.json
20542053
F: qdev-monitor.c
20552054
F: qom/
2056-
X: qom/cpu.c
20572055
F: tests/check-qom-interface.c
20582056
F: tests/check-qom-proplist.c
20592057
F: tests/test-qdev-global-props.c

accel/tcg/user-exec-stub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "qemu/osdep.h"
2-
#include "qom/cpu.h"
2+
#include "hw/core/cpu.h"
33
#include "sysemu/replay.h"
44
#include "sysemu/sysemu.h"
55

cpus-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "qemu/osdep.h"
2121
#include "qemu/main-loop.h"
2222
#include "exec/cpu-common.h"
23-
#include "qom/cpu.h"
23+
#include "hw/core/cpu.h"
2424
#include "sysemu/cpus.h"
2525

2626
static QemuMutex qemu_cpu_list_lock;

exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ void cpu_exec_unrealizefn(CPUState *cpu)
937937
Property cpu_common_props[] = {
938938
#ifndef CONFIG_USER_ONLY
939939
/* Create a memory property for softmmu CPU object,
940-
* so users can wire up its memory. (This can't go in qom/cpu.c
940+
* so users can wire up its memory. (This can't go in hw/core/cpu.c
941941
* because that file is compiled only once for both user-mode
942942
* and system builds.) The default if no link is set up is to use
943943
* the system address space.

hw/acpi/cpu_hotplug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "qemu/osdep.h"
1313
#include "hw/acpi/cpu_hotplug.h"
1414
#include "qapi/error.h"
15-
#include "qom/cpu.h"
15+
#include "hw/core/cpu.h"
1616
#include "hw/i386/pc.h"
1717
#include "qemu/error-report.h"
1818

hw/acpi/ich9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "hw/pci/pci.h"
3232
#include "migration/vmstate.h"
3333
#include "qemu/timer.h"
34-
#include "qom/cpu.h"
34+
#include "hw/core/cpu.h"
3535
#include "sysemu/reset.h"
3636
#include "sysemu/runstate.h"
3737
#include "hw/acpi/acpi.h"

hw/acpi/piix4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#include "hw/xen/xen.h"
4545
#include "migration/qemu-file-types.h"
4646
#include "migration/vmstate.h"
47-
#include "qom/cpu.h"
47+
#include "hw/core/cpu.h"
4848
#include "trace.h"
4949

5050
#define GPE_BASE 0xafe0

hw/arm/smmu-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "exec/address-spaces.h"
2121
#include "trace.h"
2222
#include "exec/target_page.h"
23-
#include "qom/cpu.h"
23+
#include "hw/core/cpu.h"
2424
#include "hw/qdev-properties.h"
2525
#include "qapi/error.h"
2626
#include "qemu/jhash.h"

hw/arm/virt-acpi-build.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "qapi/error.h"
3131
#include "qemu/bitmap.h"
3232
#include "trace.h"
33-
#include "qom/cpu.h"
33+
#include "hw/core/cpu.h"
3434
#include "target/arm/cpu.h"
3535
#include "hw/acpi/acpi-defs.h"
3636
#include "hw/acpi/acpi.h"

hw/core/Makefile.objs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ common-obj-y += irq.o
88
common-obj-y += hotplug.o
99
common-obj-$(CONFIG_SOFTMMU) += nmi.o
1010
common-obj-$(CONFIG_SOFTMMU) += vm-change-state-handler.o
11+
common-obj-y += cpu.o
1112

1213
common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
1314
common-obj-$(CONFIG_XILINX_AXI) += stream.o

0 commit comments

Comments
 (0)