Received: from eggs.gnu.org ([209.51.188.92]:60752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGyZM-0005sc-4l for qemu-devel@nongnu.org; Thu, 18 Apr 2019 00:22:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGyZJ-0002WL-Su for qemu-devel@nongnu.org; Thu, 18 Apr 2019 00:22:39 -0400 References: <20190417220147.67648-1-stephen.checkoway@oberlin.edu> <20190417220147.67648-4-stephen.checkoway@oberlin.edu> From: Thomas Huth Message-ID: Date: Thu, 18 Apr 2019 06:22:08 +0200 MIME-Version: 1.0 In-Reply-To: <20190417220147.67648-4-stephen.checkoway@oberlin.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 03/10] block/pflash_cfi02: Fix command address comparison List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stephen Checkoway , QEMU Developers , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Kevin Wolf , Max Reitz , "open list:Block layer core" , Markus Armbruster , Laszlo Ersek , Laurent Vivier , Paolo Bonzini On 18/04/2019 00.01, Stephen Checkoway wrote: > Most AMD commands only examine 11 bits of the address. This masks the > addresses used in the comparison to 11 bits. The exceptions are word or > sector addresses which use offset directly rather than the shifted > offset, boff. > > Signed-off-by: Stephen Checkoway > --- > hw/block/pflash_cfi02.c | 8 +++++++- > tests/pflash-cfi02-test.c | 12 ++++++++++-- > 2 files changed, 17 insertions(+), 3 deletions(-) Acked-by: Thomas Huth