From patchwork Sun Jun 14 08:00:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 11603223 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 9CCA01744 for ; Sun, 14 Jun 2020 08:05:46 +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 71BF8206D7 for ; Sun, 14 Jun 2020 08:05:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mymailcheap.com header.i=@mymailcheap.com header.b="eI7P5pKX"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="aPAFvKh0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71BF8206D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=flygoat.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]:60548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkNeD-0005fV-OR for patchwork-qemu-devel@patchwork.kernel.org; Sun, 14 Jun 2020 04:05:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkNcW-00033O-Mc for qemu-devel@nongnu.org; Sun, 14 Jun 2020 04:04:00 -0400 Received: from relay5.mymailcheap.com ([159.100.241.64]:56227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkNcU-0004nU-Hs for qemu-devel@nongnu.org; Sun, 14 Jun 2020 04:04:00 -0400 Received: from relay3.mymailcheap.com (relay3.mymailcheap.com [217.182.66.161]) by relay5.mymailcheap.com (Postfix) with ESMTPS id B3C112009E for ; Sun, 14 Jun 2020 08:03:54 +0000 (UTC) Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay3.mymailcheap.com (Postfix) with ESMTPS id 386A43F1CC; Sun, 14 Jun 2020 10:03:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id 613802A3A7; Sun, 14 Jun 2020 04:03:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mymailcheap.com; s=default; t=1592121829; bh=XnFE0V90UymUboKqaMtwDSNctNxbWu4M9uOpOkb+W74=; h=From:To:Cc:Subject:Date:From; b=eI7P5pKXuSGA3TyYEUYK/Oz3IfbeRGv+vys2Bj5/rOJGBGt1IRUn6dwrvfvpauW3X QJjJApnWs7L4avQ+Me6f2Pk7O3DpLmxmwUvxiQ17thZfkNkVlYoGSD+UPqzqm3LIYR +UdnPD3r+Pzv8Fx97jVMfKy4LuF4pwxFW3ipxEDg= X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dzHr1b9r0O6P; Sun, 14 Jun 2020 04:03:48 -0400 (EDT) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Sun, 14 Jun 2020 04:03:48 -0400 (EDT) Received: from [148.251.23.173] (ml.mymailcheap.com [148.251.23.173]) by mail20.mymailcheap.com (Postfix) with ESMTP id 09C45403B5; Sun, 14 Jun 2020 08:03:47 +0000 (UTC) Authentication-Results: mail20.mymailcheap.com; dkim=pass (1024-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.b="aPAFvKh0"; dkim-atps=neutral AI-Spam-Status: Not processed Received: from halation.202.net.flygoat.com (unknown [183.157.45.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id 1B64340EF2; Sun, 14 Jun 2020 08:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=default; t=1592121668; bh=XnFE0V90UymUboKqaMtwDSNctNxbWu4M9uOpOkb+W74=; h=From:To:Cc:Subject:Date:From; b=aPAFvKh08lAEC5ID+CoEHeeCyO3adTqGXT0FtC4nqlzAqzM3+wxtkYTkdKLPH/Y0Q 8bnI9rz6a8brDqxTz0mDu1DaO171dBQQcFgexMs5itRo7f3+jd1awgZuwEW3whYeV5 +wI/GLFSwILO/8qlqFjRi4hSAZywkqANYrqYknGM= From: Jiaxun Yang To: aleksandar.qemu.devel@gmail.com Subject: [PATCH 0/4] Basic TCG Loongson-3A1000 Support Date: Sun, 14 Jun 2020 16:00:45 +0800 Message-Id: <20200614080049.31134-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 09C45403B5 X-Spamd-Result: default: False [6.40 / 10.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; RCPT_COUNT_FIVE(0.00)[5]; ML_SERVERS(-3.10)[148.251.23.173]; DKIM_TRACE(0.00)[flygoat.com:+]; DMARC_POLICY_ALLOW(0.00)[flygoat.com,none]; DMARC_POLICY_ALLOW_WITH_FAILURES(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; RECEIVED_SPAMHAUS_PBL(0.00)[183.157.45.207:received]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[flygoat.com:s=default]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MID_CONTAINS_FROM(1.00)[]; HFILTER_HELO_BAREIP(3.00)[148.251.23.173,1]; RCVD_COUNT_TWO(0.00)[2]; SUSPICIOUS_RECIPS(1.50)[] X-Rspamd-Server: mail20.mymailcheap.com X-Spam: Yes Received-SPF: pass client-ip=159.100.241.64; envelope-from=jiaxun.yang@flygoat.com; helo=relay5.mymailcheap.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/14 04:03:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Jiaxun Yang , aleksandar.rikalo@syrmia.com, qemu-devel@nongnu.org, aurelien@aurel32.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" This series is the sucessor of "target/mips: Add loongson gs464 core" [1]. Based on Huacai's CPU define. Boot test have been performed with Huacai's KVM series. Note: This series only adds instructions that can be generated by GCC, as we're relying on toolchain for documents of these instructions. [1]: https://patchwork.kernel.org/cover/11457385/ Thanks. Jiaxun Yang (4): target/mips: Legalize Loongson insn flags target/mips: Add comments for vendor-specific ASEs target/mips: Add loongson ext lsdc2 instrustions target/mips: Add loongson ext lswc2 instrustions target/mips/mips-defs.h | 8 +- target/mips/translate.c | 442 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 442 insertions(+), 8 deletions(-)