qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 03/11] target/mips: Create report_fault for semihosting


From: Richard Henderson
Subject: Re: [PATCH v4 03/11] target/mips: Create report_fault for semihosting
Date: Sat, 11 Jun 2022 08:53:17 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 6/10/22 08:05, Philippe Mathieu-Daudé wrote:
+static void report_fault(CPUMIPSState *env)
+{
+    int op = env->active_tc.gpr[25];
+    error_report("Fault during UHI operation %d", op);
+    abort();

This is a guest error, no need to debug QEMU internals...
Can we simply exit(1) instead?

How does this debug qemu internals?
It exits with SIGABRT.

I suppose we could exit(1), but we'd want to change the other existing uses of 
abort too.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]