From patchwork Thu Oct 17 18:50:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 176693 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1349703ill; Thu, 17 Oct 2019 12:02:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgfiU8wojdpQ8wFsR24Ree/05oQrR1wHnlnPWZ/k+W5cG7LB+pcHdOdB39uv0ZTggKtus2 X-Received: by 2002:a37:7641:: with SMTP id r62mr4768005qkc.496.1571338956740; Thu, 17 Oct 2019 12:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571338956; cv=none; d=google.com; s=arc-20160816; b=s38N2JDoZbFkcm6EaBlc8cJ3Ddd2kL8smqfVReUGA4n1fTkUcUL0mcvqha3gQumqCz OYLVSq1ukk/ambhePbCqFjcq/YQ5vF5GIg0MpbyPFM60ZrYHoEEQprx0A7UdsidiY1ty Gt6xszmrekWgALBMfiXD4lH9WHtR+KYRJtAuwk8QRq2dneU/oLpzVSY5uIzZtV0bSkdg KXDAt482CFoW2ogpS66aZiHpQmy7Qk1YZQJCNUDVgxIzYNJbTw1CTVHA3ZQic6b4TX8f QVhHlDc1yIpI28ed9pUeC2RXDwb7YxFUOI5/3AyQpst1mwx5WoXdO/9s1Z6x/AhP5dkK cL6Q== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=IBA+abtZ26hlRDDlZ8eTB3Pn4yNYwZChmFB+u2JQGOM=; b=L4Sr0p1vOSsz1MsSEJbIqQEhRdC0wpMcA9sjxNksDsy+ZyaLzyqnv09BTF73IfxVu/ XNgU3BK2u9jQf6LOXg17u0r95lzHUWznoPhRhztmOPLECpxNwnAxDRPcic3ZhkiPABXa zJfVj2Pr5rRcfagb+WSwW+goNUNGXgfnF4d4stTvcZzVIQFwUvxXK6zbSF4P8TQG7ZDO Nh49Z0AbP8ZgAhOTuBrvwp7C5YzdzfN9gbbCDBoWsRdMvLI3nuWBYTcQK7cGR609EvmD 2GB6BN20/2L9c8y1PForQJEburrLXkjzW/E0H+D3Q810Vq2vIFmLvjhMo5KcjCCRJsWt /MDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DYDYv4z5; 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 e36si3007420qte.80.2019.10.17.12.02.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 12:02:36 -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=DYDYv4z5; 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]:57134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLB2h-0004tz-GV for patch@linaro.org; Thu, 17 Oct 2019 15:02:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35135) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLArs-0001C4-N7 for qemu-devel@nongnu.org; Thu, 17 Oct 2019 14:51:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLArq-0000sX-Vx for qemu-devel@nongnu.org; Thu, 17 Oct 2019 14:51:24 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:38366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLArq-0000s7-PM for qemu-devel@nongnu.org; Thu, 17 Oct 2019 14:51:22 -0400 Received: by mail-pf1-x441.google.com with SMTP id h195so2215787pfe.5 for ; Thu, 17 Oct 2019 11:51:22 -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 :mime-version:content-transfer-encoding; bh=IBA+abtZ26hlRDDlZ8eTB3Pn4yNYwZChmFB+u2JQGOM=; b=DYDYv4z5rYOHKgP6fl/oD3gy6IBcwlCqU6Lzlv3YGFO/8SgQx3joZpGJThFmfmg0zW OkKJlj2e1FzwP+0oSvb4zOC9V3kEUMaQ85rUx/HNCgjsaQ/Y6yDYxzDF4rBhb8lvgsuJ DHR3tIaDWRfRCeUNirUziKF7BcSO5GsHFOenZeZYdByCKSvRZs7yjlsVcmkRRwRrOelP kWv2KfQj81uoYjaABTZd59k7DvZ0FwXRCTflLI7grg0vr3Xng4IFSv6BpgRkinPpT3KT k3YhgAN1i6OdqKwNrkiX3ONQbaJnXfaxJGUe2DY0K9wggeKOx85bGRZfHRmazbhYY0Fl tGzA== 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=IBA+abtZ26hlRDDlZ8eTB3Pn4yNYwZChmFB+u2JQGOM=; b=O/Imc6nBgL0Q0fL0LDF8RS2hZ6EuI+m9erXi9/ILflrNIsXdXsbIdL7S6BbMUfbK3S jXw5THa8Dpxx/DLXD17OaiuXkUD+AxXbU4NFIhU3EQIPkJH7N++GaRybHzK7cX9cTq4W sBhMfInCphTC/Fj8uEjbZNL/K6MyWWuq0ZITAa7XcfZJWi4oPubUi8CIKMriIFrout5p h5OGbw2iiS/ojOVr3DVKjHusakO0PD+tntqjglcosksMf+3c0D3TlVM4NdZRuE9se6Ul JFoT1whu7MSfRMiynhPstrIPNCO4QENFwHatX5w09+cUJTrAhAn8AubOFNwtY9NC4Hye 3eOw== X-Gm-Message-State: APjAAAW1AhdlE6y6lrFvCrjT0WkZbz05GUw7r7Aiz77ka/J+OEuaVTuS T+evUbe17RVTWgmAD6RzhSkUjxrz4b0= X-Received: by 2002:a63:cf4d:: with SMTP id b13mr5600676pgj.396.1571338281342; Thu, 17 Oct 2019 11:51:21 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id s97sm5009256pjc.4.2019.10.17.11.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 11:51:20 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 07/20] target/arm: Split out rebuild_hflags_a32 Date: Thu, 17 Oct 2019 11:50:57 -0700 Message-Id: <20191017185110.539-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191017185110.539-1-richard.henderson@linaro.org> References: <20191017185110.539-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::441 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. Reviewed-by: Alex Bennée 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 296a4b2232..d1cd54cc93 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11106,6 +11106,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) { @@ -11218,7 +11224,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);