Patchwork avoid unreachable statement after break

login
register
mail settings
Submitter Paolo Bonzini
Date Jan. 15, 2010, 8:41 a.m.
Message ID <1263544861-18416-1-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/42958/
State New
Headers show

Comments

Paolo Bonzini - Jan. 15, 2010, 8:41 a.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 cpu-exec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Anthony Liguori - Jan. 19, 2010, 10:40 p.m.
On 01/15/2010 02:41 AM, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
>    

Applied.  Thanks.

Regards,

Anthony Liguori
> ---
>   cpu-exec.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/cpu-exec.c b/cpu-exec.c
> index 44d45fc..d974141 100644
> --- a/cpu-exec.c
> +++ b/cpu-exec.c
> @@ -316,9 +316,9 @@ int cpu_exec(CPUState *env1)
>   #elif defined(TARGET_M68K)
>                       do_interrupt(0);
>   #endif
> +                    env->exception_index = -1;
>   #endif
>                   }
> -                env->exception_index = -1;
>               }
>
>               if (kvm_enabled()) {
>

Patch

diff --git a/cpu-exec.c b/cpu-exec.c
index 44d45fc..d974141 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -316,9 +316,9 @@  int cpu_exec(CPUState *env1)
 #elif defined(TARGET_M68K)
                     do_interrupt(0);
 #endif
+                    env->exception_index = -1;
 #endif
                 }
-                env->exception_index = -1;
             }
 
             if (kvm_enabled()) {