summaryrefslogtreecommitdiff
path: root/packages/gdb/10.2/0017-opcodes-Fix-the-auxiliary-register-numbers-for-ARC-H.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gdb/10.2/0017-opcodes-Fix-the-auxiliary-register-numbers-for-ARC-H.patch')
-rw-r--r--packages/gdb/10.2/0017-opcodes-Fix-the-auxiliary-register-numbers-for-ARC-H.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/gdb/10.2/0017-opcodes-Fix-the-auxiliary-register-numbers-for-ARC-H.patch b/packages/gdb/10.2/0017-opcodes-Fix-the-auxiliary-register-numbers-for-ARC-H.patch
new file mode 100644
index 0000000..41c0a80
--- /dev/null
+++ b/packages/gdb/10.2/0017-opcodes-Fix-the-auxiliary-register-numbers-for-ARC-H.patch
@@ -0,0 +1,40 @@
+From 3f3e3620f54b17d6ba78046f45e05dffe2bf940d Mon Sep 17 00:00:00 2001
+From: Shahab Vahedi <shahab@synopsys.com>
+Date: Tue, 17 Aug 2021 16:39:26 +0200
+Subject: [PATCH 20/20] opcodes: Fix the auxiliary register numbers for ARC HS
+
+The numbers for the auxiliary registers "tlbindex" and
+"tlbcommand" of ARCv2HS are incorrect. This patch makes
+the following changes to correct that error.
+
+ ,------------.-----------------.---------------.
+ | aux. reg. | old (incorrect) | new (correct) |
+ |------------+-----------------+---------------|
+ | tlbindex | 0x463 | 0x464 |
+ | tlbcommand | 0x464 | 0x465 |
+ `------------^-----------------^---------------'
+
+opcodes/
+2021-08-17 Shahab Vahedi <shahab@synopsys.com>
+
+ * arc-regs.h (DEF): Fix the register numbers.
+
+Will be a part of GDB 11:
+https://sourceware.org/git?p=binutils-gdb.git;a=commit;h=5d9cff510e8c04ded28272ef2121d814f5787a57
+---
+ opcodes/arc-regs.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/opcodes/arc-regs.h
++++ b/opcodes/arc-regs.h
+@@ -346,8 +346,8 @@
+ DEF (0x453, ARC_OPCODE_ARC600, NONE, pwr_ctrl)
+ DEF (0x460, ARC_OPCODE_ARCv2HS, NONE, tlbpd0)
+ DEF (0x461, ARC_OPCODE_ARCv2HS, NONE, tlbpd1)
+-DEF (0x463, ARC_OPCODE_ARCv2HS, NONE, tlbindex)
+-DEF (0x464, ARC_OPCODE_ARCv2HS, NONE, tlbcommand)
++DEF (0x464, ARC_OPCODE_ARCv2HS, NONE, tlbindex)
++DEF (0x465, ARC_OPCODE_ARCv2HS, NONE, tlbcommand)
+ DEF (0x468, ARC_OPCODE_ARCv2HS, NONE, pid)
+ DEF (0x46c, ARC_OPCODE_ARCv2HS, NONE, scratch_data0)
+ DEF (0x500, ARC_OPCODE_ARC700, NONE, aux_vlc_buf_idx)