]> git.proxmox.com Git - mirror_qemu.git/commit
hw/core/machine: Constify MachineClass::valid_cpu_types[]
authorGavin Shan <gshan@redhat.com>
Fri, 17 Nov 2023 07:17:01 +0000 (08:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Nov 2023 15:30:59 +0000 (15:30 +0000)
commit790a4428f2e2a32944f3cefc4753ab3c71611453
tree696366fbdfa34dad32d4afec67577351347d9c27
parent3efd8495735c69b863476e9003e624877382a72d
hw/core/machine: Constify MachineClass::valid_cpu_types[]

Constify MachineClass::valid_cpu_types[i], as suggested by Richard
Henderson.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231117071704.35040-2-philmd@linaro.org
[PMD: Constify HPPA machines,
      restrict valid_cpu_types to machine_class_init() handlers]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/hppa/machine.c
hw/m68k/q800.c
include/hw/boards.h