qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH-for-8.1] linux-user/arm: Do not allocate a commpage at all fo


From: Richard Henderson
Subject: Re: [PATCH-for-8.1] linux-user/arm: Do not allocate a commpage at all for M-profile CPUs
Date: Tue, 11 Jul 2023 22:08:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 7/11/23 16:34, Philippe Mathieu-Daudé wrote:
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
Reported-by: Christophe Lyon<christophe.lyon@linaro.org>
Suggested-by: Richard Henderson<richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  linux-user/elfload.c | 21 +++++++++++++++++----
  1 file changed, 17 insertions(+), 4 deletions(-)

Thanks.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

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