target-arm/translate-a64.c: Use extract32 in disas_ldst_reg_imm9

Use extract32 instead of open coding the bit masking when decoding
is_signed and is_extended. This streamlines the decoding with some
of the other ldst variants.

No functional change.

Backports commit 026a19c3128678d4fe301fc36e8ffacdc9ecccb8 from qemu
This commit is contained in:
Edgar E. Iglesias 2018-02-23 20:04:08 -05:00 committed by Lioncash
parent 56e9d7c09e
commit 602e9e34b9
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2173,8 +2173,8 @@ static void disas_ldst_reg_imm9(DisasContext *s, uint32_t insn)
return;
}
is_store = (opc == 0);
is_signed = opc & (1<<1);
is_extended = (size < 3) && (opc & 1);
is_signed = extract32(opc, 1, 1);
is_extended = (size < 3) && extract32(opc, 0, 1);
}
switch (idx) {