From patchwork Fri Aug 23 15:21:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1152275 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="jmIVx291"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 46FQVX3RfXz9sN6 for ; Sat, 24 Aug 2019 01:36:36 +1000 (AEST) Received: from localhost ([::1]:58316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1BcA-0005AE-8W for incoming@patchwork.ozlabs.org; Fri, 23 Aug 2019 11:36:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59962) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1BR5-0001sS-Cv for qemu-devel@nongnu.org; Fri, 23 Aug 2019 11:25:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1BR4-0000E0-FA for qemu-devel@nongnu.org; Fri, 23 Aug 2019 11:25:07 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:33705) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i1BR4-0000DR-7o; Fri, 23 Aug 2019 11:25:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1566573907; x=1598109907; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ksFRuDOVK+nvrJfNMPopN/I2U8vPsOLgk90V/grIQdA=; b=jmIVx29166JGKXRTpBmqBkacoyEqk94unEbIuEFGqOckEw/OQkb+0Fnb HuVpG0hZJdKhxKCJr7/xiar8L5+gjcF6o23K2Hxjb0WuHmUi3SpMwPj72 G+/Y3yqoKGQhtYiEVhDBP+Rd3gIOKkflkIm0nSg5Jsf8kq4PR4WydMK4p 1VyZ323gST/1m8bnx3/KKWfvx0SVg/2rkAbP8SapPWKUkdsnuJq8ARb/Z sCG8ODO2wojgKm6hLjyhrGYawnBo7xAzwm/O+XbS+Mn+GI3MRsX4Z/zlI bp7RmIaoWcXBX/Bi0WgVehgTe/eIyOSrpqpeHiqLpJq+yepkvKkWn1OFD w==; IronPort-SDR: 1VGsWPsKJg7shpFrbmJuaB00TtA/wMpcQGxWj6SuL35+er3Rl2CJNdHHHEFbZBMkD0nEh6/LUY 7O5UGJDjHoIs4C7f9Y4NJMcbTF2GaWiPmpLq4yf8VIIszNuGiQUrhJltvWsQ3w0/WK+QEGHFo3 b5XELoadt+dXoGwgKB0A0wpJd+4VdSeUnIE/o0FdSQ4ltYcm4xCD4rXuil0Am3qIpesMtQnKXc pC64Tfx7RzU1SDz/1O3AS6ER1YgtmMY8k/zGQ+3thtLJoNAwDbka01HbOh0MmF3jh7F8hI/CfN JlY= X-IronPort-AV: E=Sophos;i="5.64,421,1559491200"; d="scan'208";a="116527778" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 23 Aug 2019 23:25:05 +0800 IronPort-SDR: Sp3q9CQ9++mUtzUDmnKnCbYKpJQzUFXDndxFCIaZgAdof5ROSW5tIWIjXl7AA/3CCxJOtYOWoj 7DxzjwknaYuqMQDCmQjLB9ZzYxGwZvzkG0oCLU4lSqKHnNDVi7MboQX5EnGADQjGjbSXfOyrc+ fQWymlAL32+OThriF7fuCCgyPnKlECUZnFFZMo1D/9AA3O/S+vZqffR8sWrFKTExeYMjUmxKsb L1BhS/8Ybm6U9oogj+DaaNUusotWRfyTIj6kcXPfBbVessVk1fxaE3pHWonLrJ6X4//CGwjhQM Lty8Z+QcuG6QlVu1vYY+VEEk Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2019 08:22:23 -0700 IronPort-SDR: r8mUkXi/N67n/I5pkxTK9YVjoQ7lYovu32DTi9+iFfwyaWBjzyan8ln+u0FzHihDD0mN/V/Hcf I7P70KDOYcuEVGKJN39SNFvIaRAqKNssTgKu+Au9Od5Y+pGviq/4CyiSKwqRpyqyjcYUkUUtUd xGDPlxwZRu/3eDZbxVgFEut12LEkR9pabH/bP9kn/KJ6eb2rcjIUn1+8EShIRYBgSlzjb+C/3E 3IRoH6ld1LQpa+LUwNRhTxsBw2ujixyLyrixjhiiMvO5rqykUNuhBDpKyqL8FYzoVV/DCqI79u yUo= WDCIronportException: Internal Received: from risc6-mainframe.sdcorp.global.sandisk.com (HELO risc6-mainframe.int.fusionio.com) ([10.196.157.58]) by uls-op-cesaip01.wdc.com with ESMTP; 23 Aug 2019 08:25:05 -0700 From: Alistair Francis To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Date: Fri, 23 Aug 2019 08:21:25 -0700 Message-Id: <066a2c520c38b0c175c052d6a3385d5661764833.1566573576.git.alistair.francis@wdc.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 216.71.154.42 Subject: [Qemu-devel] [PATCH v4 7/7] target/riscv: Use TB_FLAGS_MSTATUS_FS for floating point 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Use the TB_FLAGS_MSTATUS_FS macro when enabling floating point in the tb flags. Signed-off-by: Alistair Francis Reviewed-by: Palmer Dabbelt --- target/riscv/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index eb7b5b0af3..0347be453b 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -301,7 +301,7 @@ static inline void cpu_get_tb_cpu_state(CPURISCVState *env, target_ulong *pc, #else *flags = cpu_mmu_index(env, 0); if (riscv_cpu_fp_enabled(env)) { - *flags |= env->mstatus & MSTATUS_FS; + *flags |= TB_FLAGS_MSTATUS_FS; } #endif }