From bca420cb42491fcf79c563ea1f7d6d00ebdd3cb1 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Fri, 22 Jun 2018 07:11:21 +0100 Subject: [PATCH] aarch64-uninit-mem opcodes/ 2018-05-01 Tamar Christina * aarch64-dis.c (aarch64_opcode_decode): Moved memory clear code. Gbp-Pq: Name aarch64-uninit-mem.diff --- opcodes/aarch64-dis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index a7f5cfc83..ad515f233 100644 --- a/opcodes/aarch64-dis.c +++ b/opcodes/aarch64-dis.c @@ -2733,6 +2733,9 @@ aarch64_opcode_decode (const aarch64_opcode *opcode, const aarch64_insn code, assert (opcode && inst); + /* Clear inst. */ + memset (inst, '\0', sizeof (aarch64_inst)); + /* Check the base opcode. */ if ((code & opcode->mask) != (opcode->opcode & opcode->mask)) { @@ -2740,9 +2743,6 @@ aarch64_opcode_decode (const aarch64_opcode *opcode, const aarch64_insn code, goto decode_fail; } - /* Clear inst. */ - memset (inst, '\0', sizeof (aarch64_inst)); - inst->opcode = opcode; inst->value = code; -- 2.30.2