]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/mac_oldworld.c
hw/ppc/mac.h: Remove MAX_CPUS macro
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 17 Dec 2021 16:57:12 +0000 (17:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:12 +0000 (17:57 +0100)
commit83234b8289e64fc359a5bf02d886a333d65b8f8c
treed8c4bc4155c29bef77d8f79ffcb1e6d25b5eef63
parent2307ddc15b4f966f9de2066fe399bc723a452e28
hw/ppc/mac.h: Remove MAX_CPUS macro

The mac.h header defines a MAX_CPUS macro. This is confusingly named,
because it suggests it's a generic setting, but in fact it's used
by only the g3beige and mac99 machines. It's also using a single
macro for two values which aren't inherently the same -- if one
of these two machines was updated to support SMP configurations
then it would want a different max_cpus value to the other.

Since the macro is used in only two places, just expand it out
and get rid of it. If hypothetical future work to support SMP
in these boards needs a compile-time-known limit on the number
of CPUs, we can give it a suitable name at that point.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20211105184216.120972-1-peter.maydell@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/mac.h
hw/ppc/mac_newworld.c
hw/ppc/mac_oldworld.c