Skip to content

Commit

Permalink
move targphys.h and hw/poison.h inclusion to cpu-common.h
Browse files Browse the repository at this point in the history
With more files from outside the hw/ directory being placed into
libhw, avoid the need to include hw/hw.h for the sake of targ_phys_addr_t.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
bonzini authored and aurel32 committed Apr 9, 2010
1 parent fbe3288 commit 37b76cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions cpu-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
#define WORDS_ALIGNED
#endif

#ifdef TARGET_PHYS_ADDR_BITS
#include "targphys.h"
#endif

#ifndef NEED_CPU_H
#include "poison.h"
#endif

#include "bswap.h"
#include "qemu-queue.h"

Expand Down
2 changes: 0 additions & 2 deletions hw/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "qemu-common.h"

#if defined(TARGET_PHYS_ADDR_BITS) && !defined(NEED_CPU_H)
#include "targphys.h"
#include "poison.h"
#include "cpu-common.h"
#endif

Expand Down
File renamed without changes.

0 comments on commit 37b76cf

Please sign in to comment.