From patchwork Mon Feb 18 14:30:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 158622 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2599421jaa; Mon, 18 Feb 2019 07:09:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IZYsO5lpTdoP0c5bAI1waoj6hUzmFyk70+0rprn4ZyQK5kG0yPVa46P9w1PVAzVAvZOv/G6 X-Received: by 2002:a0d:ecd2:: with SMTP id v201mr18400287ywe.96.1550502560320; Mon, 18 Feb 2019 07:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550502560; cv=none; d=google.com; s=arc-20160816; b=zeqa7DQrZFk4em0aKCQ5K9zFTYrQBVYAW1kJi9Ij3f9X8TpyuScg/9NhWv8S9TI9Nr zaAOBZ+rpp1DuOCwH3OC+vs4GvhyJXhrKK9BlHx/WKV7m+rbp1OhRrDVNCecfXDKR2nW o+Rr0qq62RD6tDyJGSGlYHebzxHOgoSJ6J5/b+RFN+C4A5LoDYTLrbl7t6aCqj8Y+lYp 7CUu74kjNay9xqVX6v54Auq1/H+RBVJlRw8W12Mup68USfR+dW5hKd3e80mEO7QvETah n1fbaQ2j5c3u71HYswaEgENU0PpQ8PAJ2mg6AzPXd5m7XkER9jpZUDrJ5j20f4p2T40Z TbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=T4AoU+gl1gWP2or4i7Y3fkBt5u1dKmSRm/3mYDQbR9w=; b=uUes9OzTtAK6MFtbIPXei3Cu4FFWSl6Ubq96AL7+R6yAlP7FZD+tf9WGGTAl++iNv1 tq2fRxXhn1H/r/nuyVyjaWtFElSnBXD0FcMtntwhsIdaIW7nub+ZW8LRoZrFA/P+R81/ dEv8NE6MK4f2pn6rdiESJLF2pJAlx6W+dCX6EOXaEsIiRdvPwIeJdyC1pHHnTW1Y0SsM G38EehW0dZDcM8z1QkiuspTM1ELt+gRDsyf5PxMAkNv/E9nK40DMU4WRnHMJ3z6BPgmY 7z6LXjxLB+7wxIeM0/VMjT/UTqzB6kdvS1O5SGkVc25Xy2G4sM63x4cWXLXlWEFDWWDs wkOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gibson.dropbear.id.au header.s=201602 header.b=pAVCn2+A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q126si8120487ybc.29.2019.02.18.07.09.20 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Feb 2019 07:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gibson.dropbear.id.au header.s=201602 header.b=pAVCn2+A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([127.0.0.1]:60166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvkXn-0002zn-Ps for patch@linaro.org; Mon, 18 Feb 2019 10:09:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvjyD-0006oP-Eh for qemu-devel@nongnu.org; Mon, 18 Feb 2019 09:32:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvjxw-0003GP-NH for qemu-devel@nongnu.org; Mon, 18 Feb 2019 09:32:23 -0500 Received: from ozlabs.org ([203.11.71.1]:52421) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvjxw-0003CZ-0d; Mon, 18 Feb 2019 09:32:16 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 4435s205yCz9sPd; Tue, 19 Feb 2019 01:31:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1550500278; bh=iEJRs2mtmGZ+SyiAKeopd4SgnrMyKKrs4KjGZTpPGbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pAVCn2+AMWeRrEAyfo5E50IxkC8CHVFS7gyCUthvF5HNA6kS/Uopsp21xyHfjaJqz apcGmk+CSbSfB9e38TJtnyZepVQyXQWrO58CnM7QDnBmxpsIB86PuDjfA/KJn1yYrj fFFriH3yIzMfPpZstW1g3sFYf3u60CUY35ahh978= From: David Gibson To: peter.maydell@linaro.org Date: Tue, 19 Feb 2019 01:30:42 +1100 Message-Id: <20190218143049.17142-37-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218143049.17142-1-david@gibson.dropbear.id.au> References: <20190218143049.17142-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [PULL 36/43] target/ppc: Use helper_mtvscr for reset and gdb X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , groug@kaod.org, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, clg@kaod.org, David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Not setting flush_to_zero from gdb_set_avr_reg was a bug. Signed-off-by: Richard Henderson Acked-by: David Gibson Message-Id: <20190215100058.20015-11-mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson --- target/ppc/translate_init.inc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c index c9985c0d22..ee574b342e 100644 --- a/target/ppc/translate_init.inc.c +++ b/target/ppc/translate_init.inc.c @@ -601,10 +601,9 @@ static void spr_write_excp_vector(DisasContext *ctx, int sprn, int gprn) static inline void vscr_init(CPUPPCState *env, uint32_t val) { - env->vscr = val; /* Altivec always uses round-to-nearest */ set_float_rounding_mode(float_round_nearest_even, &env->vec_status); - set_flush_to_zero(vscr_nj, &env->vec_status); + helper_mtvscr(env, val); } #ifdef CONFIG_USER_ONLY @@ -9603,7 +9602,7 @@ static int gdb_set_avr_reg(CPUPPCState *env, uint8_t *mem_buf, int n) } if (n == 32) { ppc_maybe_bswap_register(env, mem_buf, 4); - env->vscr = ldl_p(mem_buf); + helper_mtvscr(env, ldl_p(mem_buf)); return 4; } if (n == 33) {