target/tricore: Fix tricore_tr_translate_insn
commitd4881da9b39df183f976349f223231ac1d81087b
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 21 Aug 2019 09:15:10 +0000 (21 11:15 +0200)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Thu, 22 Aug 2019 10:17:01 +0000 (22 12:17 +0200)
treeb87c0c7a98ed22f93a349e446e4cb5eab55fa8f2
parent17ebc8c1047a9c9f07c25585156231d34fd4a682
target/tricore: Fix tricore_tr_translate_insn

we now fetch 2 bytes first, check whether we have a 32 bit insn, and only then
fetch another 2 bytes. We also make sure that a 16 bit insn that still fits
into the current page does not end up in the next page.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target/tricore/translate.c