From patchwork Fri Jul 26 17:49:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 169882 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp356992ilk; Fri, 26 Jul 2019 10:54:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC0fAb/i8FQ4ymUnUvIvTiCE1pCmdJkT/BiTkRt/PBTJk6+pEl8zs7gjebkAxL46+d6keD X-Received: by 2002:a50:9846:: with SMTP id h6mr82138747edb.263.1564163677745; Fri, 26 Jul 2019 10:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564163677; cv=none; d=google.com; s=arc-20160816; b=B8jdBHMKQjheiGhVvdAJpZULgZtEJHw+rIh5RPRJnDDj214/FAsMUFdQgqPhrPM8W4 jJlPyZdOPXeAbyQ8H21JtljNG8Z0W6ScghMbB213GL9Ss67jVrDQ2WRDH/pVbMi1cX9w QV3Wf0wNmKPYSwf5liWdANy+X2p9WMDFFVhA5XcBtrLBYfdr/f80jos+D8DtHcuvoJfe rbLSH3WL3YyEymCwhzjXMLb0MrM00MRhatblb8J/MHG+hmjNGtABRvFZVdBncnqXO35i UylYqzLj7zsF9bo/pDamWIos15rfZtgGntWrvnT4iPDn1rYAgM2gJi2yLG92UJCMFm3t I8jQ== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=Za01uaUS+E1JffTVMwXCPiCzGTAwavbcztjEMPVjIIo=; b=fKqVx73ZcJm1Ww8VxQDgOWmp5nFNlx23jmbKekqKL3gvCSaNDIHkaySR1crdN7bIEc zHYtG6BB06G0UgqLRxS4TH5Fz9sCnZgI/e+4PxqRGaMDsGlyRfLr/XIl2hx9j07a/jAQ 6HLAgvj+MyHVuBvjvzt5YJ4wwS34EKpsL4toOYqtQTmPqeFkXXZ1/M3swCUUgcUmgH6d AQbCAe9A+ijKLHSY8lHPcOAaO1fCV7xonmYnr8QmXzpTarXzWy1H/ygJBTGgJ4th/ZHS 3YwB/0soDCRbIJmS3gK/FUH8aIrSXit7gs/eMJDB9PQNYR+Qs1X6d0HkT1aITyesOTfS wbHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HTQ12VGS; 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 e27si13082178edd.353.2019.07.26.10.54.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jul 2019 10:54:37 -0700 (PDT) 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=HTQ12VGS; 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 ([::1]:42334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4QO-00018v-41 for patch@linaro.org; Fri, 26 Jul 2019 13:54:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57491) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4Mo-0002Yi-3y for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:50:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr4Mm-0007p5-Vw for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:50:53 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:33404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr4Mm-0007Vn-Qh for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:50:52 -0400 Received: by mail-pg1-x543.google.com with SMTP id f20so15877252pgj.0 for ; Fri, 26 Jul 2019 10:50:48 -0700 (PDT) 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; bh=Za01uaUS+E1JffTVMwXCPiCzGTAwavbcztjEMPVjIIo=; b=HTQ12VGSu11D/hpOGCcoiE8mxbiVZ3ioQ3SLZdSbQEZH39gCfmq0Mh5LPP8IieKPXp 0isbaob2Qo4YwKI6fZVEtrdoD8ztCbcZGEtg8pMg/d4o18VvoF8xfao3HEFjMbdVYf9Q mfy4XWlk/VlSJQbiP1T8QlHLUbK/1k5ORD96UxIbYWkz9qg6PnvZ89eFsHrBSwzSLmFg g3xkzZf86Ctk+l9grsBxtF4joI1GtQ2uqIOUrOVYdrbtgh4Ud1hhsGvZ0ABp3OOCuPuG hazMVjv5wzqDF+g6/aPVeebrWcoJLlw5BdXdigpaO07muKqZG7XRnfc0Pfv9OJwQ8u7k fHBA== 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; bh=Za01uaUS+E1JffTVMwXCPiCzGTAwavbcztjEMPVjIIo=; b=T9/Jmf7tc6MOiXe0bjFx+Rt/f8ALuLZjwS1rNNegojUwqj1X2Pjz+RrOBbPosb5Wpp xBSfx50Iy/fIuS3eUsQvf3n6hBtfYTejebmfJ3yPz4dCf/DaUpyYRD0aGP6OMgOkLz9p +Uvt8FYk3oaDDKTBwLZFZKyvjlwUcBgY5sLbzS8YrXJ2COHnnivAIs0USES1ZtnKyUC1 ZAma92Oa9OrRU29aAtKIH8RyNO3WwRnnlLuVMZ0a8OtpvhgRGuQwh3ykiTlL5v+fv5QG Fb6Ya8MHQ9KTnusNrrxkAtnZp9SlGzxYp4dWrgbyAammXc1e5uPAMLot66LNs0Ja7vEF LqEg== X-Gm-Message-State: APjAAAWHBOtBKnPAFixVH0g/hiwn5eevBFvYd/RkoqmeTFlEYCox0r3o eMt12sRv00hau6LSb0Bpw9Sqc+9S4yQ= X-Received: by 2002:a63:b904:: with SMTP id z4mr90747529pge.388.1564163444774; Fri, 26 Jul 2019 10:50:44 -0700 (PDT) Received: from localhost.localdomain (97-126-117-207.tukw.qwest.net. [97.126.117.207]) by smtp.gmail.com with ESMTPSA id o24sm104287919pfp.135.2019.07.26.10.50.43 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 10:50:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 26 Jul 2019 10:49:34 -0700 Message-Id: <20190726175032.6769-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190726175032.6769-1-richard.henderson@linaro.org> References: <20190726175032.6769-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PATCH 09/67] target/arm: Fold a pc load into load_reg 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: peter.maydell@linaro.org, qemu-arm@nongnu.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.17.1 Reviewed-by: Peter Maydell diff --git a/target/arm/translate.c b/target/arm/translate.c index e316eeb312..53c46fcdc4 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -9161,11 +9161,7 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn) } } else { /* store */ - if (i == 15) { - /* special case: r15 = PC + 8 */ - tmp = tcg_temp_new_i32(); - tcg_gen_movi_i32(tmp, s->pc_read); - } else if (user) { + if (user && i != 15) { tmp = tcg_temp_new_i32(); tmp2 = tcg_const_i32(i); gen_helper_get_user_reg(tmp, cpu_env, tmp2);