From nobody Mon Feb 9 22:05:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail header.i=@wdc.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=wdc.com ARC-Seal: i=1; a=rsa-sha256; t=1566574292; cv=none; d=zoho.com; s=zohoarc; b=i3isfnrv29xP7nsSFFHDq23bqgiN4x3QDa9mqbo0u8iJYkBvXcY6Ki3QuD6Qu758jsWLH8UTKW8EURPnv7du3lbz2P+/U0eeZPFfoGep+rkRB+2aHv5aQUbEnS1lK0FOYLW4+SRT2Jz/fb749Qo/WkLPRcekaz8LWsveS5FJVJk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566574292; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Z6fPxGO1jW5XDxnwPhbUBoNjGiO0Hpt2EMQqGadpRMI=; b=GEd5l/qg+5Oq1rS6MMA+hk6XEmVojzWP+VFMuCdYhEMcDYE9DIeCCKa5lI5T3YjX708twvQdGXducha4Q+ZXNjBy8qXj2O2Ft8G0eV1wSdn/1y5SIHHkImGkpLlyvm0L6qy8cBbogywGEx3uYa7xBeqsVY+n+NsOI5n6xQtfiGU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail header.i=@wdc.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15665742928681018.2519557108043; Fri, 23 Aug 2019 08:31:32 -0700 (PDT) Received: from localhost ([::1]:58194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1BXE-0007to-Vy for importer@patchew.org; Fri, 23 Aug 2019 11:31:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59936) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1BR2-0001oX-P7 for qemu-devel@nongnu.org; Fri, 23 Aug 2019 11:25:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1BR1-0000Cd-L6 for qemu-devel@nongnu.org; Fri, 23 Aug 2019 11:25:04 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:38180) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i1BR1-00006k-9b; Fri, 23 Aug 2019 11:25:03 -0400 Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 23 Aug 2019 23:25:02 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2019 08:22:20 -0700 Received: from risc6-mainframe.sdcorp.global.sandisk.com (HELO risc6-mainframe.int.fusionio.com) ([10.196.157.58]) by uls-op-cesaip02.wdc.com with ESMTP; 23 Aug 2019 08:25:03 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1566573903; x=1598109903; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pAzFSx0tx0Pz0MS9Z/42V+0LphUR85f4qQbToNZTkdc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TUaMpPp7m7IH/tbJs8WCFr7YIUSYj33fQketA+iXOOR1WzB3n2oVjlg Y+CtacpxEKBJysuC7soZxg2Yg22sttJDXdFx21WQSIDvkR1Nk620W3Tqmp3qmEpuLm/upUVR3l rUqaLgSEH+R/zxYfSrKUMzfV37e3gj1xsxcB/jb6o86/cFN33BqLcEQ7BGZndsc4qucTvw4tyA JXNMpGgekcq5NznnZH5TJTMWe1cng4pAu6GKQ12TneAcsktbDBQc1AeRrWLMc8IyR1FljoPZot CuQ= WDCIronportException: Internal From: Alistair Francis To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Date: Fri, 23 Aug 2019 08:21:22 -0700 Message-Id: <0b18d5784d392d315bc0c6df8b7c258022f1f6d5.1566573576.git.alistair.francis@wdc.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 216.71.153.141 Subject: [Qemu-devel] [PATCH v4 6/7] target/riscv: Fix mstatus dirty mask 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: alistair23@gmail.com, palmer@sifive.com, alistair.francis@wdc.com, bmeng.cn@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- target/riscv/csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index 2789215b5e..f767ad24be 100644 --- a/target/riscv/csr.c +++ b/target/riscv/csr.c @@ -335,7 +335,7 @@ static int write_mstatus(CPURISCVState *env, int csrno,= target_ulong val) * RV32: MPV and MTL are not in mstatus. The current plan is to * add them to mstatush. For now, we just don't support it. */ - mask |=3D MSTATUS_MPP | MSTATUS_MPV; + mask |=3D MSTATUS_MTL | MSTATUS_MPV; #endif } =20 --=20 2.22.0