Received: from eggs.gnu.org ([2001:4830:134:3::10]:55881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftTIo-00067A-SR for qemu-devel@nongnu.org; Sat, 25 Aug 2018 03:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftTIj-000141-Tr for qemu-devel@nongnu.org; Sat, 25 Aug 2018 03:48:10 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftTIj-00012T-KI for qemu-devel@nongnu.org; Sat, 25 Aug 2018 03:48:05 -0400 Received: by mail-wm0-f51.google.com with SMTP id n11-v6so3601475wmc.2 for ; Sat, 25 Aug 2018 00:48:04 -0700 (PDT) References: <1534870966-9287-1-git-send-email-pbonzini@redhat.com> <1534870966-9287-4-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: Date: Sat, 25 Aug 2018 09:48:02 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 03/74] es1370: simplify MemoryRegionOps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 24/08/2018 17:04, Peter Maydell wrote: > because these values aren't contiguous: > > #define ES1370_REG_DAC1_FRAMEADR 0xc30 > #define ES1370_REG_DAC2_FRAMEADR 0xc38 > #define ES1370_REG_ADC_FRAMEADR 0xd30 > > so you can't calculate the value of 'd' from the addr > this way. > > (Similarly for the SCOUNT registers.) SCOUNT is actually consecutive. I've sent a patch for the other two. Paolo