]> git.ipfire.org Git - thirdparty/qemu.git/commit
vga: merge conditionals on shift control register
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Apr 2024 10:24:20 +0000 (12:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Apr 2024 16:08:59 +0000 (18:08 +0200)
commit5c00acebb6fb92ff169b322c9e74d06d8b922232
tree443d2dca7ea8fb098911b4cd7c9f254d0a430f25
parent7fcf7575f3d201fc84ae168017ffdfd6c86257a6
vga: merge conditionals on shift control register

There are two sets of conditionals using the shift control bits: one to
verify the palette and adjust disp_width, one to compute the "v" and
"bits" variables.  Merge them into one, with the extra benefit that
we now have the "bits" value available early and can use it to
compute region_end.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/vga.c