On 7/16/23 19:13, Michael Tokarev wrote:
15.07.2023 16:53, Richard Henderson wrote:
From: Philippe Mathieu-Daudé <phi...@linaro.org>

Since commit fbd3c4cff6 ("linux-user/arm: Mark the commpage
executable") executing bare-metal (linked with rdimon.specs)
cortex-M code fails as:

   $ qemu-arm -cpu cortex-m3 ~/hello.exe.m3
   qemu-arm: ../../accel/tcg/user-exec.c:492: page_set_flags: Assertion `last <= GUEST_ADDR_MAX' failed.
   Aborted (core dumped)

Commit 4f5c67f8df ("linux-user/arm: Take more care allocating
commpage") already took care of not allocating a commpage for
M-profile CPUs, however it had to be reverted as commit 6cda41daa2.

Re-introduce the M-profile fix from commit 4f5c67f8df.

Fixes: fbd3c4cff6 ("linux-user/arm: Mark the commpage executable")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1755

This smells like a 8.0-stable material.  Please let me know if it is no.
Thanks,

Seems reasonable.


r~


Reply via email to