From patchwork Fri Apr 16 18:59:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 422572 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp654562jaf; Fri, 16 Apr 2021 12:13:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4ScXfthvlFZMmYh7KOR9I4kKnAc7LBP+sCK6yIhWfDStvN7FLLWxYJfh8xAXbwpyv/Vky X-Received: by 2002:a05:6638:218b:: with SMTP id s11mr5403256jaj.81.1618600380943; Fri, 16 Apr 2021 12:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618600380; cv=none; d=google.com; s=arc-20160816; b=B9sSFSRVbY4wmlquAyNpyk6sxdoFE/jXk4S4C2v0E5gIDWFmYabNQAyCYFi/TuJs9v YLNmdMNe2KmET6008kUfhhu1+MOG0eckwCsiecRjNlzAIeW+KrbVLIbggGnHHNcOSCu5 W6KCOg+QFrCqsb5VQ9mbIAzLZtF4IKKIGolVV4kzY/ag/eqHE7GZOcfrgL5L5fNcKRVj aRgdbVb2i2/HZhzJOiAgWyU0iZFha3nUZ/jQRbax9Bw6ULFZXyv+3LVCzpEpO2AOU4/N qyFbTaZB0UbnawARGcWgouzoVwmFhDPS+9SGiGq58pO/nxB4zVh/fqvUQwIzUkVU9OdG LWoA== 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=ZY8Z6GuKFk2peBpwdwT6RL45PsoJHkRVCx8Ex73fZxw=; b=eoJioNW/xiKkox1/NP7ReqIDPwkYu4R1GGgHVkgz24c801yKl0q3rfC/55tNNSawsM R0g1LylqtFjOgYlaqCcstH+adqivESu7LQXuD1AtGWd71FYWXAuPmM8qOvXm5I75Mg3d 3AhS83xAaCdLNQ1QVjt53g7BT2V6n2XRfraOufuJ8DWeQZ0SCodaoys15YGRhFrPoANK h0fM91J2CUvF2kKiCQGFgUss5XDc9ashF5Ju/WwZrVdzibJJCEvpO4U8nK7fNXkxlPTY aqBDrmVT/1/cy5qR3gZ/e+w1lHIK/28VSQcXJjumICh60ms/SUjWvJmsU9rq+yXX2FiD u0Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kwLpd8dg; 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 i24si7124266jav.54.2021.04.16.12.13.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Apr 2021 12:13:00 -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=kwLpd8dg; 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]:37758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXTtk-000179-Ds for patch@linaro.org; Fri, 16 Apr 2021 15:13:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXThp-0003uq-Bh for qemu-devel@nongnu.org; Fri, 16 Apr 2021 15:00:41 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:44579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXThW-0004Qh-C0 for qemu-devel@nongnu.org; Fri, 16 Apr 2021 15:00:41 -0400 Received: by mail-pl1-x630.google.com with SMTP id d8so14467653plh.11 for ; Fri, 16 Apr 2021 12:00:21 -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=ZY8Z6GuKFk2peBpwdwT6RL45PsoJHkRVCx8Ex73fZxw=; b=kwLpd8dgEvQNJ9rF8MSlXupicLAGUdi7PM3EPvG8Y5ckjqrYjqpk6IyOo+5sEoNbbw rjwUC5sRnXhzQ2DRGI1GKzMMhA9ec3l2F9HTl7ybAcTugbaqlsh0cA0F1frcrQOA2CAz Voa5Gwiqg48R77jhYc8MlVkOEpdc9Bih3QEZg9xJJOUFoVyQnbz/6XcizqAQeKpTudN+ YOuz/837HaJc4tVrh0sdHqRxjAE8+ps0a29L9ON3juchafgMfIO8S7YWUyCIRcid19RM 15Vf2+bRxA08H55yUcKDzAohQ2ve0Ga5Tntt9w2Ecxr3nEglJMqWmFlSeNdVndhrIYHY A4MA== 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=ZY8Z6GuKFk2peBpwdwT6RL45PsoJHkRVCx8Ex73fZxw=; b=AKB8Uye1MIMqKFOxo8w3le6T1+JoA+ceoUQB6P0tiUexV1s2sbWXhjMkxtMg+XBKcs wF198j2urX51IJ1XfJn/KYl6Uezcn86e0/vANhUn3Dt6+KorvPKb4ijiyL/c/IPnjWHl SDNAI9hRTt8so8zj/qHAkgtlWWGgC2qa53mUFbNuihewjvDzLLo3M7R5c4BUTPpzsXFW EXsePVcLw9nWySVKN+P1lLnoVZ20a3UCzuHrf4wCaaoNxbZjGOUplF9M7TrjhVn3NmeJ tgBjAuauSxzsrSlsMMpH3/K4JgjaQouNvpU05nMkLbETz4FE3XVv20RFJ2Zc0/waiLd2 67Hg== X-Gm-Message-State: AOAM532uX5suuz7V46bNvWkk8HxiyIptHj9FGfqYarvchFl/wYpYzcBS QkP1vh2IyiKDjdkp/N2H/S8jJ/E86rj6xQ== X-Received: by 2002:a17:902:bd41:b029:e6:933a:f3ef with SMTP id b1-20020a170902bd41b02900e6933af3efmr10966839plx.19.1618599617511; Fri, 16 Apr 2021 12:00:17 -0700 (PDT) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id d7sm1988337pfv.197.2021.04.16.12.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 12:00:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 17/30] target/arm: Enforce alignment for RFE Date: Fri, 16 Apr 2021 11:59:46 -0700 Message-Id: <20210416185959.1520974-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210416185959.1520974-1-richard.henderson@linaro.org> References: <20210416185959.1520974-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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=unavailable autolearn_force=no X-Spam_action: no action 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 , qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/target/arm/translate.c b/target/arm/translate.c index 1ddfce9dfe..6d2339ebad 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -8341,10 +8341,10 @@ static bool trans_RFE(DisasContext *s, arg_RFE *a) /* Load PC into tmp and CPSR into tmp2. */ t1 = tcg_temp_new_i32(); - gen_aa32_ld32u(s, t1, addr, get_mem_index(s)); + gen_aa32_ld_i32(s, t1, addr, get_mem_index(s), MO_UL | MO_ALIGN); tcg_gen_addi_i32(addr, addr, 4); t2 = tcg_temp_new_i32(); - gen_aa32_ld32u(s, t2, addr, get_mem_index(s)); + gen_aa32_ld_i32(s, t2, addr, get_mem_index(s), MO_UL | MO_ALIGN); if (a->w) { /* Base writeback. */