qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH v4 03/11] target/mips: Create report_fault for semihosting
Date: Sat, 11 Jun 2022 08:53:17 -0700	[thread overview]
Message-ID: <1fd59fa5-3da7-234f-fa23-eac6d79b8b76@linaro.org> (raw)
In-Reply-To: <1cfdf6db-791b-1d4c-29ac-4248a917e273@amsat.org>

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	other threads:[~2022-06-11 15:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08  5:19 [PATCH v4 00/11] target/mips: semihosting cleanup Richard Henderson
2022-06-08  5:19 ` [PATCH v4 01/11] target/mips: Use an exception for semihosting Richard Henderson
2022-06-10 15:07   ` Philippe Mathieu-Daudé via
2022-06-08  5:19 ` [PATCH v4 02/11] target/mips: Add UHI errno values Richard Henderson
2022-06-10 15:07   ` Philippe Mathieu-Daudé via
2022-06-08  5:19 ` [PATCH v4 03/11] target/mips: Create report_fault for semihosting Richard Henderson
2022-06-10 15:05   ` Philippe Mathieu-Daudé via
2022-06-11 15:53     ` Richard Henderson [this message]
2022-06-08  5:19 ` [PATCH v4 04/11] target/mips: Drop link syscall from semihosting Richard Henderson
2022-06-08  5:19 ` [PATCH v4 05/11] target/mips: Drop pread and pwrite syscalls " Richard Henderson
2022-06-10 15:07   ` Philippe Mathieu-Daudé via
2022-06-08  5:19 ` [PATCH v4 06/11] target/mips: Use semihosting/syscalls.h Richard Henderson
2022-06-08  5:19 ` [PATCH v4 07/11] target/mips: Avoid qemu_semihosting_log_out for UHI_plog Richard Henderson
2022-06-08  5:19 ` [PATCH v4 08/11] target/mips: Use error_report for UHI_assert Richard Henderson
2022-06-10 15:10   ` Philippe Mathieu-Daudé via
2022-06-08  5:19 ` [PATCH v4 09/11] semihosting: Remove qemu_semihosting_log_out Richard Henderson
2022-06-10 15:11   ` Philippe Mathieu-Daudé via
2022-06-08  5:19 ` [PATCH v4 10/11] target/mips: Simplify UHI_argnlen and UHI_argn Richard Henderson
2022-06-08  5:19 ` [PATCH v4 11/11] target/mips: Remove GET_TARGET_STRING and FREE_TARGET_STRING Richard Henderson
2022-06-10 15:12   ` Philippe Mathieu-Daudé via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1fd59fa5-3da7-234f-fa23-eac6d79b8b76@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=f4bug@amsat.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).