qemu-devel
[Top][All Lists]
Advanced

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

Re: qemu-hppa-user: crashes immediately in hppa chroot


From: Richard Henderson
Subject: Re: qemu-hppa-user: crashes immediately in hppa chroot
Date: Thu, 29 Aug 2024 12:38:01 +1000
User-agent: Mozilla Thunderbird

On 8/29/24 03:12, Helge Deller wrote:
Hi Richard,

I tested qemu-user from v9.1-rc4 for hppa and noticed that it crashes
immediately when starting a hppa chroot.

I was able to bisect the segfault back to
commit 081a0ed188d8d9d9038f00337d331d185a7ae331
Author: Richard Henderson <richard.henderson@linaro.org>
Date:   Wed Mar 27 13:04:00 2024 -1000
     target/hppa: Do not mask in copy_iaoq_entry

This commit does not apply to git head any longer, but when I instead
apply this (modified) patch the segfault vanishes:

--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -664,6 +664,11 @@ static void copy_iaoq_entry(DisasContext *ctx, TCGv_i64 
dest,
                              const DisasIAQE *src)
  {
      tcg_gen_addi_i64(dest, src->base ? : cpu_iaoq_f, src->disp);
+
+#if CONFIG_USER_ONLY
+    uint64_t mask = gva_offset_mask(ctx->tb_flags);
+    tcg_gen_andi_i64(dest, dest, mask);
+#endif
  }
Any idea or suggestion to fix it?

More specifics are required.

root@stoup:/opt/chroot/hppa/sid# ./qemu-hppa -L . ./bin/echo foo
foo


r~



reply via email to

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