Received: from eggs.gnu.org ([140.186.70.92]:52412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSe14-0005Ac-Ol for qemu-devel@nongnu.org; Fri, 03 Jun 2011 19:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSe13-0002s4-Ig for qemu-devel@nongnu.org; Fri, 03 Jun 2011 19:42:58 -0400 Received: from ch1ehsobe005.messaging.microsoft.com ([216.32.181.185]:9338 helo=CH1EHSOBE018.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSe13-0002s0-3y for qemu-devel@nongnu.org; Fri, 03 Jun 2011 19:42:57 -0400 Date: Fri, 3 Jun 2011 18:42:52 -0500 From: Scott Wood Message-ID: <20110603184252.51802c51@schlenkerla.am.freescale.net> In-Reply-To: <1307039850-22337-1-git-send-email-agraf@suse.de> References: <1307039850-22337-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] PPC: E500: Implement reboot controller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "qemu-devel@nongnu.org Developers" On Thu, 2 Jun 2011 20:37:30 +0200 Alexander Graf wrote: > + case MPC8544_GUTS_ADDR_PVR: > + value = env->spr[SPR_PVR]; > + break; > + case MPC8544_GUTS_ADDR_SVR: > + value = env->spr[SPR_E500_SVR]; > + break; Heh, I didn't even realize these were in there -- I was just thinking of the guest using the SPR version of SVR to decide how to program devices like guts or tsec, and the conflicting demands that might place on that value if you have both directly-assigned devices and emulated devices that target a specific chip. I can see where that produced confusion. :-) > + default: > + fprintf(stderr, "Unknown register read: %x = %x\n", (int)addr, value); > + break; > + } Should say something like "guts" or __func__ in there somewhere. Especially if we're going to throw away the upper 4 bits of the address. :-) -Scott