From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:45628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gggxV-0007gC-UJ for qemu-devel@nongnu.org; Mon, 07 Jan 2019 21:17:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gggxU-0002H4-SE for qemu-devel@nongnu.org; Mon, 07 Jan 2019 21:17:37 -0500 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:41950) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gggxU-0002G3-MS for qemu-devel@nongnu.org; Mon, 07 Jan 2019 21:17:36 -0500 Received: by mail-pf1-x444.google.com with SMTP id b7so1116913pfi.8 for ; Mon, 07 Jan 2019 18:17:36 -0800 (PST) From: Richard Henderson Date: Tue, 8 Jan 2019 12:17:22 +1000 Message-Id: <20190108021723.14762-3-richard.henderson@linaro.org> In-Reply-To: <20190108021723.14762-1-richard.henderson@linaro.org> References: <20190108021723.14762-1-richard.henderson@linaro.org> Subject: [Qemu-devel] [PULL 2/3] target/alpha: Fix user-only initialization of fpcr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org When the representation of fpcr was changed, the user-only initialization was not updated to match. Oops. Fixes: f3d3aad4a92 Fixes: https://bugs.launchpad.net/bugs/1701835 Reported-by: Bruno Haible Signed-off-by: Richard Henderson --- target/alpha/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index a953897fcc..1fd95d6c0f 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -205,9 +205,9 @@ static void alpha_cpu_initfn(Object *obj) env->lock_addr = -1; #if defined(CONFIG_USER_ONLY) env->flags = ENV_FLAG_PS_USER | ENV_FLAG_FEN; - cpu_alpha_store_fpcr(env, (FPCR_INVD | FPCR_DZED | FPCR_OVFD - | FPCR_UNFD | FPCR_INED | FPCR_DNOD - | FPCR_DYN_NORMAL)); + cpu_alpha_store_fpcr(env, (uint64_t)(FPCR_INVD | FPCR_DZED | FPCR_OVFD + | FPCR_UNFD | FPCR_INED | FPCR_DNOD + | FPCR_DYN_NORMAL) << 32); #else env->flags = ENV_FLAG_PAL_MODE | ENV_FLAG_FEN; #endif -- 2.17.2