summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files')
-rw-r--r--emulators/qemu-devel/files/patch-cpu-exec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-cpu-exec.c b/emulators/qemu-devel/files/patch-cpu-exec.c
new file mode 100644
index 000000000000..57229ab351db
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-cpu-exec.c
@@ -0,0 +1,13 @@
+--- a/cpu-exec.c
++++ b/cpu-exec.c
+@@ -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(;;) */
+