From patchwork Tue Mar 7 18:34:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659825 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2540864wrb; Tue, 7 Mar 2023 10:36:48 -0800 (PST) X-Google-Smtp-Source: AK7set9s3HeZ972hnQ516EpLK/9yfXdgZp+zO7ZTagxNtNd95U5qZtx1nxcLGw0ZBI76crFzwRzC X-Received: by 2002:a05:622a:349:b0:3ba:265d:6793 with SMTP id r9-20020a05622a034900b003ba265d6793mr27978615qtw.42.1678214208749; Tue, 07 Mar 2023 10:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678214208; cv=none; d=google.com; s=arc-20160816; b=xfRFH85/yt7RahyO1/U6x0PLaJxgaMAQizMRVAayiqAaYYuPoB6idRL9AW3FbQH3Ko FBwD8d8qtJ7yZ+jCbrOQN88jgAZvecjBUkwNmhLUmo43iUI4pOCSP5p5xn1FzEJAQLZw 5bm4oDyEOamnafsrDq/ywR/8bl06mw4rq7e4e1pBvh8glq8xqezAg4eWKB4wvF9pYb81 9A3VBDG5ReeUWa2A0VH116kXcWIswQU488SoWJluI+qr8SaejIh05t/O6Ot16AlxWSoD dfm6q1aLptY7e13D4TTX954buKMfj7j1ePTEOyVoMMmJfXuKf8PHvaJ2J878MN1cYFe4 GhrQ== 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=yOlCe3APQzaMifrnuMKC34pNFHThuNfr2aJxx+z+UxQ=; b=ZNXQjMFUhk3RFNFxzGtBXAjjSGNglyUoZx8AzvhnQtSkfuzOVC8sY2wPh4MZjGx+tq Oh5FRC2OCLxcFaIFrCmxPUN1/6rh9oozl4T8FUZl38+F15YjTGkW2xia3q/ZlgNvqe4a 6yFKS+rQjcCyj+oZqV6p0m6cyevyAMICjP6jg+VPAVYWokUsq6MYrbzfLeorNMWlCqBE SyVIQW5zpDe+r5VcyykWGWBVo9Ime+glNxJTXER1vylBtg/iP/wJwbNVxraldGbRr6bS BLO7DPj2XlAH+WUjxznw6sZ4U0695N5Jrpf9RxVhudZng5L+3gcHHpwhIx/ndMLIFBGr Xflw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EWUXePfF; 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 a63-20020ae9e842000000b0073b6c3f3ee6si9443134qkg.193.2023.03.07.10.36.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 10:36:48 -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=EWUXePfF; 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 1pZc9f-0003e7-ED; Tue, 07 Mar 2023 13:35:19 -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 1pZc9d-0003dA-F1 for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:35:17 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZc9b-0007l7-Tq for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:35:17 -0500 Received: by mail-pl1-x62e.google.com with SMTP id a2so15135914plm.4 for ; Tue, 07 Mar 2023 10:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678214114; 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=yOlCe3APQzaMifrnuMKC34pNFHThuNfr2aJxx+z+UxQ=; b=EWUXePfF7Q/AQlF6njxH/4RDlMaUoSFzf+2boefMNUwL7h1ClMpcV/mnSedOvEhjCp 5v6edqS0o1uGNLNbUGzCx2lTJmWtQinEeh4lysGDgqbLFJc0ORYGm0Ba0wYRt5EqzgVd 3QSvJdkcd5pCEH8/2XJEOueh7XnrzkjDK7Sv3L8msmARnFjUcGpfnqK36UajMajPkxbs yZCtD49wI8tQVCtzqmUIgedtAafhQ06kXoojtkxuN3rHHXMbfNCuJLcoVbcsRCvbB1Qt I6AcmozBNj5AU3pY246QvhsuHm4l6XD89k1f58hKg3iYQHHWbwFE7zVvan4ZquNLPTyK XEvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678214114; 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=yOlCe3APQzaMifrnuMKC34pNFHThuNfr2aJxx+z+UxQ=; b=00SE5vWfe2BdZuZG09XJZW6ZBTgusi/QJrlTQV+Hhcn5hbkSi+F+1Q3LsvcLmWfuBM qDRrKlTlVOZLDoLC9Xnpt8vmOLOrsmMnPvCPJv2bQiK9V4g8b3Yv6hVkPHlr/sKBwQEL 3OVo5JcGBvP4jeIa1niZdc5uaopG0WMb2ae0mZhtNVggHb9E+g0zB5xCEYDmlPMfmEET RAQLrE5MdKqYIKqod5/h9g+gCBpwV7P9H30ihfVtaAlsACAQQS3bnMf2NWB1FLsXluVs Dsq7+xv51sSO2uR9w7XXtZKyXeKl1RG5sNqQi53g940JsJpMHvScLrvzpd4bhxTgZeqQ GpEw== X-Gm-Message-State: AO0yUKVvTOYavjV/RqR1RDzyOBQjTztU+fvcCASMG9oKFSt5YBZ5PrsI 71SUcVb5uBslPrBWFNF6ygOjcYr9N5EVaZfy8fk= X-Received: by 2002:a17:90a:fb0e:b0:234:13a3:6e67 with SMTP id it14-20020a17090afb0e00b0023413a36e67mr16396946pjb.12.1678214114618; Tue, 07 Mar 2023 10:35:14 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:b1e0:bfd9:8b1a:efeb]) by smtp.gmail.com with ESMTPSA id q1-20020a17090a1b0100b0022c0a05229fsm7757940pjq.41.2023.03.07.10.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 10:35:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 13/25] target/m68k: Use tcg_constant_i32 in gen_ea_mode Date: Tue, 7 Mar 2023 10:34:51 -0800 Message-Id: <20230307183503.2512684-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307183503.2512684-1-richard.henderson@linaro.org> References: <20230307183503.2512684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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 Return a constant for an immediate input. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/m68k/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index fc65dad190..e16c608ef8 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -920,7 +920,7 @@ static TCGv gen_ea_mode(CPUM68KState *env, DisasContext *s, int mode, int reg0, default: g_assert_not_reached(); } - return tcg_const_i32(offset); + return tcg_constant_i32(offset); default: return NULL_QREG; }