Skip to content

Commit

Permalink
qemu-timer: do not include sysemu/cpus.h from util/qemu-timer.h
Browse files Browse the repository at this point in the history
This dependency is the wrong way, and we will need util/qemu-timer.h from
sysemu/cpus.h in the next patch.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Mar 14, 2017
1 parent 33bef0b commit d2528bd
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions cpu-exec.c
Expand Up @@ -33,6 +33,7 @@
#if defined(TARGET_I386) && !defined(CONFIG_USER_ONLY)
#include "hw/i386/apic.h"
#endif
#include "sysemu/cpus.h"
#include "sysemu/replay.h"

/* -icount align implementation. */
Expand Down
1 change: 1 addition & 0 deletions hw/core/ptimer.c
Expand Up @@ -13,6 +13,7 @@
#include "sysemu/replay.h"
#include "sysemu/qtest.h"
#include "block/aio.h"
#include "sysemu/cpus.h"

#define DELTA_ADJUST 1
#define DELTA_NO_ADJUST -1
Expand Down
1 change: 1 addition & 0 deletions hw/ppc/pnv.c
Expand Up @@ -21,6 +21,7 @@
#include "qapi/error.h"
#include "sysemu/sysemu.h"
#include "sysemu/numa.h"
#include "sysemu/cpus.h"
#include "hw/hw.h"
#include "target/ppc/cpu.h"
#include "qemu/log.h"
Expand Down
1 change: 0 additions & 1 deletion include/qemu/timer.h
Expand Up @@ -4,7 +4,6 @@
#include "qemu-common.h"
#include "qemu/notify.h"
#include "qemu/host-utils.h"
#include "sysemu/cpus.h"

#define NANOSECONDS_PER_SECOND 1000000000LL

Expand Down
2 changes: 2 additions & 0 deletions include/sysemu/cpus.h
@@ -1,6 +1,8 @@
#ifndef QEMU_CPUS_H
#define QEMU_CPUS_H

#include "qemu/timer.h"

/* cpus.c */
bool qemu_in_vcpu_thread(void);
void qemu_init_cpu_loop(void);
Expand Down
1 change: 1 addition & 0 deletions kvm-all.c
Expand Up @@ -29,6 +29,7 @@
#include "hw/s390x/adapter.h"
#include "exec/gdbstub.h"
#include "sysemu/kvm_int.h"
#include "sysemu/cpus.h"
#include "qemu/bswap.h"
#include "exec/memory.h"
#include "exec/ram_addr.h"
Expand Down
1 change: 1 addition & 0 deletions monitor.c
Expand Up @@ -77,6 +77,7 @@
#include "qapi-event.h"
#include "qmp-introspect.h"
#include "sysemu/qtest.h"
#include "sysemu/cpus.h"
#include "qemu/cutils.h"
#include "qapi/qmp/dispatch.h"

Expand Down
1 change: 1 addition & 0 deletions replay/replay.c
Expand Up @@ -16,6 +16,7 @@
#include "replay-internal.h"
#include "qemu/timer.h"
#include "qemu/main-loop.h"
#include "sysemu/cpus.h"
#include "sysemu/sysemu.h"
#include "qemu/error-report.h"

Expand Down
1 change: 1 addition & 0 deletions target/alpha/translate.c
Expand Up @@ -19,6 +19,7 @@

#include "qemu/osdep.h"
#include "cpu.h"
#include "sysemu/cpus.h"
#include "disas/disas.h"
#include "qemu/host-utils.h"
#include "exec/exec-all.h"
Expand Down
1 change: 1 addition & 0 deletions translate-all.c
Expand Up @@ -57,6 +57,7 @@
#include "qemu/timer.h"
#include "qemu/main-loop.h"
#include "exec/log.h"
#include "sysemu/cpus.h"

/* #define DEBUG_TB_INVALIDATE */
/* #define DEBUG_TB_FLUSH */
Expand Down
1 change: 1 addition & 0 deletions util/main-loop.c
Expand Up @@ -28,6 +28,7 @@
#include "qemu/timer.h"
#include "qemu/sockets.h" // struct in_addr needed for libslirp.h
#include "sysemu/qtest.h"
#include "sysemu/cpus.h"
#include "slirp/libslirp.h"
#include "qemu/main-loop.h"
#include "block/aio.h"
Expand Down
1 change: 1 addition & 0 deletions util/qemu-timer.c
Expand Up @@ -27,6 +27,7 @@
#include "qemu/timer.h"
#include "sysemu/replay.h"
#include "sysemu/sysemu.h"
#include "sysemu/cpus.h"

#ifdef CONFIG_POSIX
#include <pthread.h>
Expand Down

0 comments on commit d2528bd

Please sign in to comment.