aboutsummaryrefslogtreecommitdiff
path: root/opcodes/s390-opc.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-09-07 10:25:58 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-09-09 14:10:33 +0200
commitd660d56578248bf3bb56150295cecc763f112061 (patch)
tree12b4568050ca5a1e8d06ebbae9e5bc7aa5eae48f /opcodes/s390-opc.c
parentc694bafc0bc795a63e607689cc35ad44047790e6 (diff)
downloadgdb-d660d56578248bf3bb56150295cecc763f112061.zip
gdb-d660d56578248bf3bb56150295cecc763f112061.tar.gz
gdb-d660d56578248bf3bb56150295cecc763f112061.tar.bz2
S/390: Remove trailing zeros on 4-bytes opcodes.
This is a NOP change only relevant when reading the file or parsing it with other tools. opcodes/ChangeLog: 2015-09-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * s390-opc.c: Add OP32 definition. * s390-opc.txt: Reduce the opcode padding of some extended mnemonics from 6 to the actual length (which is 4).
Diffstat (limited to 'opcodes/s390-opc.c')
-rw-r--r--opcodes/s390-opc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c
index befd171..2315f0b 100644
--- a/opcodes/s390-opc.c
+++ b/opcodes/s390-opc.c
@@ -256,6 +256,8 @@ const struct s390_operand s390_operands[] =
/* 8/16/48 bit opcodes. */
#define OP8(x) { x, 0x00, 0x00, 0x00, 0x00, 0x00 }
#define OP16(x) { x >> 8, x & 255, 0x00, 0x00, 0x00, 0x00 }
+#define OP32(x) { x >> 24, (x >> 16) & 255, (x >> 8) & 255, x & 255, \
+ 0x00, 0x00 }
#define OP48(x) { x >> 40, (x >> 32) & 255, (x >> 24) & 255, \
(x >> 16) & 255, (x >> 8) & 255, x & 255}