From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO3Yw-0008Ji-Ac for qemu-devel@nongnu.org; Fri, 05 Apr 2013 06:08:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO3Yp-00042t-SA for qemu-devel@nongnu.org; Fri, 05 Apr 2013 06:08:02 -0400 Received: from mail-qc0-x229.google.com ([2607:f8b0:400d:c01::229]:60999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO3Yp-00042L-OL for qemu-devel@nongnu.org; Fri, 05 Apr 2013 06:07:55 -0400 Received: by mail-qc0-f169.google.com with SMTP id t2so1557736qcq.14 for ; Fri, 05 Apr 2013 03:07:55 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <515EA273.8010703@redhat.com> Date: Fri, 05 Apr 2013 12:07:47 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <7ac19859ba3aed6c19c5f0645ae8f588c9e6a47c.1365151096.git.peter.crosthwaite@xilinx.com> In-Reply-To: <7ac19859ba3aed6c19c5f0645ae8f588c9e6a47c.1365151096.git.peter.crosthwaite@xilinx.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/5] register: Add Memory API glue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: peter.maydell@linaro.org, mst@redhat.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, kraxel@redhat.com, edgar.iglesias@gmail.com Il 05/04/2013 10:43, Peter Crosthwaite ha scritto: > Add memory io handlers that glue the register API to the memory API. > Just translation functions at this stage. Although it does allow for > devices to be created without all-in-one mmio r/w handlers. > > Signed-off-by: Peter Crosthwaite > --- > > include/exec/register.h | 13 +++++++++++++ Please put it in include/hw/. Putting these five in exec/ was a mistake: #include "exec/address-spaces.h" #include "exec/hwaddr.h" #include "exec/ioport.h" #include "exec/iorange.h" #include "exec/memory.h" Most files in hw/ should not need include/exec/. > register.c | 43 +++++++++++++++++++++++++++++++++++++++++++ If my reorganization goes in before, please make it hw/core/register.c. The next step in the reorganization would be to move memory.c to hw/core too. Paolo