From 43c48b72eaa05a0ce9041b747f6d087261f88e8d Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Sat, 6 Oct 2018 04:57:04 -0400 Subject: [PATCH] Initializes i386 prefix value Backports commit 4a86318cf45b7f0b8e01748ce700de1b7688d1e3 from unicorn --- qemu/target/i386/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/target/i386/translate.c b/qemu/target/i386/translate.c index 39a01a63..eb179d76 100644 --- a/qemu/target/i386/translate.c +++ b/qemu/target/i386/translate.c @@ -4946,6 +4946,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu) bool changed_cc_op = false; s->pc_start = s->pc = pc_start; + s->prefix = 0; // end address tells us to stop emulation if (s->pc == s->uc->addr_end) {