Browse Source

ppc: 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 <peter.maydell@linaro.org>
Message-id: 1453832250-766-6-git-send-email-peter.maydell@linaro.org
pull/36/head
Peter Maydell 11 years ago
parent
commit
0d75590d91
  1. 1
      disas/ppc.c
  2. 1
      hw/char/spapr_vty.c
  3. 1
      hw/intc/xics.c
  4. 1
      hw/intc/xics_kvm.c
  5. 1
      hw/isa/pc87312.c
  6. 1
      hw/misc/macio/cuda.c
  7. 1
      hw/misc/macio/mac_dbdma.c
  8. 1
      hw/misc/macio/macio.c
  9. 1
      hw/net/spapr_llan.c
  10. 1
      hw/nvram/spapr_nvram.c
  11. 1
      hw/pci-bridge/dec.c
  12. 1
      hw/pci-host/grackle.c
  13. 1
      hw/pci-host/prep.c
  14. 1
      hw/pci-host/uninorth.c
  15. 2
      hw/ppc/e500.c
  16. 2
      hw/ppc/e500plat.c
  17. 1
      hw/ppc/mac_newworld.c
  18. 1
      hw/ppc/mac_oldworld.c
  19. 1
      hw/ppc/mpc8544_guts.c
  20. 2
      hw/ppc/mpc8544ds.c
  21. 1
      hw/ppc/ppc.c
  22. 1
      hw/ppc/ppc405_boards.c
  23. 1
      hw/ppc/ppc405_uc.c
  24. 2
      hw/ppc/ppc440_bamboo.c
  25. 1
      hw/ppc/ppc4xx_devs.c
  26. 1
      hw/ppc/ppc4xx_pci.c
  27. 1
      hw/ppc/ppc_booke.c
  28. 1
      hw/ppc/ppce500_spin.c
  29. 1
      hw/ppc/prep.c
  30. 1
      hw/ppc/spapr.c
  31. 1
      hw/ppc/spapr_drc.c
  32. 1
      hw/ppc/spapr_events.c
  33. 1
      hw/ppc/spapr_hcall.c
  34. 1
      hw/ppc/spapr_iommu.c
  35. 1
      hw/ppc/spapr_pci.c
  36. 1
      hw/ppc/spapr_pci_vfio.c
  37. 1
      hw/ppc/spapr_rng.c
  38. 1
      hw/ppc/spapr_rtas.c
  39. 1
      hw/ppc/spapr_rtc.c
  40. 1
      hw/ppc/spapr_vio.c
  41. 1
      hw/ppc/virtex_ml507.c
  42. 1
      hw/scsi/spapr_vscsi.c
  43. 1
      target-ppc/arch_dump.c
  44. 1
      target-ppc/cpu-models.c
  45. 1
      target-ppc/dfp_helper.c
  46. 1
      target-ppc/excp_helper.c
  47. 1
      target-ppc/fpu_helper.c
  48. 2
      target-ppc/gdbstub.c
  49. 1
      target-ppc/int_helper.c
  50. 1
      target-ppc/kvm-stub.c
  51. 2
      target-ppc/kvm.c
  52. 1
      target-ppc/machine.c
  53. 1
      target-ppc/mem_helper.c
  54. 3
      target-ppc/mfrom_table_gen.c
  55. 1
      target-ppc/misc_helper.c
  56. 1
      target-ppc/mmu-hash32.c
  57. 1
      target-ppc/mmu-hash64.c
  58. 1
      target-ppc/mmu_helper.c
  59. 1
      target-ppc/monitor.c
  60. 1
      target-ppc/timebase_helper.c
  61. 1
      target-ppc/translate.c
  62. 4
      target-ppc/translate_init.c
  63. 1
      target-ppc/user_only_helper.c

1
disas/ppc.c

@ -18,6 +18,7 @@ the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this file; see the file COPYING. If not,
see <http://www.gnu.org/licenses/>. */
#include "qemu/osdep.h"
#include "disas/bfd.h"
#define BFD_DEFAULT_TARGET_SIZE 64

1
hw/char/spapr_vty.c

@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/qdev.h"
#include "sysemu/char.h"
#include "hw/ppc/spapr.h"

1
hw/intc/xics.c

