]> git.proxmox.com Git - qemu.git/commit - hw/mips_r4k.c
create struct for machine initialization arguments
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 15 Oct 2012 20:22:02 +0000 (17:22 -0300)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 20 Oct 2012 07:53:28 +0000 (07:53 +0000)
commit5f072e1f3075bd869e0ace9f2545a85992ac0084
tree669400d97297f7e73bf3f0e4f35985b85b40fbaf
parenta96d8bea8e23473bd5b4b4111ba9187fcb976865
create struct for machine initialization arguments

This should help us to:
- More easily add or remove machine initialization arguments without
  having to change every single machine init function;
- More easily make mechanical changes involving the machine init
  functions in the future;
- Let machine initialization forward the init arguments to other
  functions more easily.

This change was half-mechanical process: first the struct was added with
the local ram_size, boot_device, kernel_*, initrd_*, and cpu_model local
variable initialization to all functions. Then the compiler helped me
locate the local variables that are unused, so they could be removed.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
57 files changed:
hw/alpha_dp264.c
hw/an5206.c
hw/axis_dev88.c
hw/boards.h
hw/collie.c
hw/dummy_m68k.c
hw/exynos4_boards.c
hw/gumstix.c
hw/highbank.c
hw/integratorcp.c
hw/kzm.c
hw/leon3.c
hw/lm32_boards.c
hw/mainstone.c
hw/mcf5208.c
hw/milkymist.c
hw/mips_fulong2e.c
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_mipssim.c
hw/mips_r4k.c
hw/musicpal.c
hw/nseries.c
hw/null-machine.c
hw/omap_sx1.c
hw/openrisc_sim.c
hw/palm.c
hw/pc_piix.c
hw/petalogix_ml605_mmu.c
hw/petalogix_s3adsp1800_mmu.c
hw/ppc/e500plat.c
hw/ppc/mpc8544ds.c
hw/ppc405_boards.c
hw/ppc440_bamboo.c
hw/ppc_newworld.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/puv3.c
hw/r2d.c
hw/realview.c
hw/s390-virtio.c
hw/shix.c
hw/spapr.c
hw/spitz.c
hw/stellaris.c
hw/sun4m.c
hw/sun4u.c
hw/tosa.c
hw/versatilepb.c
hw/vexpress.c
hw/virtex_ml507.c
hw/xen_machine_pv.c
hw/xilinx_zynq.c
hw/xtensa_lx60.c
hw/xtensa_sim.c
hw/z2.c
vl.c