Message ID | 20210730105947.28215-1-peter.maydell@linaro.org |
---|---|
Headers | show |
Series | softmmu: Clean up arch_init.c | expand |
On Fri, 30 Jul 2021 at 11:59, Peter Maydell <peter.maydell@linaro.org> wrote: > > This patchset does some cleanups of arch_init.c. The bit I started > out caring about was getting rid of the TARGET_* ifdef ladder (in > patch 4 we make meson.build define QEMU_ARCH in config-target.h > instead) -- this kind of ifdef ladder is nasty because it's always > another place in the code that needs updating when we add or remove a > target. I think this was one of the last remaining "every single > arch touches this" ones. The rest of the patchset is stuff I noticed > when I started looking at what else arch_init.c was doing. > > The graphic_width/height/depth target-specific defaults that > arch_init.c does also look like they could use cleanup. My guess is > that we should instead have a per-machine default graphics > width/height/depth. But that's a separate thing and more work than I > felt like doing this morning :-) I'll take this via target-arm.next unless anybody objects. thanks -- PMM