From patchwork Wed Mar 1 02:56:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657773 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3270560wrb; Tue, 28 Feb 2023 19:01:48 -0800 (PST) X-Google-Smtp-Source: AK7set9ZXvIzfvgtvLDv3tBn+whH1J43Ad2nAfLynIh2T/nriiI0coLAzFyQyTLA3j5tp7wcyjkX X-Received: by 2002:a05:6214:caf:b0:53a:6e21:5f6c with SMTP id s15-20020a0562140caf00b0053a6e215f6cmr10009476qvs.32.1677639707949; Tue, 28 Feb 2023 19:01:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677639707; cv=none; d=google.com; s=arc-20160816; b=ZJ1miqI3a33eArp33YLbbyG/uGumKhwHtQ2WbHa3oQZxZZ7eVpLx7iMQuJP5m7T/AP C1dNV2cj9I5Fsx3VO6/6ci6c6X9c72ALMIfX2MrgkyURsSj4X6LtY+kpt2rGtAW5pJtT QvNy7q9ka6ofCjORJfsNuUi+1XfgDmAs/4NuKtaggjZ8UzLT+c/JlFrVgcDghvUIOubd X3v/b1/tpZtWaSus/p799DDNqzpvZ1tAY6T4d4JkgMZezPV5MfmZYyr8no0QP289fYOS R9rSH+DFGCrki8vYj+uPGLvIqLw2cG1Dk/z7ZRf12SP3v2FvGNjYtKnOARM4cNq4JzBG ifNA== 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=T8JhNPBurv6UPBw5+T0ptsUEofBEBgdE2LEBxrO3wBY=; b=WgPtAgTKPcNo7nb2WSZwkRsxqdhFtcBtb0t8xJ5uH7wlFBwStS4jxalnZZ6+7qs70S xrxJrrp+X6BmucxJoTA3RPArGQxF337dS+QEcoPSqbKpIPRfdpnKRST7LyP0HOa2YcOR YLbKGet6M9Q5mpBNYCgihiemU7XcadRgXgX91uhlm4UY+YPqoB4K/1Zu8cejAhEeonV0 +qfzeFCP7yIw3yeBR7vGoww3ec0OOx3KV8oT3UtkQ3zY9oyDddy/+/C+E57GkIqT3cE+ XkaYcg2UNJKghfgt1vQs2539WJozaxab8mw7j65hnHRz6yKvSabjPQbzPFMhCKks5wxa 1X3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bBxUtMWv; 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 l14-20020a0ce08e000000b00534276ea6b1si9807333qvk.375.2023.02.28.19.01.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:01:47 -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=bBxUtMWv; 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 1pXCir-0004RS-NY; Tue, 28 Feb 2023 22:01:41 -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 1pXCia-0002VN-Lt for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:24 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCiB-0004Ft-P4 for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:01 -0500 Received: by mail-pl1-x635.google.com with SMTP id z2so12535781plf.12 for ; Tue, 28 Feb 2023 19:00:59 -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=T8JhNPBurv6UPBw5+T0ptsUEofBEBgdE2LEBxrO3wBY=; b=bBxUtMWvoOqoTAEEEAuXTY1Q0d+PLEm+Bn0B+dqRBWMlEzdZHmTnR4sQLfFQ+CUgHB evyabu+LjQjFEgnHFdPB54LRAQja9vSi85YznnB5OW+2XmFM9duPBQMCpTjzXPwwXGHR X76YWZokaWsb+z76dmlftfcI4y/2IVodZwe9rS5CjWWzJTb05UE80N9FzBF4qJlj3aB/ votrkmieQKk9B4gVc3FfGRpyeqNJrdJXYowQxfLeU3GNvMZJ/IWPjyPdfFSkiyBH1liu faTbOTjGwz/2vy2hf3QP/izPlgWqYHnoTFNu6vXq1Lo2e9669kAmYdHsUewbpImDKirL ehzA== 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=T8JhNPBurv6UPBw5+T0ptsUEofBEBgdE2LEBxrO3wBY=; b=kOcugQN6WjMDBrhqWTd8SgsiBmkaJYouPTo0Gl+L2XpPz/SKMJV+fY0zxp6ljHkPS3 48iDe1G8jbP7Mlu2CC8Xqr/cmSo+b2dNahbIMFZ3D+gXnlf7w3v/75XW3cfoNGHtTXZK PqF2m9mmqrFaEFjB/rr9oc+ujWAUw8ptTS+mEKKhdRgb0sjLeS+KZsP9NyDBiQ2O2xnW atg7mBAl0t0wyT3VXCPtB4SsqjKbFN7kK+05ZOKZvuLsD+DIE23kWvqFeK1FK23NoJWT VYFVJYemYQqxeEartjvOCedHfZaqrYdmEtEoXmcMCsu27c0zEPsHl5oKGMx1kbuzBVZu kuTQ== X-Gm-Message-State: AO0yUKVnix6wjJy6d7xD4JoJ2be9UwWAqardXT7tvCFxKoXo2thLftEv 0JZzUOvnqLfxIMSsrcMsRaXMLyBIu5yEOCwOhxk= X-Received: by 2002:a17:902:ce8f:b0:19a:9434:af30 with SMTP id f15-20020a170902ce8f00b0019a9434af30mr6397696plg.18.1677639658450; Tue, 28 Feb 2023 19:00:58 -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 r11-20020a170902be0b00b0019aca830869sm7181444pls.238.2023.02.28.19.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:00:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 42/62] tcg: Add tcg_gen_movi_ptr Date: Tue, 28 Feb 2023 16:56:23 -1000 Message-Id: <20230301025643.1227244-43-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301025643.1227244-1-richard.henderson@linaro.org> References: <20230301025643.1227244-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/tcg/tcg-op.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 839d91c0c7..66b1461caa 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -1285,6 +1285,11 @@ static inline void tcg_gen_mov_ptr(TCGv_ptr d, TCGv_ptr s) glue(tcg_gen_mov_,PTR)((NAT)d, (NAT)s); } +static inline void tcg_gen_movi_ptr(TCGv_ptr d, intptr_t s) +{ + glue(tcg_gen_movi_,PTR)((NAT)d, s); +} + static inline void tcg_gen_brcondi_ptr(TCGCond cond, TCGv_ptr a, intptr_t b, TCGLabel *label) {