From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNDhy-0000zb-2b for qemu-devel@nongnu.org; Thu, 06 Aug 2015 01:27:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNDhn-0007m6-KY for qemu-devel@nongnu.org; Thu, 06 Aug 2015 01:27:13 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:43365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNDhn-0007l9-0O for qemu-devel@nongnu.org; Thu, 06 Aug 2015 01:27:03 -0400 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 6 Aug 2015 15:26:59 +1000 From: Alexey Kardashevskiy Date: Thu, 6 Aug 2015 15:25:55 +1000 Message-Id: <1438838757-32352-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH qemu 0/2] monitor/ppc: Print correct SPRs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Markus Armbruster , Alexander Graf , Luiz Capitulino , qemu-ppc@nongnu.org, Scott Wood , =?UTF-8?q?Andreas=20F=C3=A4rber?= , David Gibson QEMU's monitor can only print registers described in monitor.c but in fact we got lot, lot more in POWER7/8, instead of adding all of these into monitor, we better print only registered SPR so here are the patches. Please comment. Thanks! ps. about coding style. In PPC code we name CPUPPCState* variables as "cpu" and "CPUState" - "cs". However include/qom/cpu.h uses "cpu" for "CPUState". What is the correct way of naming these? Alexey Kardashevskiy (2): monitor: Add CPU class callback to read registers for monitor target-ppc: Define get_monitor_def include/qom/cpu.h | 1 + monitor.c | 229 +++----------------------------------------- target-ppc/cpu-qom.h | 2 + target-ppc/translate.c | 72 ++++++++++++++ target-ppc/translate_init.c | 1 + 5 files changed, 90 insertions(+), 215 deletions(-) -- 2.4.0.rc3.8.gfb3e7d5