hw/display: Compile vga.c as target-independent code
authorThomas Huth <thuth@redhat.com>
Wed, 12 Apr 2023 16:35:01 +0000 (18:35 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 20 Apr 2023 09:25:32 +0000 (11:25 +0200)
commit9eb7e7e84af5362b125015e80fdaab96b944f6f2
treec279967481ebc4bc940845033a85808bf030ac3a
parent09637edb84556e08dac10a13e7801918e4666d93
hw/display: Compile vga.c as target-independent code

The target checks here are only during the initialization, so they
are not performance critical. We can switch these to runtime checks
to avoid that we have to compile this file multiple times during
the build, and make the code ready for an universal build one day.

Message-Id: <20230412163501.36770-1-thuth@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/display/meson.build
hw/display/vga.c