From patchwork Tue Jun 14 05:54:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 635039 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rTJzb6qR5z9t0t for ; Tue, 14 Jun 2016 16:05:47 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b=NmlNd303; dkim-atps=neutral Received: from localhost ([::1]:32853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bChTt-00019g-VJ for incoming@patchwork.ozlabs.org; Tue, 14 Jun 2016 02:05:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bChJX-0007hl-7w for qemu-devel@nongnu.org; Tue, 14 Jun 2016 01:55:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bChJR-0004P9-Je for qemu-devel@nongnu.org; Tue, 14 Jun 2016 01:55:02 -0400 Received: from ozlabs.org ([103.22.144.67]:42207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bChJR-0004On-8h; Tue, 14 Jun 2016 01:54:57 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3rTJl018mlz9t1X; Tue, 14 Jun 2016 15:54:51 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1465883692; bh=/UHMN5hM7Cgsu6PkcDCMBcD2JF5FQTlEzIzcFWJYa+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NmlNd303uSoZD81wz7q1UUPvaqWBIPmNHNGTLMqg9Hu5i4hYAJJmXqlJ9aLFTG8Ol PgLsPXC/KYSW5ndi1MfgDOqSJT3NuOO3il9OXqfsQ6xj+6P1gfbf74xEcrkA0Ewstz mABDHySVawE5JbNukmkc5kHmfuZlFzSalg7WOXeA= From: David Gibson To: peter.maydell@linaro.org Date: Tue, 14 Jun 2016 15:54:48 +1000 Message-Id: <1465883690-8445-7-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465883690-8445-1-git-send-email-david@gibson.dropbear.id.au> References: <1465883690-8445-1-git-send-email-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 103.22.144.67 Subject: [Qemu-devel] [PULL 6/8] Add PowerPC AT_HWCAP2 definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gibson , qemu-ppc@nongnu.org, agraf@suse.de, Anton Blanchard , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Anton Blanchard We need the PPC_FEATURE2_HAS_HTM bit in a subsequent patch, so add the PowerPC AT_HWCAP2 definitions. Signed-off-by: Anton Blanchard Signed-off-by: David Gibson --- include/elf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/elf.h b/include/elf.h index 28d448b..8533b2a 100644 --- a/include/elf.h +++ b/include/elf.h @@ -477,6 +477,19 @@ typedef struct { #define PPC_FEATURE_TRUE_LE 0x00000002 #define PPC_FEATURE_PPC_LE 0x00000001 +/* Bits present in AT_HWCAP2 for PowerPC. */ + +#define PPC_FEATURE2_ARCH_2_07 0x80000000 +#define PPC_FEATURE2_HAS_HTM 0x40000000 +#define PPC_FEATURE2_HAS_DSCR 0x20000000 +#define PPC_FEATURE2_HAS_EBB 0x10000000 +#define PPC_FEATURE2_HAS_ISEL 0x08000000 +#define PPC_FEATURE2_HAS_TAR 0x04000000 +#define PPC_FEATURE2_HAS_VEC_CRYPTO 0x02000000 +#define PPC_FEATURE2_HTM_NOSC 0x01000000 +#define PPC_FEATURE2_ARCH_3_00 0x00800000 +#define PPC_FEATURE2_HAS_IEEE128 0x00400000 + /* Bits present in AT_HWCAP for Sparc. */ #define HWCAP_SPARC_FLUSH 0x00000001