aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@redhat.com>2024-07-19 11:42:16 +0100
committerMaciej W. Rozycki <macro@redhat.com>2024-07-19 11:42:16 +0100
commit0f3e1d2708a0fcc43f4e3c3d1cea92358eb1fc56 (patch)
tree195247a921d6af535c2e0ebfcfd2727132ae4ee4 /include
parente6f05f3659440efbd31c811d262d5af0c3d3849a (diff)
downloadgdb-0f3e1d2708a0fcc43f4e3c3d1cea92358eb1fc56.zip
gdb-0f3e1d2708a0fcc43f4e3c3d1cea92358eb1fc56.tar.gz
gdb-0f3e1d2708a0fcc43f4e3c3d1cea92358eb1fc56.tar.bz2
MIPS/opcodes: Correct documentation for R6 operand types
The "-t", "-u", "-v", and "-w" operand types refer 'rt' operand, which is the target register rather than the source register. Additionally the "-x" and "-y" R6 operand types refer 'rs' rather than 'rt' operand of the BOVC/BNVC and the BEQC/BNEC instructions respectively. Also the "-x" operand type does not permit 'rs' to be the same as 'rt'. Correct inline documentation in opcode/mips.h accordingly.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/mips.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/opcode/mips.h b/include/opcode/mips.h
index 3ef74eb..b4a8c4a 100644
--- a/include/opcode/mips.h
+++ b/include/opcode/mips.h
@@ -984,13 +984,12 @@ mips_opcode_32bit_p (const struct mips_opcode *mo)
"-b" (-131072 .. 131071) << 3 at bit 0
"-d" Same as destination register GP
"-s" 5 bit source register specifier (OP_*_RS) not $0
- "-t" 5 bit source register specifier (OP_*_RT) not $0
- "-u" 5 bit source register specifier (OP_*_RT) greater than OP_*_RS
- "-v" 5 bit source register specifier (OP_*_RT) not $0 not OP_*_RS
- "-w" 5 bit source register specifier (OP_*_RT) less than or equal to OP_*_RS
- "-x" 5 bit source register specifier (OP_*_RT) greater than or
- equal to OP_*_RS
- "-y" 5 bit source register specifier (OP_*_RT) not $0 less than OP_*_RS
+ "-t" 5 bit target register specifier (OP_*_RT) not $0
+ "-u" 5 bit target register specifier (OP_*_RT) greater than OP_*_RS
+ "-v" 5 bit target register specifier (OP_*_RT) not $0 not OP_*_RS
+ "-w" 5 bit target register specifier (OP_*_RT) less than or equal to OP_*_RS
+ "-x" 5 bit source register specifier (OP_*_RS) greater than OP_*_RT
+ "-y" 5 bit source register specifier (OP_*_RS) not $0 less than OP_*_RT
"-A" symbolic offset (-262144 .. 262143) << 2 at bit 0
"-B" symbolic offset (-131072 .. 131071) << 3 at bit 0