From 9d4c9946ee1dd5887e6663e4ead1abce770b6ba6 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 26 Jan 2016 18:17:20 +0000 Subject: [PATCH] sh4: Clean up includes Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by: Peter Maydell Message-id: 1453832250-766-28-git-send-email-peter.maydell@linaro.org --- disas/sh4.c | 2 +- hw/sh4/r2d.c | 1 + hw/sh4/sh7750.c | 2 +- hw/sh4/sh7750_regnames.c | 1 + hw/sh4/sh_pci.c | 1 + hw/sh4/shix.c | 1 + target-sh4/cpu.c | 1 + target-sh4/gdbstub.c | 2 +- target-sh4/helper.c | 6 +----- target-sh4/monitor.c | 1 + target-sh4/op_helper.c | 2 +- target-sh4/translate.c | 1 + 12 files changed, 12 insertions(+), 9 deletions(-) diff --git a/disas/sh4.c b/disas/sh4.c index 020f5ebb7b..8b0415dfe9 100644 --- a/disas/sh4.c +++ b/disas/sh4.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see . */ -#include +#include "qemu/osdep.h" #include "disas/bfd.h" #define DEFINE_TABLE diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index c1ff9a0cff..7d9a1cd822 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -23,6 +23,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/sh4/sh.h" diff --git a/hw/sh4/sh7750.c b/hw/sh4/sh7750.c index 5dda5de34e..a1ea760f68 100644 --- a/hw/sh4/sh7750.c +++ b/hw/sh4/sh7750.c @@ -22,7 +22,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include +#include "qemu/osdep.h" #include "hw/hw.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 52ac1cc781..34b4f99b86 100644 --- a/hw/sh4/sh7750_regnames.c +++ b/hw/sh4/sh7750_regnames.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sh7750_regs.h" diff --git a/hw/sh4/sh_pci.c b/hw/sh4/sh_pci.c index 4509053e1f..e820a32307 100644 --- a/hw/sh4/sh_pci.c +++ b/hw/sh4/sh_pci.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/sh4/sh.h" #include "hw/pci/pci.h" diff --git a/hw/sh4/shix.c b/hw/sh4/shix.c index d508be9588..386a4854ea 100644 --- a/hw/sh4/shix.c +++ b/hw/sh4/shix.c @@ -27,6 +27,7 @@ More information in target-sh4/README.sh4 */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/sysemu.h" diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c index d7e2fbd0ed..8621d70d4d 100644 --- a/target-sh4/cpu.c +++ b/target-sh4/cpu.c @@ -19,6 +19,7 @@ * */ +#include "qemu/osdep.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h" diff --git a/target-sh4/gdbstub.c b/target-sh4/gdbstub.c index a365a27aad..1b59ea8c73 100644 --- a/target-sh4/gdbstub.c +++ b/target-sh4/gdbstub.c @@ -17,7 +17,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ -#include "config.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "exec/gdbstub.h" diff --git a/target-sh4/helper.c b/target-sh4/helper.c index eaececd894..9d8b61cce6 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -16,11 +16,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include "cpu.h" diff --git a/target-sh4/monitor.c b/target-sh4/monitor.c index a06f0d46d8..426e5d4914 100644 --- a/target-sh4/monitor.c +++ b/target-sh4/monitor.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "cpu.h" #include "monitor/monitor.h" #include "monitor/hmp-target.h" diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c index a3121180dc..368e687d68 100644 --- a/target-sh4/op_helper.c +++ b/target-sh4/op_helper.c @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ -#include +#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 7bc621649a..9de5659cf7 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -19,6 +19,7 @@ #define DEBUG_DISAS +#include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "tcg-op.h"