@ -25,6 +25,7 @@
*
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "trace.h"
#include "qemu/timer.h"

1
hw/intc/xics_kvm.c

@ -25,6 +25,7 @@
*
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "trace.h"
#include "hw/ppc/spapr.h"

1
hw/isa/pc87312.c

@ -23,6 +23,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/isa/pc87312.h"
#include "qemu/error-report.h"
#include "sysemu/block-backend.h"

1
hw/misc/macio/cuda.c

@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ppc/mac.h"
#include "hw/input/adb.h"

1
hw/misc/macio/mac_dbdma.c

@ -36,6 +36,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/isa/isa.h"
#include "hw/ppc/mac_dbdma.h"

1
hw/misc/macio/macio.c

@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ppc/mac.h"
#include "hw/pci/pci.h"

1
hw/net/spapr_llan.c

@ -24,6 +24,7 @@
* THE SOFTWARE.
*
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "net/net.h"
#include "hw/qdev.h"

1
hw/nvram/spapr_nvram.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include <libfdt.h>
#include "sysemu/block-backend.h"

1
hw/pci-bridge/dec.c

@ -23,6 +23,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "dec.h"
#include "hw/sysbus.h"
#include "hw/pci/pci.h"

1
hw/pci-host/grackle.c

@ -23,6 +23,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/pci/pci_host.h"
#include "hw/ppc/mac.h"
#include "hw/pci/pci.h"

1
hw/pci-host/prep.c

@ -23,6 +23,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"
#include "hw/pci/pci_bus.h"

1
hw/pci-host/uninorth.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/hw.h"
#include "hw/ppc/mac.h"
#include "hw/pci/pci.h"

2
hw/ppc/e500.c

@ -14,7 +14,7 @@
* (at your option) any later version.
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "e500.h"
#include "e500-ccsr.h"

2
hw/ppc/e500plat.c

@ -9,7 +9,7 @@
* (at your option) any later version.
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "e500.h"
#include "hw/boards.h"

1
hw/ppc/mac_newworld.c

@ -46,6 +46,7 @@
* 0001:05:0c.0 IDE interface [0101]: Broadcom K2 SATA [1166:0240]
*
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/mac.h"

1
hw/ppc/mac_oldworld.c

@ -23,6 +23,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ppc/ppc.h"
#include "mac.h"

1
hw/ppc/mpc8544_guts.c

@ -17,6 +17,7 @@
*
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/sysemu.h"
#include "hw/sysbus.h"

2
hw/ppc/mpc8544ds.c

@ -9,7 +9,7 @@
* (at your option) any later version.
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "e500.h"
#include "hw/boards.h"

1
hw/ppc/ppc.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/hw.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/ppc_e500.h"

1
hw/ppc/ppc405_boards.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/hw.h"
#include "hw/ppc/ppc.h"
#include "ppc405.h"

1
hw/ppc/ppc405_uc.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/hw.h"
#include "hw/ppc/ppc.h"
#include "hw/boards.h"

2
hw/ppc/ppc440_bamboo.c

@ -11,7 +11,7 @@
*
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "net/net.h"
#include "hw/hw.h"

1
hw/ppc/ppc4xx_devs.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/hw.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/ppc4xx.h"

1
hw/ppc/ppc4xx_pci.c

@ -19,6 +19,7 @@
/* This file implements emulation of the 32-bit PCI controller found in some
* 4xx SoCs, such as the 440EP. */
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/ppc4xx.h"

1
hw/ppc/ppc_booke.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/hw.h"
#include "hw/ppc/ppc.h"
#include "qemu/timer.h"

1
hw/ppc/ppce500_spin.c

@ -27,6 +27,7 @@
*
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/sysemu.h"
#include "hw/sysbus.h"

1
hw/ppc/prep.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/hw.h"
#include "hw/timer/m48t59.h"
#include "hw/i386/pc.h"

1
hw/ppc/spapr.c

@ -24,6 +24,7 @@
* THE SOFTWARE.
*
*/
#include "qemu/osdep.h"
#include "sysemu/sysemu.h"
#include "sysemu/numa.h"
#include "hw/hw.h"

1
hw/ppc/spapr_drc.c

@ -10,6 +10,7 @@
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "hw/ppc/spapr_drc.h"
#include "qom/object.h"
#include "hw/qdev.h"

