[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1478076783-2872-3-git-send-email-ravi.bangoria@linux.vnet.ibm.com>
Date: Wed, 2 Nov 2016 14:23:02 +0530
From: Ravi Bangoria <ravi.bangoria@...ux.vnet.ibm.com>
To: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
mpe@...erman.id.au
Cc: benh@...nel.crashing.org, paulus@...ba.org,
lsorense@...lub.uwaterloo.ca, oohall@...il.com,
naveen.n.rao@...ux.vnet.ibm.com, ast@...nel.org,
chris@...troguy.com, aneesh.kumar@...ux.vnet.ibm.com,
bsingharora@...il.com, anton@...ba.org,
paul.gortmaker@...driver.com, bauerman@...ux.vnet.ibm.com,
viro@...iv.linux.org.uk, christophe.leroy@....fr, duwe@....de,
oss@...error.net, Ravi Bangoria <ravi.bangoria@...ux.vnet.ibm.com>
Subject: [PATCH 2/3] powerpc: Add encoding for couple of load/store instructions
These encodings will be used in subsequent patch that test
emulate_step for load/store instructions.
Signed-off-by: Ravi Bangoria <ravi.bangoria@...ux.vnet.ibm.com>
---
arch/powerpc/include/asm/ppc-opcode.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h
index 0132831..a17a09a 100644
--- a/arch/powerpc/include/asm/ppc-opcode.h
+++ b/arch/powerpc/include/asm/ppc-opcode.h
@@ -284,6 +284,13 @@
#define PPC_INST_BRANCH_COND 0x40800000
#define PPC_INST_LBZCIX 0x7c0006aa
#define PPC_INST_STBCIX 0x7c0007aa
+#define PPC_INST_LWZX 0x7c00002e
+#define PPC_INST_LFSX 0x7c00042e
+#define PPC_INST_STFSX 0x7c00052e
+#define PPC_INST_LFDX 0x7c0004ae
+#define PPC_INST_STFDX 0x7c0005ae
+#define PPC_INST_LVX 0x7c0000ce
+#define PPC_INST_STVX 0x7c0001ce
/* macros to insert fields into opcodes */
#define ___PPC_RA(a) (((a) & 0x1f) << 16)
--
1.8.3.1
Powered by blists - more mailing lists