From patchwork Mon Jan 30 20:59:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 648601 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp1377714pva; Mon, 30 Jan 2023 13:06:44 -0800 (PST) X-Google-Smtp-Source: AK7set/0bnAEDbtOzpGomnMrmnrwjsetZ8H5GiRn/2gqqqVfaQgBSFVOrwEgUsFoxNNLe8+pjDZw X-Received: by 2002:a05:622a:5c7:b0:3b8:938e:73b3 with SMTP id d7-20020a05622a05c700b003b8938e73b3mr4389128qtb.45.1675112804073; Mon, 30 Jan 2023 13:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675112804; cv=none; d=google.com; s=arc-20160816; b=rApxRUOb3kAaHs5LjKjEYOC3gHI7uUxL/5eGFNDKJBlo1NZGCUst6EZ/EqUtY0DOnQ OuWhE5adOq5F2xPd07/fWZKCh+0vovPNm2jL5QzNis7tl/ZV4Jrei10AG4/q0j04HTRn WDc9kTIFq0CC+R1lpJ+RRUuNNFKFhgW8S0iw2YMpVF4jYPX9LdIjgW0KFiNDWjc0HIH4 5Wb4FS9fryRxM+2xx0E7kzvMGBZo8nslutyDyqW+JyhjzHNW2HkInz2vcqpvb6lkYrDa ifRKAQtPxRG8nxVtRB3ihhcnCnvutWeE4tSsuZ4hNKwDAv5lkA1OBZ9ptKuJi+O8VZpY aHZw== 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=YgVGCieNlPxoyEgaWXSxq/bB4MIJjGptm+RNX2KPXVY=; b=gKsrS0dlYPqf1ArgDylkUhBBEW9Dgd4YUSWYBw7Sdthk+uTuz8uUgvMCkfJAf0f834 5ctngR6h9ZHJqYZKSSMgAmpfDK7H6iQQvfCDSy4/EGLh7lXH+tMw+foQnCzcwnghqgQt QVVH6L4hKLxCdhjbpp3WWdceZhBk6C1L21wLRQde/zusQlQRPHc2iqnsRsIDZUnMmk+d WKc6GOPIQXiHWEodqZ2vHMIgF27C3lhSgCkOxZ74Y0fIFWOVjol6qfxUhxfcOCnKmCQP ILaA6+mbh6Q7fORQ9PNt3z4rmm8L9hIGNCoFQWSj6YNuvRHmsZooz3rCXju2Abydcqjx RI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4qb5gQz; 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 a14-20020a05620a16ce00b007207da73be2si1457738qkn.460.2023.01.30.13.06.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2023 13:06:44 -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=y4qb5gQz; 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 1pMbGH-00006j-5F; Mon, 30 Jan 2023 16:00:21 -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 1pMbFw-0008EJ-3x for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:00 -0500 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMbFu-0005GP-BR for qemu-devel@nongnu.org; Mon, 30 Jan 2023 15:59:59 -0500 Received: by mail-pg1-x530.google.com with SMTP id 7so3671489pgh.7 for ; Mon, 30 Jan 2023 12:59:57 -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=YgVGCieNlPxoyEgaWXSxq/bB4MIJjGptm+RNX2KPXVY=; b=y4qb5gQz1a9K5hNGoGTKmnvScFYL73Vp2HPHu16JeoW+psppiGg0IR53sYnZX8rZZG 2CBB8mXzt48ezKdDGfqNdONpA8TiKNKuawPJEUPrkhzufgF7jRb/kUEB8ivqi/JBRK2v rCg47k2lRex7s4SY6Cyp3dj03POAab9cZhxA0NcMbkqYqa9IGc9c4o2ZKtqKqtVD0Vfu wX4rcZesRkeVfpFZALRVxAaOaijIaP/vSsqhKsn7/QT9YHNS4zMoGgQESQxwhrWUfWcK GsG7RfFEeb2mPYrscmaQXqMvr5XMf6F5Pi/4jGIQCf8UHr0JfrKgXjbRF8eHOsVFA1lO T17Q== 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=YgVGCieNlPxoyEgaWXSxq/bB4MIJjGptm+RNX2KPXVY=; b=Lm059egxpFZeOzoX6Prt/o3uzsObFVbenF3JGC95rc0PEIeJOslb/qdHz9/RL6A2sJ ddnHV7tCHTkJoyL2L1AUTynAHJiZFPIzc5yhIPisPeXXtGhTsS+3ODHWq6mI5boXKzQf /vcdSIiS/2Ut2N1CSRhblu9p0iokwlX119kIpU54Oe/RHoYihiq8wh7Rcw0tH4RnjYhr 4Nz8CrfYoR1WBJMldZq03etjdyM/ih99N5eIPK1EX+kw4cmbzQx+RTlZ4n+5Anj2QLaE yMCVIM2Y3igtg/5Pn4q+94Fp1mr/kkwx7xizfUMh4wIkHCM2z1sg7iBKa0fHZfjt+OgE tQ5A== X-Gm-Message-State: AFqh2koKbzqHXuHPGkESvCkfUxTBC1KPGkiaqTl4nyX2pg+B2xcfb69b XtzH971xHeXve49LuKDvjlkQbdoFeC52mCSx X-Received: by 2002:a62:1488:0:b0:586:b33c:be2 with SMTP id 130-20020a621488000000b00586b33c0be2mr48636969pfu.26.1675112397048; Mon, 30 Jan 2023 12:59:57 -0800 (PST) Received: from stoup.. (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id x10-20020aa79a4a000000b00593eb3a5e44sm102933pfj.37.2023.01.30.12.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 12:59:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, cota@braap.org Subject: [PATCH 10/27] tcg: Add tcg_gen_movi_ptr Date: Mon, 30 Jan 2023 10:59:18 -1000 Message-Id: <20230130205935.1157347-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230130205935.1157347-1-richard.henderson@linaro.org> References: <20230130205935.1157347-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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) {