opcodes/ChangeLog:
2015-08-25 Jose E. Marchesi <jose.marchesi@oracle.com>
* sparc-dis.c (print_insn_sparc): Handle the privileged register
%pmcdper.
gas/ChangeLog:
2015-08-25 Jose E. Marchesi <jose.marchesi@oracle.com>
* config/tc-sparc.c (priv_reg_table): New privileged register
%pmcdper.
gas/testsuite/ChangeLog:
2015-08-25 Jose E. Marchesi <jose.marchesi@oracle.com>
* gas/sparc/wrpr.s: Test writing to the privileged %pmcdper
register.
* gas/sparc/wrpr.d: ...and the expected result.
* gas/sparc/rdpr.s: Test reading from the privileged %pmcdper
register.
* gas/sparc/rdpr.d: ...and the expected result.
+2015-08-25 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * config/tc-sparc.c (priv_reg_table): New privileged register
+ %pmcdper.
+
2015-08-21 Nick Clifton <nickc@redhat.com>
PR gas/18581
2015-08-21 Nick Clifton <nickc@redhat.com>
PR gas/18581
{"wstate", 14},
{"fq", 15},
{"gl", 16},
{"wstate", 14},
{"fq", 15},
{"gl", 16},
{"ver", 31},
{"", -1}, /* End marker. */
};
{"ver", 31},
{"", -1}, /* End marker. */
};
+2015-08-25 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * gas/sparc/wrpr.s: Test writing to the privileged %pmcdper
+ register.
+ * gas/sparc/wrpr.d: ...and the expected result.
+ * gas/sparc/rdpr.s: Test reading from the privileged %pmcdper
+ register.
+ * gas/sparc/rdpr.d: ...and the expected result.
+
2015-08-24 Jan Stancek <jstancek@redhat.com>
* gas/i386/intel.s: Add test of disassembly of a potential
2015-08-24 Jan Stancek <jstancek@redhat.com>
* gas/i386/intel.s: Add test of disassembly of a potential
3c: a1 53 c0 00 rdpr %fq, %l0
40: a3 54 00 00 rdpr %gl, %l1
44: a5 57 c0 00 rdpr %ver, %l2
3c: a1 53 c0 00 rdpr %fq, %l0
40: a3 54 00 00 rdpr %gl, %l1
44: a5 57 c0 00 rdpr %ver, %l2
+ 48: a7 55 c0 00 rdpr %pmcdper, %l3
rdpr %fq,%l0
rdpr %gl,%l1
rdpr %ver,%l2
rdpr %fq,%l0
rdpr %gl,%l1
rdpr %ver,%l2
34: 9b 93 80 00 wrpr %sp, %otherwin
38: 9d 93 c0 00 wrpr %o7, %wstate
3c: a1 94 00 00 wrpr %l0, %gl
34: 9b 93 80 00 wrpr %sp, %otherwin
38: 9d 93 c0 00 wrpr %o7, %wstate
3c: a1 94 00 00 wrpr %l0, %gl
+ 40: af 94 c0 00 wrpr %l3, %pmcdper
wrpr %o6,%otherwin
wrpr %o7,%wstate
wrpr %l0,%gl
wrpr %o6,%otherwin
wrpr %o7,%wstate
wrpr %l0,%gl
+2015-08-25 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * sparc-dis.c (print_insn_sparc): Handle the privileged register
+ %pmcdper.
+
2015-08-24 Jan Stancek <jstancek@redhat.com>
* i386-dis.c (print_insn): Fix decoding of three byte operands.
2015-08-24 Jan Stancek <jstancek@redhat.com>
* i386-dis.c (print_insn): Fix decoding of three byte operands.
"tpc", "tnpc", "tstate", "tt", "tick", "tba", "pstate", "tl",
"pil", "cwp", "cansave", "canrestore", "cleanwin", "otherwin",
"wstate", "fq", "gl"
"tpc", "tnpc", "tstate", "tt", "tick", "tba", "pstate", "tl",
"pil", "cwp", "cansave", "canrestore", "cleanwin", "otherwin",
"wstate", "fq", "gl"
- /* "ver" - special cased */
+ /* "ver" and "pmcdper" - special cased */
};
/* These are ordered according to there register number in
};
/* These are ordered according to there register number in
case '?':
if (X_RS1 (insn) == 31)
(*info->fprintf_func) (stream, "%%ver");
case '?':
if (X_RS1 (insn) == 31)
(*info->fprintf_func) (stream, "%%ver");
+ else if (X_RS1 (insn) == 23)
+ (*info->fprintf_func) (stream, "%%pmcdper");
else if ((unsigned) X_RS1 (insn) < 17)
(*info->fprintf_func) (stream, "%%%s",
v9_priv_reg_names[X_RS1 (insn)]);
else if ((unsigned) X_RS1 (insn) < 17)
(*info->fprintf_func) (stream, "%%%s",
v9_priv_reg_names[X_RS1 (insn)]);
- if ((unsigned) X_RD (insn) < 17)
+ if (X_RD (insn) == 23)
+ (*info->fprintf_func) (stream, "%%pmcdper");
+ else if ((unsigned) X_RD (insn) < 17)
(*info->fprintf_func) (stream, "%%%s",
v9_priv_reg_names[X_RD (insn)]);
else
(*info->fprintf_func) (stream, "%%%s",
v9_priv_reg_names[X_RD (insn)]);
else