From patchwork Fri Mar 8 01:58:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 159944 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp8145751jad; Thu, 7 Mar 2019 17:59:08 -0800 (PST) X-Google-Smtp-Source: APXvYqw0l6B3Jq0T+C+TDHZr5YIAvFqMBKOqdLk0wLfQIA9CHPueI+sKfhzFzXD8XZ0h2jl2lEM+ X-Received: by 2002:a25:4e09:: with SMTP id c9mr7656253ybb.167.1552010348824; Thu, 07 Mar 2019 17:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552010348; cv=none; d=google.com; s=arc-20160816; b=oHsCbZ1w2bc0KQHz/nL81VxVfp0DkBTcyPcEG6DYygHZtzRBlXGZ6uL50zFT/g4YSg 1fqycIhBbOGfh67LOYrjeJ3bjbmEK08C/WDMYenlc5tKwh+CjWv1ojdeyCAYnAdTggsz Q6hEB1o1DgYxZcP5eJw2oikp7JK+e164srIJ3KN7fVTf6UtgoMoknEA6WzICAy1mjjPv Zhb8HbXV+G3PaocfrrXyUOBnl5eXjE/zZ37IL/PxOQV8ED59bNvUpSGpIME5BdMvye+Z D/z8IqSOgB+sQwdVCongXIDsctRmi2u66/SoGZo/jl6j3H57PwEtBViHiV3e4NgsB+QT ukHw== 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=QPLXCI+8BY5c2CvH0KId1U45WqAPMrrIg+PmlwbydN4=; b=VM6Aq/TSTGhJdCprYbcBfyrYMBLp4EgWcwj5J12IFq62rbHYk4zGU0+OvjWv0Rsk/L N7HplpyscNdq0OF8zfUdaxOHamkDbtYtm5PLI2oX+v0rcD6CEezw907jaiLCZnVouLaV 7fN8O1K15hXdMLBU9ryRwDdNLOEzyPsXYg/ERpxddJzn/03r4eVVZyMaeW7CZMg9ODtf PPxA2rJOzmlmRsxpBEMR6oJuWlJlkHS2O+JzaY3dtBGJn24IiWNZ1x9EePDqyaA7yOau NHef7LBFtweOzmU0YoZ590brfpf1EJzKQsHa04cnohfXDx4nvROHc4ycxyPDiu5FI7n8 FIjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nUKZW3x9; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 204si3530220ybp.12.2019.03.07.17.59.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Mar 2019 17:59:08 -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=fail header.i=@linaro.org header.s=google header.b=nUKZW3x9; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:35458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h24my-0006Zc-CD for patch@linaro.org; Thu, 07 Mar 2019 20:59:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h24mg-0006Wp-3g for qemu-devel@nongnu.org; Thu, 07 Mar 2019 20:58:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h24md-0007gh-4E for qemu-devel@nongnu.org; Thu, 07 Mar 2019 20:58:48 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:37173) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h24mZ-0007SG-6U for qemu-devel@nongnu.org; Thu, 07 Mar 2019 20:58:43 -0500 Received: by mail-pg1-x535.google.com with SMTP id q206so12794441pgq.4 for ; Thu, 07 Mar 2019 17:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QPLXCI+8BY5c2CvH0KId1U45WqAPMrrIg+PmlwbydN4=; b=nUKZW3x9Na6+eAlWJvlUBj0tUuc5WG33miAYJSnyX7GfkYYLlk4Zu6+HlYmBsksPF/ 3YINvUgelNAQ7A3RL5HRR+JClDHzaipwJ1fv0VJJvWppVdTqQ8IKD4lQgwXGXMYbyiQV c/IouztUq4zgXZWR/TQb/rhly7t1Kk0vn2I7Ub5QTRSd4Gf9Sco4FIPZDz58NBynf6qb j9BCIQ49MRsbBFFKlX9+uf9Co/S6kwjwM+GIjAOIVYISmaEgTvCdQXR6HMSqQf1xSdAl uqIzvuFV7yJ8lKRICFYY+fwrRCUWQoHpH1U8Xvjim4stkiSlidKh43X46ONUyuawvSFd Hsmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QPLXCI+8BY5c2CvH0KId1U45WqAPMrrIg+PmlwbydN4=; b=hG6UyE8IotiZmgGq7uHWjFIkU1f22BK2RSNwwnrVD98XtVnD16uo3MpzrXC2Tq23Qb xt9ObIh4OYQzt4B7rAAI2qjCRsKupUBkvTqd0yf7uWxz51rH2APCLdxAIiiEcuVoWxFF ksDi+0rCCdI3lxlXbWLWWj4ngv0COwmokns/Hwz7S/UcFAKdBsHMQTRfF/Nly8vBjskc t/SmcciboPheKi7e7CeoPuZjea1HAAyLK7rDJtr800d5raRz9HdJOOHjrn+65nhr0+Wv 0kURW0vRQc8bDhZqHoso0L7YRjzPYoBxbgbO6w84ehybi3xK9QNG128p9EM9RlBKpjHW MZcg== X-Gm-Message-State: APjAAAVwl+J6b8hNfeYgVQhV+FEIlQrmj/X4fFoKjXH1TJfiX8ixlR1v H0qEn2HYmYayVhBr+uGtFtnL8x1J5HQ= X-Received: by 2002:a17:902:968b:: with SMTP id n11mr16120058plp.316.1552010314196; Thu, 07 Mar 2019 17:58:34 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id f193sm8863465pgc.3.2019.03.07.17.58.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 17:58:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2019 17:58:29 -0800 Message-Id: <20190308015830.10980-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190308015830.10980-1-richard.henderson@linaro.org> References: <20190308015830.10980-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::535 Subject: [Qemu-devel] [PULL 1/2] target/hppa: Do not return freed temporary 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: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" For priv levels 1 & 2, we were doing so from do_ibranch_priv. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/hppa/translate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.17.2 diff --git a/target/hppa/translate.c b/target/hppa/translate.c index b4fd307b77..dad8ce563c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2007,16 +2007,15 @@ static TCGv_reg do_ibranch_priv(DisasContext *ctx, TCGv_reg offset) /* Privilege 0 is maximum and is allowed to decrease. */ return offset; case 3: - /* Privilege 3 is minimum and is never allowed increase. */ + /* Privilege 3 is minimum and is never allowed to increase. */ dest = get_temp(ctx); tcg_gen_ori_reg(dest, offset, 3); break; default: - dest = tcg_temp_new(); + dest = get_temp(ctx); tcg_gen_andi_reg(dest, offset, -4); tcg_gen_ori_reg(dest, dest, ctx->privilege); tcg_gen_movcond_reg(TCG_COND_GTU, dest, dest, offset, dest, offset); - tcg_temp_free(dest); break; } return dest;