From: Peter Maydell <peter.maydell@linaro.org>
To: Liviu Ionescu <ilg@livius.net>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: qemu-system-aarch64 hangs in a cortex-a72 test
Date: Mon, 6 Oct 2025 11:45:10 +0100 [thread overview]
Message-ID: <CAFEAcA8DvpFmCPQJNNKkA-K8piRZ_m=FWDmHGF5bGb0uAM4JrA@mail.gmail.com> (raw)
In-Reply-To: <84A761E5-6FF2-45AC-883B-AB441E3894A0@livius.net>
On Mon, 6 Oct 2025 at 11:05, Liviu Ionescu <ilg@livius.net> wrote:
>
>
>
> > On 6 Oct 2025, at 12:55, Peter Maydell <peter.maydell@linaro.org> wrote:
> >
> > Notably 9.0 is the first release which included
> > commit 59754f85ed, which enforces the architectural
> > requirement that when the MMU is disabled unaligned
> > loads and stores must fault.
>
> Ok, this is a good hint, a loop in an exception handler is a very likely cause of the program hanging.
>
> > ... (You should be able
> > to see that in the -d debug logs if it's happening,
> > or via gdbstub if you put a breakpoint on the exception
> > entry point.)
>
> I'll try to run a debug session and see if this is the case, and fix it.
Note that depending on your compiler's config it might assume
unaligned accesses are OK by default (because they are when
the MMU is on for v7 and later CPUs). If that's the case, it's
possible the fix might be as simple as "recompile with the
-mno-unaligned-access option in CFLAGS".
-- PMM
next prev parent reply other threads:[~2025-10-06 10:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-05 16:55 qemu-system-aarch64 hangs in a cortex-a72 test Liviu Ionescu
2025-10-06 9:55 ` Peter Maydell
2025-10-06 10:04 ` Liviu Ionescu
2025-10-06 10:45 ` Peter Maydell [this message]
2025-10-08 20:18 ` Liviu Ionescu
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='CAFEAcA8DvpFmCPQJNNKkA-K8piRZ_m=FWDmHGF5bGb0uAM4JrA@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=ilg@livius.net \
--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).