qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/15] Clean some includes and definitions
@ 2012-02-02 21:12 Stefan Weil
  2012-02-02 21:12 ` [Qemu-devel] [PATCH 01/15] Remove macro HOST_LONG_SIZE Stefan Weil
                   ` (14 more replies)
  0 siblings, 15 replies; 23+ messages in thread
From: Stefan Weil @ 2012-02-02 21:12 UTC (permalink / raw)
  To: qemu-devel

Hi,

I tried to move the definition of HOST_LONG_BITS from configure
to qemu-common.h. While doing this, I noticed that the different
QEMU targets use includes in non-uniform ways.

So the simple goal resulted in quite a lot of patches.

Patch 1 simply removes a derived macro. This patch is independent of
the others.

The next patches try to implement a more uniform include scheme
for the TCG targets than today:

* cpu.h always starts with config.h and qemu-common.h.

* config.h is not needed before cpu.h

* qemu-common.h is not needed after cpu.h.

* Standard includes are not needed because they are already in qemu-common.h

This also avoids potential errors when qemu-common.h is included without
a preceding config.h. Future code changes should be easier as soon as all
targets use a uniform include scheme.

The last patch finally achieves my initial goal.

Regards,

Stefan Weil


[PATCH 01/15] Remove macro HOST_LONG_SIZE
[PATCH 02/15] target-alpha: Clean includes
[PATCH 03/15] target-arm: Clean includes
[PATCH 04/15] target-cris: Clean includes
[PATCH 05/15] target-i386: Clean includes
[PATCH 06/15] target-lm32: Clean includes
[PATCH 07/15] target-m68k: Clean includes
[PATCH 08/15] target-microblaze: Clean includes
[PATCH 09/15] target-mips: Clean includes
[PATCH 10/15] target-ppc: Clean includes
[PATCH 11/15] target-s390x: Clean includes
[PATCH 12/15] target-sh4: Clean includes
[PATCH 13/15] target-unicore32: Clean includes
[PATCH 14/15] target-xtensa: Clean includes
[PATCH 15/15] Move definition of HOST_LONG_BITS to qemu-common.h

^ permalink raw reply	[flat|nested] 23+ messages in thread
* [Qemu-devel] [PULL] Patch queue
@ 2012-02-28 21:47 Stefan Weil
  2012-02-28 21:47 ` [Qemu-devel] [PATCH 06/15] target-lm32: Clean includes Stefan Weil
  0 siblings, 1 reply; 23+ messages in thread
From: Stefan Weil @ 2012-02-28 21:47 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel

Hi,

please pull these patches from January.

Thanks,

Stefan Weil


The following changes since commit b55c952aea6de024bf1a06357b49367fba045443:

  Merge remote-tracking branch 'aneesh/for-upstream' into staging (2012-02-27 11:19:27 -0600)

are available in the git repository at:


  git://qemu.weilnetz.de/qemu.git upstream

for you to fetch changes up to c0fd260e9da7e6e60ea6bf1b0198a804f147073f:

  Move definition of HOST_LONG_BITS to qemu-common.h (2012-02-28 22:33:43 +0100)

----------------------------------------------------------------
Stefan Weil (15):
      Remove macro HOST_LONG_SIZE
      target-alpha: Clean includes
      target-arm: Clean includes
      target-cris: Clean includes
      target-i386: Clean includes
      target-lm32: Clean includes
      target-m68k: Clean includes
      target-microblaze: Clean includes
      target-mips: Clean includes
      target-ppc: Clean includes
      target-s390x: Clean includes
      target-sh4: Clean includes
      target-unicore32: Clean includes
      target-xtensa: Clean includes
      Move definition of HOST_LONG_BITS to qemu-common.h

 configure                     |   12 ------------
 cpu-defs.h                    |    2 --
 qemu-common.h                 |    9 +++++++++
 target-alpha/cpu.h            |    1 +
 target-alpha/translate.c      |    5 -----
 target-arm/helper.c           |    5 -----
 target-cris/cpu.h             |    3 +++
 target-cris/helper.c          |    4 ----
 target-cris/mmu.c             |    5 -----
 target-cris/translate.c       |    7 -------
 target-i386/helper.c          |    6 ------
 target-i386/op_helper.c       |    1 -
 target-lm32/cpu.h             |    1 +
 target-lm32/helper.c          |    5 -----
 target-lm32/translate.c       |    8 --------
 target-m68k/cpu.h             |    1 +
 target-m68k/helper.c          |    5 -----
 target-m68k/translate.c       |    6 ------
 target-microblaze/cpu.h       |    3 +++
 target-microblaze/helper.c    |    5 -----
 target-microblaze/mmu.c       |    4 ----
 target-microblaze/translate.c |    8 --------
 target-mips/translate.c       |    7 -------
 target-ppc/helper.c           |    6 ------
 target-ppc/translate.c        |    6 ------
 target-s390x/cpu.h            |    3 +++
 target-s390x/helper.c         |    5 -----
 target-s390x/translate.c      |    5 -----
 target-sh4/translate.c        |    6 ------
 target-unicore32/cpu.h        |    2 ++
 target-unicore32/helper.c     |    4 ----
 target-xtensa/core-dc232b.c   |    1 -
 target-xtensa/core-fsf.c      |    1 -
 target-xtensa/helper.c        |    1 -
 thunk.h                       |    4 ++--
 35 files changed, 25 insertions(+), 132 deletions(-)

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2012-02-28 21:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 21:12 [Qemu-devel] [PATCH 00/15] Clean some includes and definitions Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 01/15] Remove macro HOST_LONG_SIZE Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 02/15] target-alpha: Clean includes Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 03/15] target-arm: " Stefan Weil
2012-02-02 23:22   ` Peter Maydell
2012-02-02 21:12 ` [Qemu-devel] [PATCH 04/15] target-cris: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 05/15] target-i386: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 06/15] target-lm32: " Stefan Weil
2012-02-04 14:50   ` Michael Walle
2012-02-02 21:12 ` [Qemu-devel] [PATCH 07/15] target-m68k: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 08/15] target-microblaze: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 09/15] target-mips: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 10/15] target-ppc: " Stefan Weil
2012-02-02 21:26   ` Alexander Graf
2012-02-02 22:46     ` Stefan Weil
2012-02-02 22:51       ` Alexander Graf
2012-02-02 21:12 ` [Qemu-devel] [PATCH 11/15] target-s390x: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 12/15] target-sh4: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 13/15] target-unicore32: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 14/15] target-xtensa: " Stefan Weil
2012-02-02 21:30   ` Max Filippov
2012-02-02 21:12 ` [Qemu-devel] [PATCH 15/15] Move definition of HOST_LONG_BITS to qemu-common.h Stefan Weil
  -- strict thread matches above, loose matches on Subject: below --
2012-02-28 21:47 [Qemu-devel] [PULL] Patch queue Stefan Weil
2012-02-28 21:47 ` [Qemu-devel] [PATCH 06/15] target-lm32: Clean includes Stefan Weil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).