From patchwork Tue Aug 20 21:07:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 171847 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76771ily; Tue, 20 Aug 2019 14:14:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzO9WBr+TsZbU8BLJYMM0Zj/MsaOeGzWIGibOjn8Pe6P0hogmmyrX8HzbilgNxr9LC/ccAE X-Received: by 2002:a05:620a:15ce:: with SMTP id o14mr28906510qkm.30.1566335659750; Tue, 20 Aug 2019 14:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566335659; cv=none; d=google.com; s=arc-20160816; b=UWJ3DMhbAZmPAxgNzpJfJTMuFqaV4m01LF3RJ9KgRDQnzBAxJg8IkOqk1oLFS/Q6yr MlQkGaqz/7TRXmBYdzkwUElyLlLsYx6y8AbG8GnTV36vLRNSFxkV39Yv1IMnx67C6vgO yrjyywFryg8MvZaYQfbcMcoTESYNpYHsJJQwVN9ESPdQWEuRBWcrnPahQjza4gUEVLKq fZxj75nTck46Fht+LgJpbPUFMqjwLK25Ij7UVsHYls8FgGtr9xzv8fac0BVAiCzvtU1p lMTtOlQDDCMjV0nyrxvw8wg/TWFL6irOLLTl/4dA6+4yULmXMJdtE6NXz9uYmj3O88o4 ueQw== 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=BCJyROCPXXds3VscyTQOsfgCkthhXaXdTk16P2hR/Vo=; b=heWODhOek5tqZP4Pa/q9/uwyr5JYKvJz9pfRmWvrsae9xKS+baYASBJSs27ufj34tW aebDIeGZbg5oFQ4ZhJCMFoMI/m42AePADKx/yE1DCiQsFlKTFazkvSsu5Wtm3W1dAHRX xM8G7Kdt+VUK+TCcYuJIKEdG9Yew/bcHiAX3DXVNIvfd9i79UKOVOHhNdrFSZ9XYWetD CvlIBa4D2l8rxDdZTv3DmRD5grphYR3CRFMtR2c70OvtOBxQlbDK6TT7BRTIQY4lvU56 P/fTp9Iri1GdQi7/rlrjNatHpMVWc3Dd7pMcSaF/jeoSYbQBjo1rzps6MYiSWHuwvkYL 3THA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nVA35vd2; 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 25si12314822qvo.149.2019.08.20.14.14.19 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Aug 2019 14:14:19 -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=nVA35vd2; 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]:41750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0BSM-0005Nd-Pa for patch@linaro.org; Tue, 20 Aug 2019 17:14:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53793) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0BLx-0000HU-3x for qemu-devel@nongnu.org; Tue, 20 Aug 2019 17:07:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0BLv-000063-Jw for qemu-devel@nongnu.org; Tue, 20 Aug 2019 17:07:40 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:36693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0BLr-0008Rd-2G for qemu-devel@nongnu.org; Tue, 20 Aug 2019 17:07:37 -0400 Received: by mail-pf1-x444.google.com with SMTP id w2so4120434pfi.3 for ; Tue, 20 Aug 2019 14:07:33 -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=BCJyROCPXXds3VscyTQOsfgCkthhXaXdTk16P2hR/Vo=; b=nVA35vd2h5vDvoHeJUg6C0bzkg9xx5apXeaTCcUv4dEgn4Mv8V/Nv2Ash21AaDYtyb Rd762GqBbfbX5QVFI3nl5GbrrXCIbwiLzOztLAtU3dBDdsi51Xsui02Ny1C93avNZi50 c8JzQVqdhxoRXRaMynxID9Vaj2MOUnKngKX86eZppIOqkDPlJ40OxjtTHaxofTuzfY2J t7MFqu5BWAiH+O/kV1HMSIh2A3NuproLtIXAYiR1xciBjskgQejeSuCBi2YZPV1ZNEF3 AaVaXGu32mLLWRH+VEcdgYJYyemy7U7RRO1a1Bh2A9zltB6X+abnncIfP+Qa7SHuy/4e xh9w== 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=BCJyROCPXXds3VscyTQOsfgCkthhXaXdTk16P2hR/Vo=; b=SVyftuuuLSmXX7i7dg8Iv/YxHZXmVkbMCJWfZJAS822QYb5yrN6VmBDQSyzFA+BhBp PYvehNnXpUVs4WPjfcz5Wj5h3nB7tnnbAeCFXKI8yCW+hsz8Anjsok10qwoxkbK+g9yD 7PP61K9H+KcInjQhpQ47NnzrEGcV6ZAn+3YmXD08yzvOoiFiHgGqE2QfaecJJ04SnOeS +3hHuo7w5s3B/3v3Mxsle2j24kdreBw6nbMO7XvmVxbkhObWyXHF+fooknuwcn1pfyMD 2CVPOKO7n8LOo74Wkh0Co4NsBEUknEps6tLdMRz1FumGKELv4BjWMdT/1bfFXtSQPkE6 iXQw== X-Gm-Message-State: APjAAAUdGF5E2CMXREBV0UOTnGgelVTveSXE8OMeGzsEIpAbg1j/9OP8 7dS+hAQpplsKGRZAZz74cC9Kmtt2XBk= X-Received: by 2002:a17:90a:234e:: with SMTP id f72mr1885339pje.121.1566335252070; Tue, 20 Aug 2019 14:07:32 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id k22sm21690743pfk.157.2019.08.20.14.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 14:07:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 20 Aug 2019 14:07:10 -0700 Message-Id: <20190820210720.18976-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190820210720.18976-1-richard.henderson@linaro.org> References: <20190820210720.18976-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::444 Subject: [Qemu-devel] [PATCH v5 07/17] target/arm: Split out rebuild_hflags_a32 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Currently a trivial wrapper for rebuild_hflags_common_32. Signed-off-by: Richard Henderson --- target/arm/helper.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/target/arm/helper.c b/target/arm/helper.c index 570f2dcc98..0fea62dc12 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11068,6 +11068,12 @@ static uint32_t rebuild_hflags_m32(CPUARMState *env, int fp_el, return rebuild_hflags_common_32(env, fp_el, mmu_idx, flags); } +static uint32_t rebuild_hflags_a32(CPUARMState *env, int fp_el, + ARMMMUIdx mmu_idx) +{ + return rebuild_hflags_common_32(env, fp_el, mmu_idx, 0); +} + static uint32_t rebuild_hflags_a64(CPUARMState *env, int el, int fp_el, ARMMMUIdx mmu_idx) { @@ -11180,7 +11186,7 @@ void cpu_get_tb_cpu_state(CPUARMState *env, target_ulong *pc, flags = FIELD_DP32(flags, TBFLAG_A32, LSPACT, 1); } } else { - flags = rebuild_hflags_common_32(env, fp_el, mmu_idx, 0); + flags = rebuild_hflags_a32(env, fp_el, mmu_idx); } flags = FIELD_DP32(flags, TBFLAG_A32, THUMB, env->thumb);