qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: QEMU Developers <qemu-devel@nongnu.org>
Cc: Richard Henderson <richard.henderson@linaro.org>
Subject: vmovqdu/vmovqda inline asm doesn't compile on macos catalina
Date: Mon, 5 Jun 2023 11:55:43 +0100	[thread overview]
Message-ID: <CAFEAcA8oS7fOr9Ro6Z9G5UW6FbgwTo3BTcGL4ELdVc_G7O5Obg@mail.gmail.com> (raw)

I just noticed that the recent atomicity changes introduce a build
failure on x86 macos (Catalina). Now if we wanted to, we can say "this
is too old and outside our support policy", of course...
(I don't know if newer x86 macos is OK -- this machine can't
upgrade to anything newer than Catalina. So it's due to be
decommissioned pretty soon anyway.)

In file included from ../../accel/tcg/cputlb.c:1673:
In file included from ../../accel/tcg/ldst_atomicity.c.inc:12:
/Users/pm215/src/qemu/host/include/x86_64/host/load-extract-al16-al8.h:38:13:
error: couldn't allocate output register for constraint 'x'
        asm("vmovdqu %1, %0" : "=x" (r.i) : "m" (*ptr_align));
            ^
/Users/pm215/src/qemu/host/include/x86_64/host/load-extract-al16-al8.h:40:13:
error: couldn't allocate output register for constraint 'x'
        asm("vmovdqa %1, %0" : "=x" (r.i) : "m" (*ptr_align));
            ^
In file included from ../../accel/tcg/cputlb.c:34:
In file included from /Users/pm215/src/qemu/include/qemu/atomic128.h:62:
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:31:9:
error: couldn't allocate output register for constraint 'x'
    asm("vmovdqa %1, %0" : "=x" (r.i) : "m" (*ptr));
        ^
In file included from ../../accel/tcg/cputlb.c:1673:
In file included from ../../accel/tcg/ldst_atomicity.c.inc:12:
/Users/pm215/src/qemu/host/include/x86_64/host/load-extract-al16-al8.h:38:13:
error: couldn't allocate output register for constraint 'x'
        asm("vmovdqu %1, %0" : "=x" (r.i) : "m" (*ptr_align));
            ^
/Users/pm215/src/qemu/host/include/x86_64/host/load-extract-al16-al8.h:40:13:
error: couldn't allocate output register for constraint 'x'
        asm("vmovdqa %1, %0" : "=x" (r.i) : "m" (*ptr_align));
            ^
In file included from ../../accel/tcg/cputlb.c:34:
In file included from /Users/pm215/src/qemu/include/qemu/atomic128.h:62:
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:31:9:
error: couldn't allocate output register for constraint 'x'
    asm("vmovdqa %1, %0" : "=x" (r.i) : "m" (*ptr));
        ^
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:31:9:
error: couldn't allocate output register for constraint 'x'
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:31:9:
error: couldn't allocate output register for constraint 'x'
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:55:13:
error: couldn't allocate input reg for constraint 'x'
        asm("vmovdqa %1, %0" : "=m"(*ptr_align) : "x" (new.i));
            ^
In file included from ../../accel/tcg/cputlb.c:1673:
In file included from ../../accel/tcg/ldst_atomicity.c.inc:12:
/Users/pm215/src/qemu/host/include/x86_64/host/load-extract-al16-al8.h:38:13:
error: couldn't allocate output register for constraint 'x'
        asm("vmovdqu %1, %0" : "=x" (r.i) : "m" (*ptr_align));
            ^
/Users/pm215/src/qemu/host/include/x86_64/host/load-extract-al16-al8.h:40:13:
error: couldn't allocate output register for constraint 'x'
        asm("vmovdqa %1, %0" : "=x" (r.i) : "m" (*ptr_align));
            ^
In file included from ../../accel/tcg/cputlb.c:34:
In file included from /Users/pm215/src/qemu/include/qemu/atomic128.h:62:
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:31:9:
error: couldn't allocate output register for constraint 'x'
    asm("vmovdqa %1, %0" : "=x" (r.i) : "m" (*ptr));
        ^
/Users/pm215/src/qemu/host/include/x86_64/host/atomic128-ldst.h:31:9:
error: couldn't allocate output register for constraint 'x'
13 errors generated.

-- PMM


             reply	other threads:[~2023-06-05 10:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05 10:55 Peter Maydell [this message]
2023-06-05 11:29 ` vmovqdu/vmovqda inline asm doesn't compile on macos catalina Daniel P. Berrangé
2023-06-05 12:47   ` Peter Maydell
2023-06-09 11:05 ` Peter Maydell

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=CAFEAcA8oS7fOr9Ro6Z9G5UW6FbgwTo3BTcGL4ELdVc_G7O5Obg@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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).