summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-11-18 22:27:54 +0000
committermpi <mpi@openbsd.org>2014-11-18 22:27:54 +0000
commit11a30b8ce02bf5174b39dcdd2c2a9e0e51c65536 (patch)
tree104de063c12a2540f85e88e4775435cf5c1e8cc7
parentadd crypt_newhash to NAME and add an MLINK; (diff)
downloadwireguard-openbsd-11a30b8ce02bf5174b39dcdd2c2a9e0e51c65536.tar.xz
wireguard-openbsd-11a30b8ce02bf5174b39dcdd2c2a9e0e51c65536.zip
Recognize dcbzl, backported from binutils-2.17.
ok miod@, deraadt@
-rw-r--r--gnu/usr.bin/binutils/opcodes/ppc-opc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/opcodes/ppc-opc.c b/gnu/usr.bin/binutils/opcodes/ppc-opc.c
index 2d0dee56883..17949dbc1c8 100644
--- a/gnu/usr.bin/binutils/opcodes/ppc-opc.c
+++ b/gnu/usr.bin/binutils/opcodes/ppc-opc.c
@@ -1585,6 +1585,9 @@ extract_tbr (unsigned long insn,
/* An XRTRA_MASK, but with L bit clear. */
#define XRTLRA_MASK (XRTRA_MASK & ~((unsigned long) 1 << 21))
+/* An X form instruction with the L bit specified. */
+#define XOPL(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21))
+
/* An X form comparison instruction. */
#define XCMPL(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21))
@@ -4303,6 +4306,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
{ "tlbli", X(31,1010), XRTRA_MASK, PPC, { RB } },
+{ "dcbzl", XOPL(31,1014,1), XRT_MASK,POWER4, { RA, RB } },
{ "dcbz", X(31,1014), XRT_MASK, PPC, { RA, RB } },
{ "dclz", X(31,1014), XRT_MASK, PPC, { RA, RB } },