summaryrefslogtreecommitdiffstats
path: root/hw/lm32
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-02-07 17:19:47 +0100
committerEduardo Habkost2020-02-28 20:57:19 +0100
commitea0ac7f6f8f313f810858dd1ba4e7fae602e01bd (patch)
treec822cde3a88cdef15c4fc32d1de8f8546d0debdd /hw/lm32
parenthw: Do not initialize MachineClass::is_default to 0 (diff)
downloadqemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.tar.gz
qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.tar.xz
qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.zip
hw: Make MachineClass::is_default a boolean type
There's no good reason for it to be type int, change it to bool. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200207161948.15972-3-philmd@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/lm32')
-rw-r--r--hw/lm32/lm32_boards.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lm32/lm32_boards.c b/hw/lm32/lm32_boards.c
index 747a175b55..b842f74344 100644
--- a/hw/lm32/lm32_boards.c
+++ b/hw/lm32/lm32_boards.c
@@ -295,7 +295,7 @@ static void lm32_evr_class_init(ObjectClass *oc, void *data)
mc->desc = "LatticeMico32 EVR32 eval system";
mc->init = lm32_evr_init;
- mc->is_default = 1;
+ mc->is_default = true;
mc->default_cpu_type = LM32_CPU_TYPE_NAME("lm32-full");
mc->default_ram_size = 64 * MiB;
mc->default_ram_id = "lm32_evr.sdram";