aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ppc-opc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-14 10:52:26 +0000
committerNick Clifton <nickc@redhat.com>2001-09-14 10:52:26 +0000
commit2613489e4e5d9f05074e5ab9d30ea4ee7b228492 (patch)
tree4586416f36ed098a8b76ab7c0c0f95e7ce909d5f /opcodes/ppc-opc.c
parent4008bd9b57091ce8b7b90683d44edd781649e1cb (diff)
downloadgdb-2613489e4e5d9f05074e5ab9d30ea4ee7b228492.zip
gdb-2613489e4e5d9f05074e5ab9d30ea4ee7b228492.tar.gz
gdb-2613489e4e5d9f05074e5ab9d30ea4ee7b228492.tar.bz2
Fix VXA mask bits
Diffstat (limited to 'opcodes/ppc-opc.c')
-rw-r--r--opcodes/ppc-opc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 5cda1a1..9956630 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -1153,10 +1153,10 @@ extract_tbr (insn, invalid)
#define VX_MASK VX(0x3f, 0x7ff)
/* An VA form instruction. */
-#define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x07f))
+#define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x03f))
/* The mask for an VA form instruction. */
-#define VXA_MASK VXA(0x3f, 0x7f)
+#define VXA_MASK VXA(0x3f, 0x3f)
/* An VXR form instruction. */
#define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))