From c9f4bd27cca3589592aa72ea3290b53e44befa3d Mon Sep 17 00:00:00 2001 From: farmdve Date: Mon, 11 Jan 2016 18:11:31 +0200 Subject: [PATCH] Reset env->invalid_error before executing a translation block. --- qemu/cpu-exec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/cpu-exec.c b/qemu/cpu-exec.c index ca3f69ea..5a1f3798 100644 --- a/qemu/cpu-exec.c +++ b/qemu/cpu-exec.c @@ -92,6 +92,7 @@ int cpu_exec(struct uc_struct *uc, CPUArchState *env) // qq cc->cpu_exec_enter(cpu); cpu->exception_index = -1; + env->invalid_error = UC_ERR_OK; /* prepare setjmp context for exception handling */ for(;;) {