aboutsummaryrefslogtreecommitdiff
path: root/opcodes/or1k-opc.h
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/or1k-opc.h')
-rw-r--r--opcodes/or1k-opc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/or1k-opc.h b/opcodes/or1k-opc.h
index d3d084b..6eec800 100644
--- a/opcodes/or1k-opc.h
+++ b/opcodes/or1k-opc.h
@@ -35,7 +35,7 @@ extern "C" {
#undef CGEN_DIS_HASH_SIZE
#define CGEN_DIS_HASH_SIZE 256
#undef CGEN_DIS_HASH
-#define CGEN_DIS_HASH(buffer, value) (((unsigned char *) (buffer))[0] >> 2)
+#define CGEN_DIS_HASH(buffer, value) ((value >> 26) & 0xff)
/* Check applicability of instructions against machines. */
#define CGEN_VALIDATE_INSN_SUPPORTED