From 650d103d3ea959212f826acb9d3fe80cf30e347b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 12 Aug 2019 07:23:48 +0200 Subject: Include hw/hw.h exactly where needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In my "build everything" tree, changing hw/hw.h triggers a recompile of some 2600 out of 6600 objects (not counting tests and objects that don't depend on qemu/osdep.h). The previous commits have left only the declaration of hw_error() in hw/hw.h. This permits dropping most of its inclusions. Touching it now recompiles less than 200 objects. Signed-off-by: Markus Armbruster Reviewed-by: Alistair Francis Message-Id: <20190812052359.30071-19-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- hw/sh4/r2d.c | 1 - hw/sh4/sh7750.c | 1 - hw/sh4/sh7750_regnames.c | 1 - hw/sh4/shix.c | 1 - 4 files changed, 4 deletions(-) (limited to 'hw/sh4') diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 9838ea3..571e594 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -28,7 +28,6 @@ #include "qapi/error.h" #include "cpu.h" #include "hw/sysbus.h" -#include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/reset.h" #include "sysemu/sysemu.h" diff --git a/hw/sh4/sh7750.c b/hw/sh4/sh7750.c index b35d072..d660714 100644 --- a/hw/sh4/sh7750.c +++ b/hw/sh4/sh7750.c @@ -24,7 +24,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/sh4/sh.h" #include "sysemu/sysemu.h" diff --git a/hw/sh4/sh7750_regnames.c b/hw/sh4/sh7750_regnames.c index 34b4f99..0630fe3 100644 --- a/hw/sh4/sh7750_regnames.c +++ b/hw/sh4/sh7750_regnames.c @@ -1,5 +1,4 @@ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/sh4/sh.h" #include "sh7750_regs.h" #include "sh7750_regnames.h" diff --git a/hw/sh4/shix.c b/hw/sh4/shix.c index 6a1c723..2fc2915 100644 --- a/hw/sh4/shix.c +++ b/hw/sh4/shix.c @@ -30,7 +30,6 @@ #include "qemu/osdep.h" #include "qapi/error.h" #include "cpu.h" -#include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/sysemu.h" #include "sysemu/qtest.h" -- cgit v1.1