target-arm: Fix aarch64 disas_ldst_single_struct

We add s->be_data within do_vec_ld/st. Adding it here means that
we have the wrong bits set in SIZE for a big-endian host, leading
to g_assert_not_reached in write_vec_element and read_vec_element.

Backports commit 74b13f92c2428abae41a61c46a5cf47545da5fcb from qemu
This commit is contained in:
Richard Henderson 2018-03-01 09:34:27 -05:00 committed by Lioncash
parent 560515941a
commit ce9dca9c5e
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2886,9 +2886,9 @@ static void disas_ldst_single_struct(DisasContext *s, uint32_t insn)
} else {
/* Load/store one element per register */
if (is_load) {
do_vec_ld(s, rt, index, tcg_addr, s->be_data + scale);
do_vec_ld(s, rt, index, tcg_addr, scale);
} else {
do_vec_st(s, rt, index, tcg_addr, s->be_data + scale);
do_vec_st(s, rt, index, tcg_addr, scale);
}
}
tcg_gen_addi_i64(tcg_ctx, tcg_addr, tcg_addr, ebytes);