From patchwork Sat Jul 11 16:16:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: LIU Zhiwei X-Patchwork-Id: 11657923 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E88B16C1 for ; Sat, 11 Jul 2020 16:19:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C3988207DD for ; Sat, 11 Jul 2020 16:19:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3988207DD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=c-sky.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:57294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juIEG-0000XZ-So for patchwork-qemu-devel@patchwork.kernel.org; Sat, 11 Jul 2020 12:19:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juIDJ-0007Fl-3l; Sat, 11 Jul 2020 12:18:57 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:47377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juIDE-0001Lv-IE; Sat, 11 Jul 2020 12:18:56 -0400 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1233035|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.0740104-0.00102722-0.924962; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03294; MF=zhiwei_liu@c-sky.com; NM=1; PH=DS; RN=10; RT=10; SR=0; TI=SMTPD_---.I0GMGMe_1594484317; Received: from L-PF1D6DP4-1208.hz.ali.com(mailfrom:zhiwei_liu@c-sky.com fp:SMTPD_---.I0GMGMe_1594484317) by smtp.aliyun-inc.com(10.147.44.129); Sun, 12 Jul 2020 00:18:38 +0800 From: LIU Zhiwei To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH 00/11] RISC-V risu porting Date: Sun, 12 Jul 2020 00:16:44 +0800 Message-Id: <20200711161655.2856-1-zhiwei_liu@c-sky.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Received-SPF: none client-ip=121.197.200.217; envelope-from=zhiwei_liu@c-sky.com; helo=smtp2200-217.mail.aliyun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/11 12:18:40 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, richard.henderson@linaro.org, wxy194768@alibaba-inc.com, chihmin.chao@sifive.com, wenmeng_zhang@c-sky.com, Alistair.Francis@wdc.com, alex.bennee@linaro.org, LIU Zhiwei Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" In contrast to the RFC, add more instructions description. Now it supports RV64IMACFD. Some cross verifications have been done, such as comparison between QEMU and TinyEMU, and comparison between QEMU and C906 FPGA. Now it has some productive. Features: * support RV64IMACFD. * support multi-precision float point. * support accurate special values generation. Todo: * support RVV and RVP. LIU Zhiwei (11): riscv: Add RV64I instructions description riscv: Add RV64M instructions description riscv: Add RV64A instructions description riscv: Add RV64F instructions description riscv: Add RV64D instructions description riscv: Add RV64C instructions description riscv: Generate payload scripts riscv: Add standard test case riscv: Define riscv struct reginfo riscv: Implement payload load interfaces riscv: Add configure script configure | 4 +- risu_reginfo_riscv64.c | 132 +++++++++ risu_reginfo_riscv64.h | 28 ++ risu_riscv64.c | 47 +++ risugen_riscv.pm | 643 +++++++++++++++++++++++++++++++++++++++++ rv64.risu | 466 +++++++++++++++++++++++++++++ rv64c.risu | 97 +++++++ test_riscv64.s | 85 ++++++ upstream/configure | 204 +++++++++++++ 9 files changed, 1705 insertions(+), 1 deletion(-) create mode 100644 risu_reginfo_riscv64.c create mode 100644 risu_reginfo_riscv64.h create mode 100644 risu_riscv64.c create mode 100644 risugen_riscv.pm create mode 100644 rv64.risu create mode 100644 rv64c.risu create mode 100644 test_riscv64.s create mode 100644 upstream/configure