Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pnLsm-0001r3-BL for mharc-qemu-riscv@gnu.org; Fri, 14 Apr 2023 12:02:40 -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 1pnLsZ-0001ep-Ub for qemu-riscv@nongnu.org; Fri, 14 Apr 2023 12:02:35 -0400 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnLsY-0007En-77 for qemu-riscv@nongnu.org; Fri, 14 Apr 2023 12:02:27 -0400 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-187a742a963so3555469fac.10 for ; Fri, 14 Apr 2023 09:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1681488145; x=1684080145; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=o2QcPUfp1MpPevNyEGith7KhVp0Sl4Ym11iIU4KtbXI=; b=aX1iY0SdJO6VmhTnoy2l2wvi/Ykc7nJlZupQxDdD+Vh8YzMKtYucoWYsX+XsOI/7ud rD4QTkaHsKkdEuKsevCtmg4BsHQ6q/LnF4Yy0Il8aPuZNyLZRMzrIEhKEqzeLNICYmsM O5ggx1hxP+ptV6tFVwO6xmNffYAIorNJTQCShq0XRt8QawIgZRmdYqfta2Key/V5g3Yr rArM9idVnpw7OK/ZGmNpEOuWS1CHMgj4QYbUfSc9H5MFqVSTArMRdapg88TfGwOfzcH1 9VbKjfXZ6aLeyPDhvXTP+ucnmWQ0NrXOJFTxC1RK7WIK5kUILST80trRyIxaaKAZL0Pj aTgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681488145; x=1684080145; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o2QcPUfp1MpPevNyEGith7KhVp0Sl4Ym11iIU4KtbXI=; b=G7majFa5Osix7idNV1mHKN2rCwcy5C70gBJWRxvUqMXQvhVAGLRFgJHTTcXSz2Y10r KRMQXLHJPtmftya+mNNcQixThX3MmorYBnfFGaviS7FkHf7EgHH0jSTP7Ll2qjnVWFE2 2CnLlaZ7FlhnyygQOwaeGEaIoFlunUcP4b00t22h6bPKINKvLiGjoigZLp+X9Br/OEsl ovUuVowXgjJBRd/ktRd0E8tVKHpy/Iou45YF2nR/WNMitxQKAwK2wBS58Yt+vV1jJJGd r1jrHaYe7EY2yhR2v54C565mbNn+8qGAh+yDMYAwfEVOZtkolCLGLVQk2PU6eCNImlOv ZIDQ== X-Gm-Message-State: AAQBX9erskeFceDeVw4GREjBg2jQaS9fvkKKBHoLci94OPCQiAVun4wO YOBn7ZSSCaavVCFjxsHd22DybQ== X-Google-Smtp-Source: AKy350aEv0fhqPNi4G37umwofF31GxaCVXrmXnERkMh8IA5i0YKbKlzkg48jMYw6x+VXglQhlEEZpg== X-Received: by 2002:a05:6870:a412:b0:177:af7c:906f with SMTP id m18-20020a056870a41200b00177af7c906fmr4338924oal.40.1681488144205; Fri, 14 Apr 2023 09:02:24 -0700 (PDT) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id u6-20020a4a5706000000b00524fe20aee5sm1794323ooa.34.2023.04.14.09.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 09:02:23 -0700 (PDT) From: Mayuresh Chitale To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org, alistair.francis@wdc.com Cc: Mayuresh Chitale , Alistair Francis , Daniel Barboza , liweiwei@iscas.ac.cn, Richard Henderson Subject: [RFC PATCH v2 0/4] Smstateen FCSR Date: Fri, 14 Apr 2023 21:31:58 +0530 Message-Id: <20230414160202.1298242-1-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4860:4864:20::32; envelope-from=mchitale@ventanamicro.com; helo=mail-oa1-x32.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2023 16:02:37 -0000 Patch 4 and 5 of the smstateen series need to be re-submitted with changes described in the email below. https://lists.nongnu.org/archive/html/qemu-riscv/2022-11/msg00155.html Hence splitting the patch 4 of the original series into three and re-submitting along with the original patch 5. Changes in v2: - Improve patch 1 description - Reuse TB_FLAGS.HS_FS for smstateen - Convert smstateen_fcsr_check to function - Add fcsr check for zdinx Mayuresh Chitale (4): target/riscv: smstateen check for fcsr target/riscv: Reuse TB_FLAGS.MSTATUS_HFS_FS target/riscv: check smstateen fcsr flag target/riscv: smstateen knobs target/riscv/cpu.c | 3 ++- target/riscv/cpu_helper.c | 12 ++++++++++++ target/riscv/csr.c | 23 ++++++++++++++++++++++ target/riscv/insn_trans/trans_rvd.c.inc | 13 ++++++++---- target/riscv/insn_trans/trans_rvf.c.inc | 24 +++++++++++++++++++---- target/riscv/insn_trans/trans_rvzfh.c.inc | 18 ++++++++++++++--- target/riscv/translate.c | 7 +++++++ 7 files changed, 88 insertions(+), 12 deletions(-) -- 2.34.1