From 9853f9124c2c61196bfe1223164deb74e7b1e602 Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Mon, 25 Jun 2012 13:33:20 +0000 Subject: [PATCH] --- yaml --- r: 313663 b: refs/heads/master c: 55a5db184667433add3c8136c9e3b27899c79d3c h: refs/heads/master i: 313661: b03a841f11bd349b5380680f280864cfc4a47261 313659: 59dc5b21e5023f1503a25cad59a2149181158959 313655: cd5c7ee366b21f8e0760e5c4bf31953659fcd448 313647: a9b3c2bde6c22b8fe9b58148506370ad529d0973 313631: 1a080ee33b288124308093655500023982a2bc57 313599: 33d50d78adaab6149de11463acdbc9c83d61eddb v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/ppc-opcode.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8b4ec11cb9ca..d40db23fd76f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 178f2ae092a6e70b08bcbf98dc2b7499d8196885 +refs/heads/master: 55a5db184667433add3c8136c9e3b27899c79d3c diff --git a/trunk/arch/powerpc/include/asm/ppc-opcode.h b/trunk/arch/powerpc/include/asm/ppc-opcode.h index 2671a6d9e4a7..7ad07dfbfdf7 100644 --- a/trunk/arch/powerpc/include/asm/ppc-opcode.h +++ b/trunk/arch/powerpc/include/asm/ppc-opcode.h @@ -144,6 +144,10 @@ #define PPC_INST_STBCIX 0x7c0007aa /* macros to insert fields into opcodes */ +#define ___PPC_RA(a) (((a) & 0x1f) << 16) +#define ___PPC_RB(b) (((b) & 0x1f) << 11) +#define ___PPC_RS(s) (((s) & 0x1f) << 21) +#define ___PPC_RT(t) ___PPC_RS(t) #define __PPC_RA(a) (((a) & 0x1f) << 16) #define __PPC_RB(b) (((b) & 0x1f) << 11) #define __PPC_RS(s) (((s) & 0x1f) << 21)