From patchwork Fri May 5 21:24:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 679342 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp579762wrs; Fri, 5 May 2023 14:28:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+MHLFcJdOxndGIgd6PP1P87/cCl+TrSTGqHNjTmwuvQVbkmoVaFFY3WdNTE2jblzU6Ucw X-Received: by 2002:a05:622a:11c8:b0:3ef:41aa:3d4c with SMTP id n8-20020a05622a11c800b003ef41aa3d4cmr5024224qtk.31.1683322105639; Fri, 05 May 2023 14:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683322105; cv=none; d=google.com; s=arc-20160816; b=gbtbdif3nyzPg7x6Gy5AJcInZT6Lh/RX9G7ffdA+LhCharkVFp08Umz5qjRrWpoHmD P1LJRcifM0YArHfCpmRTNHMgjfUrEIsnR1BQPVSLCCJHQHAq/3hF5h/kA+b3IPOuR87i 2aPT28/ABrVsDO1oTMQX0Ab9t2bqmX/i6bWMHHy42p0acKnw6C+1+RXZiR8KXWL/uQRq wDb/QoInLjRfKgt5UL2oboySETsi5WsxnXxZW9b6BmF/4qXQQiIE/JPDoWRkvaGvcXjA Di0HLN6Q0zBCS8Q9LMsPwo2Isq8T8MCif0FumfMCGV7rBqgIv7qpCkJa+r7cLbTRAzOG vA/w== 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=Bq2h9X5UNDb637fCQb6pFT3eLaF1A8JaUegXUakX2qE=; b=RUCSxFS4WdXRabqELdKaDYBpy2VVd0UDOhdRYeCMCqjVBNF5aq/eukh88Qdim5n3dn qe2ImR7YKU13PFl5u5F7oBM4/kLQV/m5v33+82NZKkE1m65UTWeP/Sey++BC4u8mlY3P ckVKboUT0ktBJ+4h0rcpMr15AJFlI0hG1Nq7Q/NVINRUn8DASqEfaYmwQneVfW7+2r9J 9Oazj8YSI12DFSJbEbKEixNdw4IxU/NzHdQc+ZH3HnHmJT/Fj1+NDqB0xOapvVM+K4q7 dMCTto9Bqq8sh0HbeZ3HWqA/WAY0nksSGvYS9CMYBz8njA5qhiYpGUaA9EieAjSmOlH4 dOag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OibSM4vE; 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 b10-20020ac87fca000000b003e38c750464si888438qtk.657.2023.05.05.14.28.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 May 2023 14:28:25 -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=pass header.i=@linaro.org header.s=google header.b=OibSM4vE; 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 1pv2va-0000rh-3w; Fri, 05 May 2023 17:25:22 -0400 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 1pv2vX-0000q4-F3 for qemu-devel@nongnu.org; Fri, 05 May 2023 17:25:19 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pv2vP-0004fw-G7 for qemu-devel@nongnu.org; Fri, 05 May 2023 17:25:19 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f1e2555b5aso16256345e9.0 for ; Fri, 05 May 2023 14:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683321910; x=1685913910; 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=Bq2h9X5UNDb637fCQb6pFT3eLaF1A8JaUegXUakX2qE=; b=OibSM4vE2KwV+ScIoiCvrsYDbgSRWzHCgdY3uAPxGJAYTj8crdHJptn27iRPOEuG+e xyhSzmi9AV7HNr1ymbaUnmL/ANTvZ3Pa+qruthJk8fm9yW1n1Vv2c8+Hc8goMr+MGYjQ eEc0R9hLgi8B5hAELMzcUpJ6SRaaUy85w1B3J4zH99ilNIqpA5nR1JLbqIa9HFIKg1G7 bW50P+A6nRDwkBulD/pxm//VcqPn6W+ftFj6Yw6zYfjZSNGY66CL1rCT5VubSwUpmk2c DWlCc0LJ0X75exZnvBG9JKLsySxe6w1Rrwllazipde6YAQxJzeQP79+wH7bNNKojuE4V GuZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683321910; x=1685913910; 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=Bq2h9X5UNDb637fCQb6pFT3eLaF1A8JaUegXUakX2qE=; b=DEqK6pp78/DGbxBTYI6WjuozOOa5gX9MUPTSfIi2yJJ9po2LJPq+vfNdQ59OvuZ9jj 85FQ6a4IXzb7F9aLvjux3vdSl0p7zjoDmwEgGLr+vmhdHGtDiwfOsUXHskL5vE4linQm zkJqdOi2bUfuWDxVpDgS6beFUC//x91w3yNB3w7/T8d15e9fsXhdDQo0fBRcWjdbRVYZ qRjZ8B6jD7QWHquK1jz2I/xqPjSBR+B9AVIFYjTnGaARLpDx4r7jQ66CtB41VZehlJpD OiODE7n4nCiR86E9a/cISO+DvzHiX3lp3zqDU8vhI/wvDYy78mL8E6lA/2DiijJRjQud ttbQ== X-Gm-Message-State: AC+VfDxEB7b2B3XElRcekqaHR95Kc7n0nhhhCI8qOiynQEiyUZ2XsQo/ 4zV3z++gLAsxSnHXRMSO5SKFnALkihWPVsfn+O2lwg== X-Received: by 2002:a7b:c38c:0:b0:3f4:e5c:794 with SMTP id s12-20020a7bc38c000000b003f40e5c0794mr1957297wmj.3.1683321910150; Fri, 05 May 2023 14:25:10 -0700 (PDT) Received: from stoup.. ([212.241.182.8]) by smtp.gmail.com with ESMTPSA id t14-20020a5d460e000000b003047ae72b14sm3426709wrq.82.2023.05.05.14.25.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 14:25:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 38/42] tcg/sparc64: Pass TCGType to tcg_out_qemu_{ld,st} Date: Fri, 5 May 2023 22:24:43 +0100 Message-Id: <20230505212447.374546-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230505212447.374546-1-richard.henderson@linaro.org> References: <20230505212447.374546-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x32f.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, T_SCC_BODY_TEXT_LINE=-0.01 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 We need to set this in TCGLabelQemuLdst, so plumb this all the way through from tcg_out_op. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/sparc64/tcg-target.c.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/sparc64/tcg-target.c.inc b/tcg/sparc64/tcg-target.c.inc index dbe4bf96b9..7e6466d3b6 100644 --- a/tcg/sparc64/tcg-target.c.inc +++ b/tcg/sparc64/tcg-target.c.inc @@ -1178,7 +1178,7 @@ static const int qemu_st_opc[(MO_SIZE | MO_BSWAP) + 1] = { }; static void tcg_out_qemu_ld(TCGContext *s, TCGReg data, TCGReg addr, - MemOpIdx oi, bool is_64) + MemOpIdx oi, TCGType data_type) { MemOp memop = get_memop(oi); tcg_insn_unit *label_ptr; @@ -1636,10 +1636,10 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, break; case INDEX_op_qemu_ld_i32: - tcg_out_qemu_ld(s, a0, a1, a2, false); + tcg_out_qemu_ld(s, a0, a1, a2, TCG_TYPE_I32); break; case INDEX_op_qemu_ld_i64: - tcg_out_qemu_ld(s, a0, a1, a2, true); + tcg_out_qemu_ld(s, a0, a1, a2, TCG_TYPE_I64); break; case INDEX_op_qemu_st_i32: tcg_out_qemu_st(s, a0, a1, a2, TCG_TYPE_I32);