diff options
author | Tom Rix <trix@redhat.com> | 2002-02-21 03:57:36 +0000 |
---|---|---|
committer | Tom Rix <trix@redhat.com> | 2002-02-21 03:57:36 +0000 |
commit | ff3a6ee3fde2983018891ca1fd5af50a89393528 (patch) | |
tree | 3aaff208881ee8714f36ae7e956c061d584d64d8 /opcodes/ppc-opc.c | |
parent | 385fa495bfa18b350d21d71e4064359f96599ff0 (diff) | |
download | gdb-ff3a6ee3fde2983018891ca1fd5af50a89393528.zip gdb-ff3a6ee3fde2983018891ca1fd5af50a89393528.tar.gz gdb-ff3a6ee3fde2983018891ca1fd5af50a89393528.tar.bz2 |
XCOFF booke tests. Fix tlbre, tlbwe ppc WS field.
Diffstat (limited to 'opcodes/ppc-opc.c')
-rw-r--r-- | opcodes/ppc-opc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 0d96e03..9ffac52 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -504,6 +504,12 @@ const struct powerpc_operand powerpc_operands[] = /* The SHB field in a VA form instruction. */ #define SHB UIMM + 1 { 4, 6, 0, 0, 0 }, + + /* The WS field. */ +#define WS SHB + 1 +#define WS_MASK (0x7 << 11) + { 3, 11, 0, 0, 0 }, + }; /* The functions used to insert and extract complicated operands. */ @@ -3691,7 +3697,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { { "stdxe", X(31,927), X_MASK, BOOKE64, { RS, RA, RB } }, -{ "tlbre", X(31,946), X_MASK, BOOKE, { RT, RA, SH } }, +{ "tlbre", X(31,946), X_MASK, BOOKE, { RT, RA, WS } }, { "tlbrehi", XTLB(31,946,0), XTLB_MASK, PPC403, { RT, RA } }, { "tlbrelo", XTLB(31,946,1), XTLB_MASK, PPC403, { RT, RA } }, @@ -3712,7 +3718,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { { "tlbwelo", XTLB(31,978,1), XTLB_MASK, PPC403, { RT, RA } }, { "tlbwe", X(31,978), X_MASK, PPC403, { RS, RA, SH } }, -{ "tlbwe", X(31,978), X_MASK, BOOKE, { RT, RA, SH } }, +{ "tlbwe", X(31,978), X_MASK, BOOKE, { RT, RA, WS } }, { "icbi", X(31,982), XRT_MASK, PPC, { RA, RB } }, |