diff options
author | Juergen Lock <qemu-l@jelal.kn-bremen.de> | 2013-10-03 16:09:37 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-10-07 11:46:58 +0200 |
commit | 6c78f29a2424622bfc9c30dfbbc13404481eacb6 (patch) | |
tree | a7bdd2672e255d594af37e926ae197f49877cf09 /cpu-exec.c | |
parent | f8e6a11aecc96e9d8a84f17d7c07019471714e20 (diff) | |
download | qemu-6c78f29a2424622bfc9c30dfbbc13404481eacb6.zip qemu-6c78f29a2424622bfc9c30dfbbc13404481eacb6.tar.gz qemu-6c78f29a2424622bfc9c30dfbbc13404481eacb6.tar.bz2 |
cpu-exec: Also reload CPUClass *cc after longjmp return in cpu_exec()
Local variable CPUClass *cc needs to be reloaded after return from longjmp,
too. (This fixes a mips-softmmu crash observed on FreeBSD when QEMU is
built with clang.)
Reported-by: Dimitry Andric <dim@FreeBSD.org>
Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -681,6 +681,10 @@ int cpu_exec(CPUArchState *env) * local variables as longjmp is marked 'noreturn'. */ cpu = current_cpu; env = cpu->env_ptr; +#if !(defined(CONFIG_USER_ONLY) && \ + (defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X))) + cc = CPU_GET_CLASS(cpu); +#endif } } /* for(;;) */ |