From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxwFQ-0000n1-Ua for qemu-devel@nongnu.org; Mon, 29 Aug 2011 03:27:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxwFP-0002la-F6 for qemu-devel@nongnu.org; Mon, 29 Aug 2011 03:27:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxwFP-0002lW-5y for qemu-devel@nongnu.org; Mon, 29 Aug 2011 03:27:07 -0400 Message-ID: <4E5B3F3D.7030709@redhat.com> Date: Mon, 29 Aug 2011 10:26:53 +0300 From: Avi Kivity MIME-Version: 1.0 References: <4E270BF0.2000904@oarcorp.com> In-Reply-To: <4E270BF0.2000904@oarcorp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] m68k: Add uc5282 machine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joel Sherrill Cc: Alexander Graf , Paul Brook , qemu-devel@nongnu.org, Till Straumann On 07/20/2011 08:10 PM, Joel Sherrill wrote: > From: Till Straumann > > Add m68k machine support for Arcturus Networks > Inc. uC5282 board. Also include > > a fix for the FEC ethernet controller. > > +static void mcf5208_resetc_init(target_phys_addr_t offset) > +{ > + int iomemtype; > + > + iomemtype = cpu_register_io_memory(m5208_resetc_readfn, > + m5208_resetc_writefn, NULL, > + DEVICE_NATIVE_ENDIAN); > + cpu_register_physical_memory(offset, 0x4, iomemtype); > +} Please use the memory api (memory.h, docs/memory.txt) rather than this. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.