aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2014-03-19 16:43:41 +0000
committerNick Clifton <nickc@redhat.com>2014-03-19 16:43:41 +0000
commitec92c392f7d6b4f43d6191a0d3fa1cd47db9f738 (patch)
tree7943203015b6e657e004ae47702f4c5751ff705d /opcodes
parent999bf65c4b277ffc40dc32f377cf99de0f9684b3 (diff)
downloadgdb-ec92c392f7d6b4f43d6191a0d3fa1cd47db9f738.zip
gdb-ec92c392f7d6b4f43d6191a0d3fa1cd47db9f738.tar.gz
gdb-ec92c392f7d6b4f43d6191a0d3fa1cd47db9f738.tar.bz2
This patch adds support for the hyperprivileged registers %hstick_offset
and %hstick_enable to the Sparc assembler. * config/tc-sparc.c (hpriv_reg_table): Added entries for %hstick_offset and %hstick_enable. * doc/c-sparc.texi (Sparc-Regs): Document the %hstick_offset and %hstick_enable hyperprivileged registers. * sparc-dis.c (v9_hpriv_reg_names): Names for %hstick_offset and %hstick_enable added. * gas/sparc/rdhpr.s: Test rd %hstick_offset and %hstick_enable. * gas/sparc/rdhpr.d: Likewise. * gas/sparc/wrhpr.s: Test wr %hstick_offset and %hstick_enable. * gas/sparc/wrhpr.d: Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/sparc-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 950ff57..2c49663 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-19 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * sparc-dis.c (v9_hpriv_reg_names): Names for %hstick_offset and
+ %hstick_enable added.
+
2014-03-19 Nick Clifton <nickc@redhat.com>
* rx-decode.opc (bwl): Allow for bogus instructions with a size
diff --git a/opcodes/sparc-dis.c b/opcodes/sparc-dis.c
index 38b76f7..db09c44 100644
--- a/opcodes/sparc-dis.c
+++ b/opcodes/sparc-dis.c
@@ -97,7 +97,7 @@ static char *v9_hpriv_reg_names[] =
"resv7", "resv8", "resv9", "resv10", "resv11", "resv12", "resv13",
"resv14", "resv15", "resv16", "resv17", "resv18", "resv19", "resv20",
"resv21", "resv22", "resv23", "resv24", "resv25", "resv26", "resv27",
- "resv28", "resv29", "resv30", "hstick_cmpr"
+ "hstick_offset", "hstick_enable", "resv30", "hstick_cmpr"
};
/* These are ordered according to there register number in