From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx08-00376f01.pphosted.com (mx08-00376f01.pphosted.com [91.207.212.86]) by sourceware.org (Postfix) with ESMTPS id CF6D33858D28 for ; Sun, 17 Dec 2023 06:52:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF6D33858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=imgtec.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=imgtec.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CF6D33858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.207.212.86 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702795963; cv=none; b=hv8e5v/dj8br5rlY70cOlAMc3xyxxxXUwaW8TyaR1fd2px2OwDgRSOpj4nPyuwqtvBi4uze1z67h/Aqf2fFh7MbBL3Gr/n1sTbigoEC6WN7vs9IhW3rneTR8unUdu14iiM+fvCEfiScB+GzimL/6Z6eA0tYlnAUSw0mQJAaQgk8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702795963; c=relaxed/simple; bh=dbQcM2Y7llv2TjnYeA3sZMJEIJvt8SvxdIIJHaM0lfU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=A3hlrJb7uEl4QBl9Z8GRs3RTH3KbsyDUZHglngMXU4UfOdPW/YKSF+Tsc7l3Dp6gGmP+R+ORTjzqBshuUn4bev6OEQkADQqnmkU8O9vLgvrc64z9/JatOPStJ7Uo1wV3FbLlKavwmuM+razNgXQeolXqkGAGL5ugX4ML/zXfLBY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0168888.ppops.net [127.0.0.1]) by mx08-00376f01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BH6lrRY009683; Sun, 17 Dec 2023 06:52:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imgtec.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=dk201812; bh=lTCIbKIf 1EclWzEc7DGcXiTbiOwmg5zDdX53S/Uo7L0=; b=Ey5b/IT/FCvmlsAK4TlixCij b1vXdyGqX2cE2vIKTWAMdog4weDfbx8oDmKXgeID0SEqsujOcJXg+kXaxMPGCz0g ye7LxpJfctePoK7qdT5bODTyMGfrERQLZR7Id1iqJYw4RsZrpv0m8bCyMm9SyWtj BPJhJ+fsbihHSYzPC9ypt+qiVYUxHaY/pUU4VWoOq/sMSBn0hSPlfUJsw12xQG74 EYBUA+oXvSW8FBW+d6+F5vd1ltNieVwhhOkznbCUK3TZ0aSgow5OoIPnUw3U+cdc hkzI+6ZVbP7Ep9MPaq8KOI44ltT08/JofwCc2tA1CmoFJsY1Gsd+DYOvtwqIgQ== Received: from hhmail05.hh.imgtec.org ([217.156.249.195]) by mx08-00376f01.pphosted.com (PPS) with ESMTPS id 3v131s0mja-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 17 Dec 2023 06:52:29 +0000 (GMT) Received: from hhjpatil.hh.imgtec.org (10.100.136.70) by HHMAIL05.hh.imgtec.org (10.100.10.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 17 Dec 2023 06:52:29 +0000 From: To: CC: , , , , Subject: [PATCH v3 0/3] sim: riscv: Compressed instruction simulation and semi-hosting support Date: Sun, 17 Dec 2023 06:52:15 +0000 Message-ID: <20231217065218.3799535-1-jaydeep.patil@imgtec.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.100.136.70] X-ClientProxiedBy: HHMAIL05.hh.imgtec.org (10.100.10.120) To HHMAIL05.hh.imgtec.org (10.100.10.120) X-EXCLAIMER-MD-CONFIG: 15a78312-3e47-46eb-9010-2e54d84a9631 X-Proofpoint-GUID: TCKnx48_HgZcHyBMvsrhKO85DNhOUrC2 X-Proofpoint-ORIG-GUID: TCKnx48_HgZcHyBMvsrhKO85DNhOUrC2 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,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 List-Id: From: Jaydeep Patil Hi Andrew, Addressed review comments. The compressed instructions can be tested without the need for GDB test and semi-hosting support. Simulator specific tests are added in sim/testsuite/riscv/c-ext.s file. I have now combined the semi-hosting support in one patch (v3-0003-*). This is based on semi-hosting calls generated by newlib (--specs=semihost.specs option) and picolibc libraries. Jaydeep Patil (3): [sim/riscv] Fix crash during instruction decoding [sim/riscv] Add support for compressed integer instruction set simulation [sim/riscv] Add semi-hosting support gdb/testsuite/gdb.arch/riscv-exit-getcmd.c | 26 + gdb/testsuite/gdb.arch/riscv-exit-getcmd.exp | 27 + .../gdb.arch/riscv-insn-simulation.c | 1542 +++++++++++++++++ .../gdb.arch/riscv-insn-simulation.exp | 31 + sim/riscv/sim-main.c | 1131 +++++++++++- sim/testsuite/riscv/c-ext.s | 110 ++ 6 files changed, 2853 insertions(+), 14 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/riscv-exit-getcmd.c create mode 100755 gdb/testsuite/gdb.arch/riscv-exit-getcmd.exp create mode 100755 gdb/testsuite/gdb.arch/riscv-insn-simulation.c create mode 100755 gdb/testsuite/gdb.arch/riscv-insn-simulation.exp create mode 100755 sim/testsuite/riscv/c-ext.s -- 2.25.1