From patchwork Mon Oct 31 13:25:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 13025920 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DB89DECAAA1 for ; Mon, 31 Oct 2022 13:26:05 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opUnb-0006SG-PH; Mon, 31 Oct 2022 09:25:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUnQ-0006K4-Dz for qemu-devel@nongnu.org; Mon, 31 Oct 2022 09:25:46 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUnO-0007jU-Rb for qemu-devel@nongnu.org; Mon, 31 Oct 2022 09:25:44 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 55F9B5C010F; Mon, 31 Oct 2022 09:25:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 31 Oct 2022 09:25:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1667222740; x=1667309140; bh=1IZJ/6JnUND6i4p/bEPz/d420 2MdBxJBW3BNxk5tfr8=; b=f8VmtoCyEb5jDB/I+wGnu8D8AVP8dIP9O7AvPD3mt w0CWeX3bqkLd3JrprXgvscBYJ24gn++f9mLb5FobUNx25hnuMwHp6VeHti9Mh5Wy E34hz9qoUxz4pvxIIxig/uhULiG56cPl8N6WhbDvnMvVSlqMhRSCuw6QP39pChND U360rep3KJe1GVEmIXCpBuVhPQ2zUSe5cWkTWfZtSNbGypay+u/NjdxhIF5bfuyi 3Z92xoo2ibSr20x7gBBsyG2SwlynrVU6UBIr51TH/ljiXkdzNT5YMh+TNOT7YVy1 2jxAGZjlbKiaUwWSzNSeBrwbEm6Jevy6K/nzzn3buy2Dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1667222740; x=1667309140; bh=1IZJ/6JnUND6i4p/bEPz/d4202MdBxJBW3B Nxk5tfr8=; b=BQw/9DMIQgsX0YbrYa76xmZ2hrSATpvlz3dD5s96RiUrOjeup+l tRsgm8SksPYVuOhtq3wcvR40CI/wl8PQn9CI0Q0Chr92a5aB2bOtn8LzRtyRg8c0 k9r4MbJ0hRrJPMmG7912W/VqTuUnoAj8INAf4Kkf4jLCqHXomTL7K0bUBd9R56w6 b63OlUwUGByqGQ94ZmJfuPFDEgYwwUs3TLuLWFiPHt3tpc/9hu1fEGerYaPGOKFq mVClCabiGdyOx4WHtrAvmoPVJWyI/9pscfkjWJvsxgaWXUWiYjTa4iKpk1u9maek n1O5Y7miGa8nn6RCr49WnUdulNlIIiZneFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudefgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekredtre dttdenucfhrhhomheplfhirgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhmqeenucggtffrrghtthgvrhhnpeehieduieevteevhedthfette ekgfdvvdelveekjeeiieegieevueefueeutdejvdenucffohhmrghinhepghhithhlrggs rdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 31 Oct 2022 09:25:39 -0400 (EDT) From: Jiaxun Yang To: qemu-devel@nongnu.org Cc: f4bug@amsat.org, pavel.dovgalyuk@ispras.ru, Jiaxun Yang Subject: [PATCH v2 0/3] MIPS system emulation miscellaneous fixes Date: Mon, 31 Oct 2022 13:25:28 +0000 Message-Id: <20221031132531.18122-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=66.111.4.26; envelope-from=jiaxun.yang@flygoat.com; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org+qemu-devel=archiver.kernel.org@nongnu.org Hi all, I was trying to build a MIPS VirtIO board[1] for QEMU that is able to work with all processors we support. When I was bring up varoius CPUs on that board I noticed some issues with the system emulation code that I'm fixing in this series. Thanks. - Jiaxun [1]: https://gitlab.com/FlyGoat/qemu/-/tree/mips-virt v2: Address review comments Jiaxun Yang (3): target/mips: Set CP0St_{KX, SX, UX} for Loongson-2F target/mips: Cast offset field of Octeon BBIT to int16_t target/mips: Disable DSP ASE for Octeon68XX target/mips/cpu-defs.c.inc | 4 ++-- target/mips/cpu.c | 6 ++++++ target/mips/tcg/octeon.decode | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-)