From f439c6e8a363bf066214465b9ff212be46758d8c Mon Sep 17 00:00:00 2001 From: Anshuman Khandual Date: Mon, 22 Apr 2013 19:42:40 +0000 Subject: [PATCH] --- yaml --- r: 370819 b: refs/heads/master c: 95213959aefc94f1cfe6718449a8bcdc8df86060 h: refs/heads/master i: 370817: 2d486227428738ed7632f33f0ded0bbadfd58b2f 370815: c15b099ce0b9bde14e1391eb6d0faeeb8cd1570c v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/ppc-opcode.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ff1deced83d6..9b7e44b40243 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e05b9b9e5c10768ffdb5104014d0db0f093b3ac2 +refs/heads/master: 95213959aefc94f1cfe6718449a8bcdc8df86060 diff --git a/trunk/arch/powerpc/include/asm/ppc-opcode.h b/trunk/arch/powerpc/include/asm/ppc-opcode.h index 8752bc8e34a3..0c34e4803499 100644 --- a/trunk/arch/powerpc/include/asm/ppc-opcode.h +++ b/trunk/arch/powerpc/include/asm/ppc-opcode.h @@ -82,6 +82,8 @@ #define __REGA0_R31 31 /* sorted alphabetically */ +#define PPC_INST_BHRBE 0x7c00025c +#define PPC_INST_CLRBHRB 0x7c00035c #define PPC_INST_DCBA 0x7c0005ec #define PPC_INST_DCBA_MASK 0xfc0007fe #define PPC_INST_DCBAL 0x7c2005ec @@ -297,6 +299,12 @@ #define PPC_NAP stringify_in_c(.long PPC_INST_NAP) #define PPC_SLEEP stringify_in_c(.long PPC_INST_SLEEP) +/* BHRB instructions */ +#define PPC_CLRBHRB stringify_in_c(.long PPC_INST_CLRBHRB) +#define PPC_MFBHRBE(r, n) stringify_in_c(.long PPC_INST_BHRBE | \ + __PPC_RT(r) | \ + (((n) & 0x3ff) << 11)) + /* Transactional memory instructions */ #define TRECHKPT stringify_in_c(.long PPC_INST_TRECHKPT) #define TRECLAIM(r) stringify_in_c(.long PPC_INST_TRECLAIM \