From nobody Sat Feb 7 09:36:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605721214; cv=none; d=zohomail.com; s=zohoarc; b=DaD5aHotjMdQopKs23CtCifpxfML7JN6CxvHuvc1SkMmtGc+bECzIqjgIXPWpaXn4rSAfVxrbpZt4BZTSL6dVVOiiclX+w7vl/w1jiloxwugIFGG0BrPQz0uFyKN+aWnlFPulRkybUTTrwLHzVm9AS+bg0fypTXGhHn1bzxb0qo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605721214; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zAX6BNx2/73eRaiTZVF3jMcQmT8iXK7qZ7jjbj8BlO4=; b=lihStTVnMfbGQWemEw6oQm6XaELufC+xpzN6J9wCVNh7x/uj/AsR6B2AH9+yd16D+vPNYMDstELOf0c9bjEh/K9Kp8M7x3cLfqJDFFvQ6hBGNPSsa2GQk8Wez5Y8bDuojJ5dIlPHzqUtLgWIPvQveukV1tz/8hDMI7m1javE3vo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605721214770365.02140389637714; Wed, 18 Nov 2020 09:40:14 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-516-ZRsLFH6-Nuu-UxVF5SOBtA-1; Wed, 18 Nov 2020 12:40:11 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 90E1C10CE7B5; Wed, 18 Nov 2020 17:40:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6B9CA5D9E4; Wed, 18 Nov 2020 17:40:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2C1041809CA0; Wed, 18 Nov 2020 17:40:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AIHe04N004353 for ; Wed, 18 Nov 2020 12:40:00 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7AE0219651; Wed, 18 Nov 2020 17:40:00 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-41.ams2.redhat.com [10.36.115.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 972D719482; Wed, 18 Nov 2020 17:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605721213; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zAX6BNx2/73eRaiTZVF3jMcQmT8iXK7qZ7jjbj8BlO4=; b=B1dm+9IJuhVKXK0A8H4mMbboi8kM/bYA07bbOVbjUTPHFUcaBe0kf2M93+98jeywbI8Pin Tsme78bUtWSWILlpmjiDOXRhPOMDcQqK3+JugvFA4GyMMpNnLzIO384ViaHvYz/LPXDHsE LxBWs9wkSX2IR4UzK2oCv14adB7p30E= X-MC-Unique: ZRsLFH6-Nuu-UxVF5SOBtA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 01/10] util: add ARCH_IS_MIPS64 helper macro Date: Wed, 18 Nov 2020 17:39:44 +0000 Message-Id: <20201118173953.576417-2-berrange@redhat.com> In-Reply-To: <20201118173953.576417-1-berrange@redhat.com> References: <20201118173953.576417-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) In most cases logic for MIPS64 and MIPS64EL will be identical. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/util/virarch.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/virarch.h b/src/util/virarch.h index 46b4609dd5..528f84f8a5 100644 --- a/src/util/virarch.h +++ b/src/util/virarch.h @@ -95,6 +95,9 @@ typedef enum { #define ARCH_IS_S390(arch) ((arch) =3D=3D VIR_ARCH_S390 ||\ (arch) =3D=3D VIR_ARCH_S390X) =20 +#define ARCH_IS_MIPS64(arch) ((arch) =3D=3D VIR_ARCH_MIPS64 ||\ + (arch) =3D=3D VIR_ARCH_MIPS64EL) + typedef enum { VIR_ARCH_LITTLE_ENDIAN, VIR_ARCH_BIG_ENDIAN, --=20 2.28.0