From patchwork Sat Feb 25 08:59:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656449 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1352283wrb; Sat, 25 Feb 2023 01:03:12 -0800 (PST) X-Google-Smtp-Source: AK7set8yWUhCFxCVolfXRu2jUE412R3HLLg9/GsSXZGsfPWw0i3K+xy3guE2KyqtjiM29emEYwz2 X-Received: by 2002:a05:6214:27e9:b0:570:bf43:49f with SMTP id jt9-20020a05621427e900b00570bf43049fmr32471096qvb.27.1677315792419; Sat, 25 Feb 2023 01:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315792; cv=none; d=google.com; s=arc-20160816; b=xIP1elyooi8KXNUaI2rsTcxN1Ugg1B1SEILVUmBiv9co0y0FK5Gtq66jO6Ug3taHv0 CC+5TOHseioM6Ny17LWx/7gxkT8ByrdfneKZpQVwMbna7w4djxEpWf7ECnv5DbNjNHaN GR/hFxxiubAMvoOLPvi+gkU99Io9NZKjveMgSSCLG9S/3l1gFcc7kPoSFs18ZDMmsniv llGZPvMFTyUN4qnQQQd8TGLu6Mc7rz0cO+BDDCx/MLC0iKAde+yFkMilpIwf8bxSzZNt 6gfClP50UGZ41v/7dUtTD/5Ao7itEHK9N0nzmPla5sJugYLtf5og3hf+3iA9MSHtPegq I/tw== 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=am6p+lWFtfMqyS6sbpEpMCAQQuhvC055bNdea09GhJB6iWla5XZmIPac9VeCRhs3I3 DhfFsJIHpkJbkJg1YGh77RJA4kzhnkdoQV+Ut4U7SLO1dQ3Y8/f3Whruhs5vYGrkuyR0 JbWqT5TM9ujXd+KjIMUIfYCZ0iBsHSJjx2oTIEkgu5SQZRCQYDsfgNU7L7RyBBlnXAgV h6kvsOOkzhHXAq+Xo6rv1pkGgcbnoTTmNx4JAClOKInDfLeMuOg/RWLG18yhQ52NpXQg RAEFwVyolAF1dVce3c/2PLlLh075YablQ//XwhOZ198bQjjvDVMb4fyIxhj5uC9lYXjw 6s1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K0j6e5TO; 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 s10-20020a0cdc0a000000b0053a300cb14fsi1670491qvk.402.2023.02.25.01.03.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:03:12 -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=K0j6e5TO; 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 1pVqPn-0000aU-AH; Sat, 25 Feb 2023 04:00:23 -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 1pVqPY-0000Qp-To for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:08 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPX-0004wl-A8 for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:08 -0500 Received: by mail-pj1-x1031.google.com with SMTP id q31-20020a17090a17a200b0023750b69614so1535943pja.5 for ; Sat, 25 Feb 2023 01:00:06 -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=K0j6e5TOnG7evsQPOupV4PgXho7BoB1CvcBOE2lotc0tEtWH5HvM29FxYZAlJgZZ9Q /3uwQGt9Ji1pzuyARKYWcIz7B8zz/q9q6j7ekCMQi/5KJjR5NdkPcbnjWS91H6S2Taxs e6h3oUJn7n/xIMmoL1bCp39E7vatgCc2uHEGSor8wUD4yJh3b0xahM8ZWwR1uln4l+Cf oNbp+eGwi7jlVVXwV1AYzbsOux/fMGGilFFANd9qmHF1Rn3AwD0YgCZ5RdgXYCrRI3E0 PZ0zXqDqnmTlVhsyQvWofPICmNKX45MPseo5NraVD49fh96Fd15JgzVSYsFg7KaZeXuz to8w== 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=dKmpU+jH7H1pseFKTmh8naWQgcFkttnMPZtgu2FgpowDoVmk4u74ehkcjJCHUjZRoT xtXh5cITVJ5p3l4k3HGyu9Ohj3gGTL2IoPNeDZVQ52oPlJsrsmiwT8NhzlGJPNwrMVU3 nGDNe1Jvj/iY1tzN4VjhLoLqeb8RNVC+5VMmwmeLMvkBy6Tb4i0Qwoa5wWB+2XMplXoJ nIC/KAw+EQtOAkijchkZJ1NA0xOxWNrapM1nKQXPOdg2yo4q6yFkS8QgwiNum1RMD3VF 6ByA8OS+6dG6+XOiCfZtNIKgXPKv5IMxoU0sm5OOOOt451cwqVGSnV3pUDm83tXkl5aL XfXw== X-Gm-Message-State: AO0yUKWJN9SO/7BZN10NoemGshXkit5CnCCiYck3miKaLtWaQo3bMadh JkkHa0ZLxLhAWMsQfKMx4VHKx55Q3YsPkFwODXw= X-Received: by 2002:a05:6a20:158f:b0:c6:3d79:6360 with SMTP id h15-20020a056a20158f00b000c63d796360mr11744026pzj.2.1677315605660; Sat, 25 Feb 2023 01:00:05 -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 s17-20020a639251000000b00502ecb91940sm715546pgn.55.2023.02.25.01.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 11/30] tcg: Add tcg_gen_movi_ptr Date: Fri, 24 Feb 2023 22:59:26 -1000 Message-Id: <20230225085945.1798188-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230225085945.1798188-1-richard.henderson@linaro.org> References: <20230225085945.1798188-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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) {