]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
linux-user/sparc: Handle unimplemented flush trap
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 16 Feb 2023 05:45:14 +0000 (19:45 -1000)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 10 Mar 2023 19:45:47 +0000 (20:45 +0100)
For sparc64, TT_UNIMP_FLUSH == TT_ILL_INSN, so this is
already handled.  For sparc32, the kernel uses SKIP_TRAP.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230216054516.1267305-14-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/sparc/cpu_loop.c

index bf7e10216fe1d54231376092d1654ea0b9af641e..093358a39a4a74154834c768a451a7348bc5e0af 100644 (file)
@@ -315,6 +315,9 @@ void cpu_loop (CPUSPARCState *env)
         case TT_NCP_INSN:
             force_sig_fault(TARGET_SIGILL, TARGET_ILL_COPROC, env->pc);
             break;
+        case TT_UNIMP_FLUSH:
+            next_instruction(env);
+            break;
 #endif
         case EXCP_ATOMIC:
             cpu_exec_step_atomic(cs);