aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2009-06-11 11:27:58 +0000
committerAnthony Green <green@redhat.com>2009-06-11 11:27:58 +0000
commitf865a31d1ed571ccb8d17653b150e3a30f22b30d (patch)
tree53213b9fa3500e9762839a2a15d4447b6e7c04cc /include
parent1372b818548793632310cb702930171c849f62db (diff)
downloadgdb-f865a31d1ed571ccb8d17653b150e3a30f22b30d.zip
gdb-f865a31d1ed571ccb8d17653b150e3a30f22b30d.tar.gz
gdb-f865a31d1ed571ccb8d17653b150e3a30f22b30d.tar.bz2
Add PC-relative branch instructions to moxie port.
Diffstat (limited to 'include')
-rw-r--r--include/elf/ChangeLog4
-rw-r--r--include/elf/moxie.h1
-rw-r--r--include/opcode/ChangeLog5
-rw-r--r--include/opcode/moxie.h8
4 files changed, 15 insertions, 3 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index ff92f5c..a8821a2 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-11 Anthony Green <green@moxielogic.org>
+
+ * moxie.h (R_MOXIE_PCREL10): New.
+
2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10205
diff --git a/include/elf/moxie.h b/include/elf/moxie.h
index 49781a6..62adab8 100644
--- a/include/elf/moxie.h
+++ b/include/elf/moxie.h
@@ -26,6 +26,7 @@
START_RELOC_NUMBERS (elf_moxie_reloc_type)
RELOC_NUMBER (R_MOXIE_NONE, 0)
RELOC_NUMBER (R_MOXIE_32, 1)
+ RELOC_NUMBER (R_MOXIE_PCREL10, 2)
END_RELOC_NUMBERS (R_MOXIE_max)
#endif /* _ELF_MOXIE_H */
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index df8a7e6..71adbea 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-11 Anthony Green <green@moxielogic.com>
+
+ * moxie.h (MOXIE_F3_PCREL): Define.
+ (moxie_form3_opc_info): Grow.
+
2009-06-06 Anthony Green <green@moxielogic.com>
* moxie.h (MOXIE_F1_M): Define.
diff --git a/include/opcode/moxie.h b/include/opcode/moxie.h
index 0035f5f..e2bc374 100644
--- a/include/opcode/moxie.h
+++ b/include/opcode/moxie.h
@@ -38,7 +38,8 @@
Form 3 instructions also come in different flavors:
- Some have no arguments (MOXIE_F3_NARG). */
+ Some have no arguments (MOXIE_F3_NARG)
+ Some have a 10-bit PC relative operand (MOXIE_F3_PCREL). */
#define MOXIE_F1_NARG 0x100
#define MOXIE_F1_A 0x101
@@ -56,7 +57,8 @@
#define MOXIE_F2_NARG 0x200
#define MOXIE_F2_A8V 0x201
-#define MOXIE_F3_NARG 0x300
+#define MOXIE_F3_NARG 0x300
+#define MOXIE_F3_PCREL 0x301
typedef struct moxie_opc_info_t
{
@@ -67,4 +69,4 @@ typedef struct moxie_opc_info_t
extern const moxie_opc_info_t moxie_form1_opc_info[64];
extern const moxie_opc_info_t moxie_form2_opc_info[4];
-extern const moxie_opc_info_t moxie_form3_opc_info[4];
+extern const moxie_opc_info_t moxie_form3_opc_info[16];