diff --git a/src/cpu/core_dyn_x86/decoder.h b/src/cpu/core_dyn_x86/decoder.h index ba03a074..9bdf8514 100644 --- a/src/cpu/core_dyn_x86/decoder.h +++ b/src/cpu/core_dyn_x86/decoder.h @@ -1953,10 +1953,7 @@ restart_prefix: if (!decode.page.invmap) opcode=decode_fetchb(); else { if (decode.page.index<4096) { - if (GCC_UNLIKELY(decode.page.invmap[decode.page.index]>=4)) { - decode.page.index++; - goto illegalopcode; - } + if (GCC_UNLIKELY(decode.page.invmap[decode.page.index]>=4)) goto illegalopcode; opcode=decode_fetchb(); } else { opcode=decode_fetchb();