From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20487 invoked by alias); 11 Sep 2013 17:39:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20454 invoked by uid 89); 11 Sep 2013 17:39:37 -0000 Received: from e06smtp18.uk.ibm.com (HELO e06smtp18.uk.ibm.com) (195.75.94.114) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 11 Sep 2013 17:39:37 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp18.uk.ibm.com Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Sep 2013 18:32:11 +0100 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp18.uk.ibm.com (192.168.101.148) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 11 Sep 2013 18:32:08 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 8F63617D8058 for ; Wed, 11 Sep 2013 18:39:36 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8BHdH4b37814338 for ; Wed, 11 Sep 2013 17:39:17 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8BHdToI005822 for ; Wed, 11 Sep 2013 11:39:29 -0600 Received: from br87z6lw.de.ibm.com (dyn-9-152-212-143.boeblingen.de.ibm.com [9.152.212.143]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r8BHdSMX005777; Wed, 11 Sep 2013 11:39:28 -0600 From: Andreas Arnez To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [RFA][PATCH v5 2/2] S/390: Add TDB regset References: <877genmltz.fsf@br87z6lw.de.ibm.com> <87sixbfkb6.fsf@br87z6lw.de.ibm.com> <83sixbiaqe.fsf@gnu.org> <87ob7zfgc7.fsf@br87z6lw.de.ibm.com> <83r4cvi9ai.fsf@gnu.org> Date: Wed, 11 Sep 2013 17:39:00 -0000 In-Reply-To: <83r4cvi9ai.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 Sep 2013 19:59:33 +0300") Message-ID: <87k3infeb3.fsf@br87z6lw.de.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13091117-6892-0000-0000-00000645FE25 X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00360.txt.bz2 Eli Zaretskii writes: > This is OK, but please also add index entries for TDB and "transaction > diagnostic block", so that readers could easily find this text. Sure: --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -13849,8 +13849,8 @@ specified by the extension to support decimal floating-point arithmetic. There are two encodings in use, depending on the architecture: BID (Binary Integer Decimal) for x86 and x86-64, and DPD (Densely Packed Decimal) for -PowerPC. @value{GDBN} will use the appropriate encoding for the configured -target. +PowerPC and S/390. @value{GDBN} will use the appropriate encoding for the +configured target. Because of a limitation in @file{libdecnumber}, the library used by @value{GDBN} to manipulate decimal floating point numbers, it is not possible to convert @@ -42462,6 +42462,7 @@ registers using the capitalization used in the description. * M68K Features:: * Nios II Features:: * PowerPC Features:: +* S/390 and System z Features:: * TIC6x Features:: @end menu @@ -42651,6 +42652,43 @@ contain registers @samp{ev0h} through @samp{ev31h}, @samp{acc}, and these to present registers @samp{ev0} through @samp{ev31} to the user. +@node S/390 and System z Features +@subsection S/390 and System z Features +@cindex target descriptions, S/390 features +@cindex target descriptions, System z features + +The @samp{org.gnu.gdb.s390.core} feature is required for S/390 and +System z targets. It should contain the PSW and the 16 general +registers. In particular, System z targets should provide the 64-bit +registers @samp{pswm}, @samp{pswa}, and @samp{r0} through @samp{r15}. +S/390 targets should provide the 32-bit versions of these registers. +A System z target that runs in 31-bit addressing mode should provide +32-bit versions of @samp{pswm} and @samp{pswa}, as well as the general +register's upper halves @samp{r0h} through @samp{r15h}, and their +lower halves @samp{r0l} through @samp{r15l}. + +The @samp{org.gnu.gdb.s390.fpr} feature is required. It should +contain the 64-bit registers @samp{f0} through @samp{f15}, and +@samp{fpc}. + +The @samp{org.gnu.gdb.s390.acr} feature is required. It should +contain the 32-bit registers @samp{acr0} through @samp{acr15}. + +The @samp{org.gnu.gdb.s390.linux} feature is optional. It should +contain the register @samp{orig_r2}, which is 64-bit wide on System z +targets and 32-bit otherwise. In addition, the feature may contain +the @samp{last_break} register, whose width depends on the addressing +mode, as well as the @samp{system_call} register, which is always +32-bit wide. + +@cindex TDB +@cindex transaction diagnostic block +The @samp{org.gnu.gdb.s390.tdb} feature is optional. It should +contain the 64-bit registers @samp{tdb0}, @samp{tac}, @samp{tct}, +@samp{atia}, and @samp{tr0} through @samp{tr15}. These ``registers'' +represent the appropriate fields in the program interruption +transaction diagnostic block (TDB). + @node TIC6x Features @subsection TMS320C6x Features @cindex target descriptions, TIC6x features