From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0PMZ-0006eL-Jz for qemu-devel@nongnu.org; Tue, 18 Apr 2017 05:23:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0PMW-0002yF-HW for qemu-devel@nongnu.org; Tue, 18 Apr 2017 05:23:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50126) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0PMW-0002wp-BV for qemu-devel@nongnu.org; Tue, 18 Apr 2017 05:23:52 -0400 Message-ID: <1492507428.27392.0.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 18 Apr 2017 11:23:48 +0200 In-Reply-To: References: <20170404102315.24923-1-kraxel@redhat.com> <20170404102315.24923-4-kraxel@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 03/10] vga: add vga_scanline_invalidated helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org, Alex =?ISO-8859-1?Q?Benn=E9e?= , Paolo Bonzini , Mark Cave-Ayland > > +static bool vga_scanline_invalidated(VGACommonState *s, int y) > > +{ > > + if (y >=3D VGA_MAX_HEIGHT) { > > + return false; > > + } > > + return s->invalidated_y_table[y >> 5] |=3D 1 << (y & 0x1f); > > +} > The return stmt doesn't match what you're replacing. Are you really inte= nding=20 > to modify invalidated_y_table here? No. Really stupid cut&paste bug. Fixed. thanks, Gerd