From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSsWj-0005VW-4E for qemu-devel@nongnu.org; Mon, 29 Oct 2012 12:49:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSsWd-0005HX-8l for qemu-devel@nongnu.org; Mon, 29 Oct 2012 12:49:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSsKP-0002PM-VH for qemu-devel@nongnu.org; Mon, 29 Oct 2012 12:36:42 -0400 Message-ID: <508EB095.9060406@redhat.com> Date: Mon, 29 Oct 2012 18:36:37 +0200 From: Avi Kivity MIME-Version: 1.0 References: <20121027041159.GA20153@zapo> In-Reply-To: <20121027041159.GA20153@zapo> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] Memory API and fine grained Memory Regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Peter Maydell , Peter Crosthwaite , John Williams , "qemu-devel@nongnu.org Developers" On 10/27/2012 06:12 AM, Edgar E. Iglesias wrote: > > Hi, > > If well designed, most hw has a well designed symtery between regs > that makes things simpler if you can just opencode the decding. > IMO, an mr per reg would just add a massive overhead for no win. > And also, hw implemented decoders look very much like > switch cases in qemu which make things easy to map. > > What is the win? As Gerd says, stuff like automatic read handlers and write-protected bits can be done declaratively instead of programatically. -- error compiling committee.c: too many arguments to function