|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH for-9.0 1/4] vga: merge conditionals on shift control register |
Date: | Tue, 2 Apr 2024 13:40:59 +0200 |
User-agent: | Mozilla Thunderbird |
On 2/4/24 13:34, Paolo Bonzini wrote:
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. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- hw/display/vga.c | 89 +++++++++++++++++++++++------------------------- 1 file changed, 42 insertions(+), 47 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |