From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id C251D3858D39 for ; Fri, 4 Mar 2022 19:46:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C251D3858D39 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 224JDDX8038356 for ; Fri, 4 Mar 2022 19:46:44 GMT Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ekp6pknhp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 04 Mar 2022 19:46:44 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 224JhDIa017550 for ; Fri, 4 Mar 2022 19:46:43 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma04dal.us.ibm.com with ESMTP id 3ek4k2gpg4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 04 Mar 2022 19:46:43 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 224Jkebx23462262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Mar 2022 19:46:40 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3899B11206E; Fri, 4 Mar 2022 19:46:40 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3CA3C112064; Fri, 4 Mar 2022 19:46:38 +0000 (GMT) Received: from li-e362e14c-2378-11b2-a85c-87d605f3c641.ibm.com (unknown [9.211.79.233]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 4 Mar 2022 19:46:38 +0000 (GMT) Message-ID: <7ff0655bead2a8245018fbf9624f207cd38a5b7f.camel@us.ibm.com> Subject: [PATCH 0/2] Add recording support for the ISA 3.1 Powerpc instructions From: Carl Love To: gdb-patches@sourceware.org, Ulrich Weigand Cc: Will Schmidt , Tulio Magno , Rogerio Alves , cel@us.ibm.com Date: Fri, 04 Mar 2022 11:46:37 -0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: iXm2zS8zi6x7455wDDgVlOzhnQwHVnDj X-Proofpoint-GUID: iXm2zS8zi6x7455wDDgVlOzhnQwHVnDj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-04_08,2022-03-04_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 priorityscore=1501 mlxscore=0 adultscore=0 phishscore=0 malwarescore=0 clxscore=1015 mlxlogscore=547 lowpriorityscore=0 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203040096 X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2022 19:46:45 -0000 GDB maintainers: The gdb record functionality does not have support for the the Powerpc ISA 3.1 instructions. The first patch in this series will add the missing support to record the registers for each of the ISA 3.1 instructions. The second patch in the series adds two test cases. The first test case verifies the recording works for a few of the ISA 2.06 instructions. The second case verifies recording of a few ISA 3.1 instructions. I have used the Valgrind ISA 3.1 testsuite to verify that all of the ISA 3.1 instructions are recognized by gdb record. Additionally, I manually ran gdb stoping at the Valgrind test function for each of the new instructions. I then verified that all of the expected registers changed and were then restored when the instruction was executed in reverse. Basically, the test process consisted of stopping at the isa instruction, issue the gdb command record command, info registers all saving the output file 1, si, info registers all saving the output file 2, reverse-stepi, info registers all saving the output file 3. I then diffed files 1 and 2 to verify the test changed all of the registers specified in the ISA. Finally, diff files 1 and 3 to verify all of the registers were restored. Carl Love