1
hw/ppc/spapr_events.c

@ -24,6 +24,7 @@
* THE SOFTWARE.
*
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "sysemu/sysemu.h"
#include "sysemu/char.h"

1
hw/ppc/spapr_hcall.c

@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "sysemu/sysemu.h"
#include "cpu.h"
#include "helper_regs.h"

1
hw/ppc/spapr_iommu.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/kvm.h"
#include "hw/qdev.h"

1
hw/ppc/spapr_pci.c

@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "hw/pci/pci.h"

1
hw/ppc/spapr_pci_vfio.c

@ -17,6 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/ppc/spapr.h"
#include "hw/pci-host/spapr.h"
#include "hw/pci/msix.h"

1
hw/ppc/spapr_rng.c

@ -17,6 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "qemu/error-report.h"
#include "sysemu/sysemu.h"
#include "sysemu/device_tree.h"

1
hw/ppc/spapr_rtas.c

@ -24,6 +24,7 @@
* THE SOFTWARE.
*
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "sysemu/sysemu.h"
#include "sysemu/char.h"

1
hw/ppc/spapr_rtc.c

@ -25,6 +25,7 @@
* THE SOFTWARE.
*
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/timer.h"
#include "sysemu/sysemu.h"

1
hw/ppc/spapr_vio.c

@ -19,6 +19,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"

1
hw/ppc/virtex_ml507.c

@ -22,6 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/hw.h"
#include "hw/char/serial.h"

1
hw/scsi/spapr_vscsi.c

@ -31,6 +31,7 @@
* - Add indirect descriptors support
* - Maybe do autosense (PAPR seems to mandate it, linux doesn't care)
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/scsi/scsi.h"
#include "block/scsi.h"

1
target-ppc/arch_dump.c

@ -12,6 +12,7 @@
*
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "elf.h"
#include "exec/cpu-all.h"

1
target-ppc/cpu-models.c

@ -24,6 +24,7 @@
* inside "#if defined(TODO) ... #endif" statements to make tests easier.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "cpu-models.h"

1
target-ppc/dfp_helper.c

@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"

1
target-ppc/excp_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "exec/cpu_ldst.h"

1
target-ppc/fpu_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"

2
target-ppc/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 <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "exec/gdbstub.h"

1
target-ppc/int_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/host-utils.h"
#include "exec/helper-proto.h"

1
target-ppc/kvm-stub.c

@ -9,6 +9,7 @@
* See the COPYING file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "hw/ppc/openpic.h"

2
target-ppc/kvm.c

@ -14,8 +14,8 @@
*
*/
#include "qemu/osdep.h"
#include <dirent.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/vfs.h>

1
target-ppc/machine.c

@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/boards.h"
#include "sysemu/kvm.h"

1
target-ppc/mem_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/host-utils.h"
#include "exec/helper-proto.h"

3
target-ppc/mfrom_table_gen.c

@ -1,6 +1,5 @@
#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include "qemu/osdep.h"
#include <math.h>
int main (void)

1
target-ppc/misc_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"

1
target-ppc/mmu-hash32.c

@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "sysemu/kvm.h"

1
target-ppc/mmu-hash64.c

@ -17,6 +17,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "sysemu/kvm.h"

1
target-ppc/mmu_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "sysemu/kvm.h"

1
target-ppc/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"

1
target-ppc/timebase_helper.c

@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"

1
target-ppc/translate.c

@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "disas/disas.h"
#include "tcg-op.h"

4
target-ppc/translate_init.c

@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "disas/bfd.h"
#include "exec/gdbstub.h"
#include <sysemu/kvm.h>
@ -8471,8 +8472,6 @@ static void dump_ppc_sprs (CPUPPCState *env)
#endif
/*****************************************************************************/
#include <stdlib.h>
#include <string.h>
/* Opcode types */
enum {
@ -9303,7 +9302,6 @@ static gint ppc_cpu_compare_class_name(gconstpointer a, gconstpointer b)
return -1;
}
#include <ctype.h>
static ObjectClass *ppc_cpu_class_by_name(const char *name);

1
target-ppc/user_only_helper.c

@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
int ppc_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,

Loading…
Cancel
Save