From patchwork Mon Oct 23 18:13:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 737280 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1664836wrl; Mon, 23 Oct 2023 11:16:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtf4/PR8kdtqKZMjriLTFuTXTGkn5AW/x79V98Aw7rGrWaeRxepyy4LQ3Y79MWWaOu0z0v X-Received: by 2002:a05:6808:a1b:b0:3a4:225f:a15b with SMTP id n27-20020a0568080a1b00b003a4225fa15bmr10421331oij.31.1698084969387; Mon, 23 Oct 2023 11:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698084969; cv=none; d=google.com; s=arc-20160816; b=sCSTtHVJmzEdArYM1jXL4DdRPVle/LlfInsQBODv3IwYiHpJ5T2MfQ+CLp61FMtaco unspbU1pFc8N6NyXnhmv3LcOvJxS8FAdLRQo+xyyE4TddsbrkOi2rXsTgaVXgPwpAd7m 6dt+7020fW9i1oKYBg5MlMmc7Kd5RAPrhDSttCVKGWb8eeOwoU3qrAGLLy+6tjIcTv8I pqQKh5uetbHytrXGT43ce6edHER3QAjr108Seu151hmPLI8XZnj9CW0P6VTLog2kHtol C9b2WzeR/N0m5yMSIGkD7DmfDihz9TOlDu3MZ8KG7fWn6zTlFJArMlHRStK+0f/fs9H4 52+A== 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=zU+v3676qRcEsyxppjdiDrJD+V8v/rvklw88kLBv4us=; fh=OTkfrEnbNDInppsfj4HB8z6V33zCj7LOct256XBfW6M=; b=K8KWbVOXKw+j8dJ/0526WgcDtdWArF0ErZku6Y7H/K0qKlzMD3JVHr0xX/8Jk2P+pW PjNW7K8vFvivn1rruEnnp4M6hzfaDlJWSNfh87u7BxOMLC/OuK1RSNEykJkNhBrnsmBQ 2k+wMOcQJUJ0vNqC7QKw6FO9qk2CgVWvyRew/2c9un6ImaViqgyIeGnT5X4ZgeBqhhuG cK9uz/wGrp0gL0pdd9IPfOrkWNdsaYlWwHN9IlPUhCGuFnDyiebGVHVNPDex/ysqMWN9 Qd2rDlH9D/y8vJ8AW5y9rBbHJDWgyo6fwfWqj5l9ObkxEAnwP6Q9w7hIwEfZejmGs075 EZaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=thEWhLrv; 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 ee12-20020a0562140a4c00b0066d36b953f2si5734957qvb.407.2023.10.23.11.16.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2023 11:16:09 -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=thEWhLrv; 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 1quzRG-0005qs-Pk; Mon, 23 Oct 2023 14:14:06 -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 1quzRC-0005iy-Pg for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:14:03 -0400 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quzRB-0008I5-5M for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:14:02 -0400 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5842a94feb2so1970730eaf.0 for ; Mon, 23 Oct 2023 11:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698084839; x=1698689639; darn=nongnu.org; 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=zU+v3676qRcEsyxppjdiDrJD+V8v/rvklw88kLBv4us=; b=thEWhLrvBKwu7FLa/CVVfGnBCoYRTjw9MkS4oe4mtnQl5XA06TilmiEeghPFaCoDSf 0eVnNI0rUjWEOnBNPD5j3lF5ICNBLoNFkA+vFd5jm74PPdTWXU/EgF17rR/TIhlrUwje vNY8WjJ9CYEjFZ6yvouNrHYjTWgc+l3VsUk5r2tuQId5l6Q/6dQjd+xd7c3bglZf9/pv zmMb50p4jVZjmeZbBa2rRuUkB5Ib64QRF8fi6ZXMqsa4WWjZ+c4Kz9y99f6UjZx0DI+P CuetvCRXeV+7BoK+wcXaSC3+w68iYdhQqn6a8y4hImyX+1H0YGVLqp6oXvsJLU1LgF6C mNgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698084839; x=1698689639; 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=zU+v3676qRcEsyxppjdiDrJD+V8v/rvklw88kLBv4us=; b=WGmsr48Q/plRlwi8hZkKkDjJU5xF351Wu/tNjoIeGyWKWppZ2r6MLombJDxVa25ZCY vQANa2lJULdNMuQqxbaoUTM8FoJHtBRotIWYNALQU/T7tfUbFwiz0ubz/8B7VSEYu3BM qMZ6c5YgcJYX797bLrF4RcN2H9w1r5O/V7e1Ag9Dg3MMK3Hg+WB/zpEyVovrjuwYJr2F iDHDbNq/aJrOJJ5Q323CKH7W+Y5Ii1/l1O1CIYT5gEywWcq/7XUchoaH54IDzJeC1kbR rQe+Wl+YsNo/GT3Iss5HXEcGFVJRsMljl8kshQk+Vs3c1QtsMxWVW01XVsQnyuOTELSs RgPQ== X-Gm-Message-State: AOJu0YzpbCV5oPLjiKXSEotUcmgW58t3a5wqtw2lV8C3TZJui9B9YhtE vCtkGDP3DTejM9+khxbmFgGjyb4dVJy+DBPkJ38= X-Received: by 2002:a05:6358:1a9e:b0:168:e3e1:11d5 with SMTP id gm30-20020a0563581a9e00b00168e3e111d5mr2539604rwb.28.1698084839703; Mon, 23 Oct 2023 11:13:59 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id v10-20020a65568a000000b005b83bc255fbsm5205137pgs.71.2023.10.23.11.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:13:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Paolo Bonzini Subject: [PULL v3 32/38] tcg: Define MO_TL Date: Mon, 23 Oct 2023 11:13:23 -0700 Message-Id: <20231023181329.171490-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023181329.171490-1-richard.henderson@linaro.org> References: <20231023181329.171490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c36; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc36.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 From: Paolo Bonzini This will also come in handy later for "less than" comparisons. Signed-off-by: Paolo Bonzini Message-Id: <03ba02fd-fade-4409-be16-2f81a5690b4c@redhat.com> Reviewed-by: Richard Henderson Signed-off-by: Richard Henderson --- include/exec/target_long.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/exec/target_long.h b/include/exec/target_long.h index 93c9472971..3cd8e26a23 100644 --- a/include/exec/target_long.h +++ b/include/exec/target_long.h @@ -29,12 +29,14 @@ typedef uint32_t target_ulong; #define TARGET_FMT_lx "%08x" #define TARGET_FMT_ld "%d" #define TARGET_FMT_lu "%u" +#define MO_TL MO_32 #elif TARGET_LONG_SIZE == 8 typedef int64_t target_long; typedef uint64_t target_ulong; #define TARGET_FMT_lx "%016" PRIx64 #define TARGET_FMT_ld "%" PRId64 #define TARGET_FMT_lu "%" PRIu64 +#define MO_TL MO_64 #else #error TARGET_LONG_SIZE undefined #endif