From patchwork Thu Feb 23 20:43:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656002 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp539372wrb; Thu, 23 Feb 2023 12:46:02 -0800 (PST) X-Google-Smtp-Source: AK7set+gEzUEhtnb12zbjguoVh4aKBSMqEc5LQUBeyHy2rguMd5vHX/bBR5DGC/hgk2Vd5EdOLIP X-Received: by 2002:a05:622a:306:b0:3b9:ec46:bf95 with SMTP id q6-20020a05622a030600b003b9ec46bf95mr26381013qtw.49.1677185162498; Thu, 23 Feb 2023 12:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677185162; cv=none; d=google.com; s=arc-20160816; b=0CUU8uBF+hLR5WRkAeQ/S9wtGjVF4D9ZfVe08WLSzBpXzjyTK4HnflNcrS2fusneFo H3cq8VZh3IS2CPOtXG4AIJNL1lOgTG7FEUg4yrZI8SEx1RORgggPmaARWHxzJxT9E1Ty oN3LHdszwEZ0VGgHpVFy9XJjVhBWuaaWlLvWtd8scEa4V4If8WaaO95LgVAaGtHn4/Sb 4q39A4B11jsJU+PjnyXL4SUyIhufnm4b/pBzwm66fNbUtkks6XBRIFqNhvSs1xugj3er u1bOEjTAxW/IFM1udZMhS0DzR/PYuPFH1uBm6Bjm8zMzSGtSi8AVgve03d8VfadfTOOT pb/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=3vtvNlB4KTNEcDi5rbGBEAocvCMMZzxXPOlMmxtkjOc=; b=A/H2jUrClL03iYUkO/+/yxt4bVZOcaUR3K7tSdpI4sr4wLcgus4uOTwm4/24tIeDj9 T9WT3DUsMuGSOOmNSGs7qb+2dhMDGHLqARydGue8x6Rd/OFdj81yxUPWTIlxu92hOvlB qFaRu4tcLBV6Lmfp8IRyfm50sEs8WqoD1ghQDt6cnPR8XlbiPkB5UILtfMqraPOVc2St gjHqVtsOM+T0oinR8r1jLPIEcKlxPO+3i+ITaDuHw4YTvc16gAzBYKzY6toEq+KJg3Yy CHENzMF67Z94DWy2sVT561hYBjLyMvdAaLwf7KAZk5Vh2sF8AHStO7E7N8QsaUF6fY9Z UgwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NSQT5Mrp; 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=pass (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 b10-20020ac85bca000000b003b86da41d4bsi6063062qtb.99.2023.02.23.12.46.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 12:46:02 -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=pass header.i=@linaro.org header.s=google header.b=NSQT5Mrp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVIRg-0002rm-GB; Thu, 23 Feb 2023 15:44:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVIRf-0002qg-6x for qemu-devel@nongnu.org; Thu, 23 Feb 2023 15:44:03 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVIRd-0007QW-3n for qemu-devel@nongnu.org; Thu, 23 Feb 2023 15:44:02 -0500 Received: by mail-pl1-x633.google.com with SMTP id q11so14829922plx.5 for ; Thu, 23 Feb 2023 12:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3vtvNlB4KTNEcDi5rbGBEAocvCMMZzxXPOlMmxtkjOc=; b=NSQT5MrpMsF68BQuPoeYqbBBT7RfjJU9ERQAbllouaUrLKqG9rAzQ7BhXeqRebuK+L bYxWxzbHD5gOaHTE1TgnKzrTPbyM+k7N7UXxPutqodE6Jza+wSMnJVRkDQVP2DV9xnZq 66cjzOuYrAl/Yxa0W6/ikb9O3wQna9KwblBZr4Jv2CZlkLm4VsY6tMk9lVJLufGDuZk5 hstV8G7GnKkK1Jm/WQI+RokDUqDiHGyudnwSG2o11pbuMxpnKyj8DD8BSDK6Q1r21azX rf0hDW4BAsbdsgVHULfjcR1GzKn68H2ANdqdsJRVBhZeIcxGRX++8W4/cdy8MdeBNGRT 1DRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3vtvNlB4KTNEcDi5rbGBEAocvCMMZzxXPOlMmxtkjOc=; b=f7BCysPPSMmDDy+5WloeQIbh9uHPDXcl2s8AUaZJTlwacMR46JMIDlMcNsQUKa/z8y /9vHcsnUfJFr9a4VAiBs7bxkGk8S7FLlkII9+V+gJBt8XOuHyTs6yfv6L++IUd3LIvf2 U664FU0Hm+RdAroJeUn9S7P0PB/mwn5gW0UoI2ByJM/2nECJ30ouk6Wn7rhXQ++4L8ky Ujieu/MZnhNxKwCKcIQB1JoZi+QypGXFlxIuVB19CaXsxG44kCVVBuZCCFOTzeOpts4u CEhTuCn4+iqP4ksXKApbyD5WyZFjQqr0uQP52QqYHCsjDcBqp5LcqkIuPko6GqZcyZNN TxXA== X-Gm-Message-State: AO0yUKUOhjelT0S8V+JgX7CdfTJwscyY3obRbLsaFL9o3Nqqq09ezx2Y xE4MrooPJfeq8+MFPYHRD9BdtocqaFQgsv3U3u8= X-Received: by 2002:a05:6a20:8f05:b0:cb:8d74:1114 with SMTP id b5-20020a056a208f0500b000cb8d741114mr11744034pzk.44.1677185040354; Thu, 23 Feb 2023 12:44:00 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id e187-20020a6369c4000000b004b1fef0bf16sm5992850pgc.73.2023.02.23.12.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 12:43:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 08/13] target/arm: Support 32-byte alignment in pow2_align Date: Thu, 23 Feb 2023 10:43:37 -1000 Message-Id: <20230223204342.1093632-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230223204342.1093632-1-richard.henderson@linaro.org> References: <20230223204342.1093632-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Now that we have removed TARGET_PAGE_BITS_MIN-6 from TLB_FLAGS_MASK, we can test for 32-byte alignment. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index c23a3462bf..412fc4aca8 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -940,13 +940,7 @@ static inline void store_reg_from_load(DisasContext *s, int reg, TCGv_i32 var) MemOp pow2_align(unsigned i) { static const MemOp mop_align[] = { - 0, MO_ALIGN_2, MO_ALIGN_4, MO_ALIGN_8, MO_ALIGN_16, - /* - * FIXME: TARGET_PAGE_BITS_MIN affects TLB_FLAGS_MASK such - * that 256-bit alignment (MO_ALIGN_32) cannot be supported: - * see get_alignment_bits(). Enforce only 128-bit alignment for now. - */ - MO_ALIGN_16 + 0, MO_ALIGN_2, MO_ALIGN_4, MO_ALIGN_8, MO_ALIGN_16, MO_ALIGN_32 }; g_assert(i < ARRAY_SIZE(mop_align)); return mop_align[i];