From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2132.outbound.protection.outlook.com [40.107.220.132]) by sourceware.org (Postfix) with ESMTPS id 2376B38312AB for ; Mon, 27 Jun 2022 20:40:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2376B38312AB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=crossfire-tech.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=crossfire-tech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iL8ngm7kVgXdFRk+3185vk4R80raPBYfO/rN44f+LGJFiwrSgaP+sbKcCOFYYp++v6J9X5Jv90TCJY+HQh5I55Vn61dwTVCP3YvCUAMeiGo9GlugoTmakqtkl8ISy+MIAvZ9kmFplVI6xYQsPlUyWd2Zj753Yqryaoo6SzOg671SNz9qoXyxLM490cdx/Q2gaDQnoKSYGOzDMZLHojOZig66TUp54cvlDNHt3yeSxT4tToiLOpDsIHHvh0n752b/tFATb5I59TFhlG5UPoMRG++2AXCdB/gxzZ7GkY0XIZJT3QVR9yAEneXWFfR5XV+CP4k/i79rLnJQVh6xe4mpNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U6Y3IF/nz85fI70kX1+IgbfsRJzEj6wecOFPezAaNTw=; b=gR5pRJQtWjpDyQ2b1uxgl1Xj8nVP1mZ3s2qIcHJsuh3Q0s3bbiO86zFYFQyGlZpb60is1Y0P5yNrwznkqZc2gFDe+C+SHTZmyc6k95hRIVGkr0tidUJLunsKIg5Du/zRT+aTc3Nqh40eI6I2bhzEsxQKO960B6sENVPzG4ENX2zw6GOYz++okOeDC+aa7bllYm52JlMY+ZOm9PyfZon1D0Xbb5LhzE5dtAUGuD6NcwLWeFo7Y6fUg/fy8w7UPQwvRUHaXStK2ZSAIVfjOziXUuX8RC/aOXP4aW2lL6roA4V9l3lSzAMThGYfcVYRQakYdgchwDlFQSU0iysF1XEJAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=crossfire-tech.com; dmarc=pass action=none header.from=crossfire-tech.com; dkim=pass header.d=crossfire-tech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crossfiretechcom.onmicrosoft.com; s=selector2-crossfiretechcom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U6Y3IF/nz85fI70kX1+IgbfsRJzEj6wecOFPezAaNTw=; b=TsbV3HhinP2F/DzWkduLU0dJSgNgPZ7aaVCyKpet9LCghWhx1cwJzEYDwB26O934rqnjqrQsFXh0o9Xc9Vpb0o6gBDHj1iECb9LQc+vd6xOSSSFHE19he1ikq6+NQZ032NVPz7gnq4ihVahlzaKwGOK9wovIAO70DloRv3bpQ0w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=crossfire-tech.com; Received: from DM5PR1201MB0060.namprd12.prod.outlook.com (2603:10b6:4:51::15) by SJ1PR12MB6075.namprd12.prod.outlook.com (2603:10b6:a03:45e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Mon, 27 Jun 2022 20:40:10 +0000 Received: from DM5PR1201MB0060.namprd12.prod.outlook.com ([fe80::60f7:bab9:28c7:c89f]) by DM5PR1201MB0060.namprd12.prod.outlook.com ([fe80::60f7:bab9:28c7:c89f%7]) with mapi id 15.20.5373.018; Mon, 27 Jun 2022 20:40:10 +0000 Message-ID: Date: Mon, 27 Jun 2022 15:40:02 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 To: gdb@sourceware.org Content-Language: en-US From: James Becker Subject: gdb for Riscv, single stepping issue Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DM6PR01CA0015.prod.exchangelabs.com (2603:10b6:5:296::20) To DM5PR1201MB0060.namprd12.prod.outlook.com (2603:10b6:4:51::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f7e1845-afb7-4bee-af38-08da587d3a5f X-MS-TrafficTypeDiagnostic: SJ1PR12MB6075:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vht4w82G8a5U7j9ZP9VNm2+kgOnIjsdmbH+A8+hYvQfxjW0w7b19tpuCbg0wbFzaPJAOoCwS8rgoqWw5clkQ4dDwpWm4nMsOY1GrL9hPHI4J4PRh88PLlLLHU/ZCNP1Sh9fgJr9srl3NbXq3iSjoJDVTSIlr53+WLCDMyKL/zJj0BDM9lNNqyyuu/Qo/F9W3BeDHSiozatM4ri9sTisApZBQubJ8fztmsdgAppsJSOaO4mOXHzNbBfOly5PBlVgBRoZ+Xdocp7KeBC5DSRRDFw2UPtUre6X8nYQejdCtdTjHlhsZDhzHqA3/90L02SdLNBAVVwWho9cwp6MPIGoojLBeUR+S/KvC8uVOOrTjRd8BHojn5ouWVZZC23P7z3CAyTWOm1fmmPFHBCR3LmhUR0mRJrw3SVT3P/Tqs1uIXszyflplDppHfevw2by//60VhqY7IqDTYYA8QM5uirdoGnMUKej13C0RBPt13ZUrlXdAZt33kf7ghUdrThoBAE20BFoktPcfUXmkUeUs3oZ4Z8Vy9fP/eET920IKScgEJSOq+lhl3sSMtu5+kAAW+8/06rFUaZZjYcdr+PMX7cmlMFVnWSXkeVzj4PHiP7UYebTcRqstSD4jw75N26Q59oGPTBZZYSGfb38X1rwEgta9upWvRGGXsM6TAueyouvDBW188e33fW6pCcqVHSwWzM2IGeIxx3j7FB6enDG4BhVJgJAjNlnsngqU355aciMOe70rVr3FTl1iiSkV4TdPyKxhKXwheoDz6BoEzLz+5aQ50wLhgD7OcsORYmfv9smpXX8THspmPt9AHZMSM8GlKXyqbR3+xS5NJMEzA2OC1V69Q+vKbo6jlZ//xKRQ1qMDzLI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR1201MB0060.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39830400003)(136003)(396003)(366004)(376002)(346002)(15974865002)(83380400001)(316002)(6512007)(66946007)(66556008)(52116002)(66476007)(8676002)(6916009)(31686004)(44832011)(40140700001)(2906002)(86362001)(2616005)(6506007)(38100700002)(5660300002)(6666004)(186003)(478600001)(36756003)(41300700001)(6486002)(31696002)(8936002)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SWJIKzltV1JOb1F1eFFSU3V4WnBueGp3RTJ0ZzBoMjh1Vk5acWxKVEpFaFVo?= =?utf-8?B?akpsMWJhdVc0Z0lubjJvK1V6WVg0ajJPZmtiaVdFQTJ3NERnMVhkaDB2Y3Q3?= =?utf-8?B?a2FTeW1SSWVmK1FaVkM5TzRqSGJ3amFCcXl6aXcvRUpLU2o1Mng3VTVETENk?= =?utf-8?B?Z292NThSMmhpMHlHdTVTcDRkVWNmdXFrY1g1R1hDZjAzZGZmMEltb3N0VlFu?= =?utf-8?B?OEszdSs2d0NhZkdMS1pPR3hqR2FISG4yaFUwaEdMU1VIYVMzNkMyWVRpbGdi?= =?utf-8?B?clpnMHFUNi9hQnc3ZllPY1VTY3ROdy9XWUxOV2ZzaHZHam03TGVyMzFuUHZM?= =?utf-8?B?L1RKRFJBWFFUUUU4dFBmZWRYYy9GSz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JsMkxkVVFJNFBYQU9pK1V6Q0Vt?= =?utf-8?B?YlNheHR2dnl0N0FRTEduRWdqbE5Fc241UkQwR2haREU1R25pMGNiOTlGUzYz?= =?utf-8?Q?Gw02X3qXgAstMbdN76KBwPExTzB7bS+0WybM7m6UM4=3D?= X-OriginatorOrg: crossfire-tech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f7e1845-afb7-4bee-af38-08da587d3a5f X-MS-Exchange-CrossTenant-AuthSource: DM5PR1201MB0060.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2022 20:40:10.0945 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e7eed0-6fcb-4943-9788-b04e82fe6ba6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qJ4Ey1wPS1p/KE0/2UFXEI8OnPVrtOus2eNQWrvwd1FUGR6K/AQGu2T+Leox5j4UT0jn3Us9rAfAbYq+kqaJQ98dXShFf2DWRUL+5kHSQ5M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6075 X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2022 20:40:16 -0000 Hello, I have a RISCV-EL2 core running in a Nexys A7 FPGA board. I have openocd for riscv running over jtag with a connection by riscv-gdb to the openocd instance at port 3333. Everything works fine, stepping, break points, load, view memory. But I have one issue: Some of the memory in my design is 4 byte aligned.  Its designed for fast instruction fetch, its known as ICCM. When I have code running in that memory, gdb still works fine for breakpoints, but it will not single step. Looking at the openocd debug files, it appears that gdb is attempting to do a 2 byte read as a part of the single stepping procedure. Since my memory does not support 2 byte reads or writes, this fails. Is there some way that gdb can be configured to not do any 2-byte word reads or writes during single stepping?  I can't seem to find any. -- Jim Becker CrossFire Technologies Inc 1000 Westgate Dr. Suite 150-I St. Paul, MN 55114 Mobile: +1 303-507-6399 www.CrossFire-Tech.com Warning: The information contained in this electronic mail message (and any attached document) from CrossFire Technologies Inc. is intended only for the personal and confidential use of the designated recipient(s) named above. This information may be considered confidential by CrossFire Technologies Inc, or may be privileged or otherwise exempt from disclosure under law. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received the communication in error, please notify us immediately by telephone and e-mail and destroy any and all copies of this message (and all attached documents) in your possession (whether hard copies or electronically stored copies). This communication is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§ 2510 - 2521. Thank you.