qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw: Do not initialize MachineClass::is_default to 0

The MachineClass is already zeroed on creation.

Note: The code setting is_default=0 in hw/i386/pc_piix.c is
different (related to compat options). When adding a
new versioned machine, we want it to be the new default,
so we have to mark the previous one as not default.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200207161948.15972-2-philmd@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>

authored by

Philippe Mathieu-Daudé and committed by
Eduardo Habkost
abcbc4ee 64bc77eb

-5
-1
hw/lm32/lm32_boards.c
··· 313 313 314 314 mc->desc = "lm32 platform for uClinux and u-boot by Theobroma Systems"; 315 315 mc->init = lm32_uclinux_init; 316 - mc->is_default = 0; 317 316 mc->default_cpu_type = LM32_CPU_TYPE_NAME("lm32-full"); 318 317 mc->default_ram_size = 64 * MiB; 319 318 mc->default_ram_id = "lm32_uclinux.sdram";
-1
hw/lm32/milkymist.c
··· 219 219 { 220 220 mc->desc = "Milkymist One"; 221 221 mc->init = milkymist_init; 222 - mc->is_default = 0; 223 222 mc->default_cpu_type = LM32_CPU_TYPE_NAME("lm32-full"); 224 223 mc->default_ram_size = 128 * MiB; 225 224 mc->default_ram_id = "milkymist.sdram";
-1
hw/m68k/q800.c
··· 438 438 mc->init = q800_init; 439 439 mc->default_cpu_type = M68K_CPU_TYPE_NAME("m68040"); 440 440 mc->max_cpus = 1; 441 - mc->is_default = 0; 442 441 mc->block_default_type = IF_SCSI; 443 442 mc->default_ram_id = "m68k_mac.ram"; 444 443 }
-1
hw/microblaze/petalogix_ml605_mmu.c
··· 216 216 { 217 217 mc->desc = "PetaLogix linux refdesign for xilinx ml605 little endian"; 218 218 mc->init = petalogix_ml605_init; 219 - mc->is_default = 0; 220 219 } 221 220 222 221 DEFINE_MACHINE("petalogix-ml605", petalogix_ml605_machine_init)
-1
hw/tricore/tricore_testboard.c
··· 105 105 { 106 106 mc->desc = "a minimal TriCore board"; 107 107 mc->init = tricoreboard_init; 108 - mc->is_default = 0; 109 108 mc->default_cpu_type = TRICORE_CPU_TYPE_NAME("tc1796"); 110 109 } 111 110