From patchwork Thu Jan 14 02:16:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 362799 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp68671jap; Wed, 13 Jan 2021 18:24:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyemU+bFQB1qj+l/7jda3hnC7x2OHnfPvQNzUW2ecaprxfbONJdGHvbeqjzVyIu9aFOO3Jy X-Received: by 2002:a25:d088:: with SMTP id h130mr7007373ybg.442.1610591092160; Wed, 13 Jan 2021 18:24:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610591092; cv=none; d=google.com; s=arc-20160816; b=VfDY/m/gCZ2FQnI890BkRtIyThUe8xz5kfN8VSPObiUq9sfUvdI3iaZTHgCdsOB9aq AuCii8lAqvXGZ7jzvkU/NoL2SmHq2cTLFvuAtJC16A32vc5h3eaR+ltPBnphNRD98eBY tcjwv3xw+/tAc0+qxW3xSmulwcnlMNCbTdAAAws8kFF/yynb6BjxfUbFKu40Zk689zRA re5BWFY38rZKu0FZCEyVTodFz3bPmvOrPHvB50ZdzRuDPpyrdB91vExnvggjGKewol79 zZ2FyeDoas1CQk5I4lxGngtFNYGY50Q9DSejY7L05VbD/JyLhKS9qGGIBZEweeyKOoIp qAeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=AC87R9xtxutHL4s1/n8odbHgwbxpwhaLEHoWjKyBlaU=; b=A00ZKbn/f+b4KOTuowGvGaiPhHoQwEypnrNG6+cPGk9ZxI61z/4HjpjKQI068W22Qp DMbwjjXBy6jjnydu3aic16NHEhYMoyyIN6Oie51hI0rJSkWBEzhJTWO7EBfesIpcpq4P PhuRaIujdQ1RUeQliORefD5lEp7v/zoIC55aeYuETe5A7jxEiOBzZ5tGASHlPtpn1FPV sSLyUFF93zsEQLDTHpe9MfeT4EYXDpl6sv9NsH74rL1XuiCQl2oupWz2DLoI8Q37Mo9a hbbqtRS/A3OkMh2kItjR/4RfDj08qw8kMMhUOuYLcVN9NznK/4kgX0DT2XFyJ5UmYfZs R+VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DjzjC54T; 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 j7si3429387ybt.380.2021.01.13.18.24.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jan 2021 18:24:52 -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=DjzjC54T; 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]:57904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzsJf-00050u-KQ for patch@linaro.org; Wed, 13 Jan 2021 21:24:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzsCE-0003Nt-7U for qemu-devel@nongnu.org; Wed, 13 Jan 2021 21:17:10 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:46393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzsCC-0003PO-1F for qemu-devel@nongnu.org; Wed, 13 Jan 2021 21:17:09 -0500 Received: by mail-pf1-x42f.google.com with SMTP id w2so2435193pfc.13 for ; Wed, 13 Jan 2021 18:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AC87R9xtxutHL4s1/n8odbHgwbxpwhaLEHoWjKyBlaU=; b=DjzjC54TGmJxdQOByP3MvVXBxYbz02nYRtqlhSvX08aWyXqfcQAVvFJ2VdkL4khI1U 12oCg1K5ezCkc3BhK79HyB5UXv0J2mMXcMWEzyU/EJtt2xYINeZbcVQX3xQHd5mb4KpQ bl/S07VcneAPr7Lnrwe2i5LWa2Y528h6k01ecg9GJLIotC+wSp0rgyd3AM5Bp2cI+tf9 t8yDcVnJC/u0132Kphu3v0B60aZ1UTSDjCi3mfBu+WF29by+FwjK9Inm+9ZglFEbUzN7 Wa/argGI+v4n16CN/U8ELhthGDoogvXEtt8KqlI0oHITC56tEVXSaeYn7spRZHO9RmOk dhxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AC87R9xtxutHL4s1/n8odbHgwbxpwhaLEHoWjKyBlaU=; b=iqrRh+BQPmctmfkPeJd//GnEk4fxmcfeeFZwErxgYjuWrtf+JjV0/UHC85dqbNZ80b AUzJ/HKZTN89/ijZrPJeijuAAeAI42Gj2DHwk2mf6SmAq9UbbWiYKZ2CeVPgH90Jsj53 b+qvV5Ikl/eejiCxvV0X9YGfZoOUTOGJoupOfzIwtDEydVpfSMGPHwjpTGg940YQ4RXZ WIiQ6EEijYTl7NGPmdibUpdUXtNCWj03qcUwkinWooPYaZAM2VxGOLNFvff6p4eYYzRz Uaxuivknw8URyFBXgF86Atln8ft4KcjX7mEr25XwRXc6g+4SOG0PsRU4URLlao5fah72 dn5g== X-Gm-Message-State: AOAM533GpraasjJ7yLkNP4qePahv/b/1XnnLbs3FRtqjihyn6t91k6g/ 2lP7p2a1rM/CX+dW9Nrv10g/NafI9ZbhcQ== X-Received: by 2002:a63:50a:: with SMTP id 10mr5027713pgf.273.1610590626558; Wed, 13 Jan 2021 18:17:06 -0800 (PST) Received: from localhost.localdomain (rrcs-173-197-107-21.west.biz.rr.com. [173.197.107.21]) by smtp.gmail.com with ESMTPSA id i7sm3771687pfc.50.2021.01.13.18.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 18:17:06 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 05/24] tcg: Expand TCGTemp.val to 64-bits Date: Wed, 13 Jan 2021 16:16:35 -1000 Message-Id: <20210114021654.647242-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210114021654.647242-1-richard.henderson@linaro.org> References: <20210114021654.647242-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This will reduce the differences between 32-bit and 64-bit hosts, allowing full 64-bit constants to be created with the same interface. Signed-off-by: Richard Henderson --- include/tcg/tcg.h | 2 +- tcg/tcg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 2bdaeaa69c..e7adc7e265 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -506,7 +506,7 @@ typedef struct TCGTemp { unsigned int mem_allocated:1; unsigned int temp_allocated:1; - tcg_target_long val; + int64_t val; struct TCGTemp *mem_base; intptr_t mem_offset; const char *name; diff --git a/tcg/tcg.c b/tcg/tcg.c index e02bb71953..545dd2b0b2 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3176,7 +3176,7 @@ static void dump_regs(TCGContext *s) tcg_target_reg_names[ts->mem_base->reg]); break; case TEMP_VAL_CONST: - printf("$0x%" TCG_PRIlx, ts->val); + printf("$0x%" PRIx64, ts->val); break; case TEMP_VAL_DEAD: printf("D");