qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v5 07/31] target/arm: Use cpu_abort in assert_hflags_rebuild_


From: Peter Maydell
Subject: Re: [PATCH v5 07/31] target/arm: Use cpu_abort in assert_hflags_rebuild_correctly
Date: Tue, 20 Apr 2021 10:07:40 +0100

On Mon, 19 Apr 2021 at 21:36, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Using cpu_abort takes care of things like unregistering a
> SIGABRT handler for user-only.

I would find this argument more persuasive if we didn't have a
ton of other places where we call abort() or assert() or
g_assert_not_reached(). Either we should have a consistent
mechanism for assertions in linux-user turning off the SIGABRT
handler, or we should just not worry about it on the basis that it's
a "can't happen" error anyway...

thanks
-- PMM



reply via email to

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