qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sunil Amitkumar Janki <psychicistnonconformist@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] 0.9.0 and svn don't build with -march=pentium2	etc.; was: Latest SVN fails to build on Fedora Core 6 (same with 0.9.0)
Date: Thu, 22 Mar 2007 21:13:00 +0100	[thread overview]
Message-ID: <4602E34C.3000106@gmail.com> (raw)
In-Reply-To: <20070322204629.5552c047@neuling>

Thomas Orgis wrote:
> Am Sun, 18 Mar 2007 09:18:40 +0000
> schrieb Nigel Horne <njh@bandsman.co.uk>: 
>
>   
>> The first part is true, the second is not, in that I already upgraded
>> to the 686 kernel, so the qemu build on FC6 is not fixed by installing the 686 kernel.
>>     
>
> So, do we have any other clue about this?
> Some qemu coder knows anything about this error?
>
>   
>> /opt/gcc34/bin/gcc -march=pentium2 -Wall -O2 -g -fno-strict-aliasing
>> -fomit-frame-pointer -I. -I.. -I/usr/src/qemu-0.9.0/target-i386
>> -I/usr/src/qemu-0.9.0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
>> -D_LARGEFILE_SOURCE -I/usr/src/qemu-0.9.0/fpu -DHAS_AUDIO
>> -I/usr/src/qemu-0.9.0/slirp  -c -o
>> helper.o /usr/src/qemu-0.9.0/target-i386/helper.c ../softmmu_template.h:
>> In function `__stq_mmu': ../softmmu_template.h:260: error: unable to
>> find a register to spill in class
>> `GENERAL_REGS' ../softmmu_template.h:260: error: this is the insn:
>> (insn:HI 365 364 366 13 ../softmmu_template.h:290 (parallel [ (set
>> (reg:DI 0 ax [216]) (lshiftrt:DI (reg/v:DI 59 [ val ]) (subreg:QI
>> (reg:SI 0 ax [215]) 0))) (clobber (scratch:SI)) (clobber (reg:CC 17
>> flags)) ]) 309 {lshrdi3_1} (insn_list 364 (nil)) (expr_list:REG_DEAD
>> (reg:SI 0 ax [215]) (expr_list:REG_UNUSED (reg:CC 17 flags)
>> (expr_list:REG_UNUSED (scratch:SI) (nil)))))
>> ../softmmu_template.h:260: confused by earlier errors, bailing out
>>     
>
> It is really persistent with any pentium/athlon march setting above
> pentium-mmx and alone with the -msse flag.
> If the answer is "Do Not Use GCC Arch Setting" then it would be nice to
> have it spelled out by someone else than me... of course I'd prefer
> this thing to work;-)
>
>
> Thomas.
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>   
I have seen this error as well when building with i686/pentium3/athlon
optimisations. As I am doing a course on x86 assembly programming
at the moment I can tell you that it suffers from register starvation
and the message tells you that there aren't enough registers left.

That's why I build QEMU on x86 with "-O2 -march=i486 -mtune=i686".

I am not a QEMU developer (yet!) but I am using it at the moment to
emulate SPARC, ARM and MIPS(EL) to build Linux executables natively
in (Slackware) Linux distributions for those architectures.

I hope to start contributing to PPC and Alpha emulation when I understand
more about QEMU's internal architecture.

  reply	other threads:[~2007-03-22 20:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-17 13:37 [Qemu-devel] Latest SVN fails to build on Fedora Core 6 (same with 0.9.0) Thomas Orgis
2007-03-18  4:45 ` Tony Nelson
2007-03-18  8:37   ` Thomas Orgis
2007-03-18  9:18     ` Nigel Horne
2007-03-22 19:46       ` [Qemu-devel] 0.9.0 and svn don't build with -march=pentium2 etc.; was: " Thomas Orgis
2007-03-22 20:13         ` Sunil Amitkumar Janki [this message]
2007-03-23  9:58           ` Thomas Orgis
2007-03-23 10:21             ` Sunil Amitkumar Janki
2007-03-23 15:45               ` Paul Brook
2007-03-23 20:11                 ` Thomas Orgis
2007-03-24 12:32                   ` Sunil Amitkumar Janki
2007-03-24 12:55                     ` Julian Seward
2007-03-26  9:34                       ` Thomas Orgis
2007-03-28 19:56                     ` Rob Landley
2007-03-29 10:55                       ` Thomas Orgis
2007-03-29 14:55                         ` [Qemu-devel] QEMU Alpha target Stuart Brady
2007-03-29 15:08                           ` Paul Brook
2007-03-29 15:12                             ` Stuart Brady
2007-03-29 15:25                               ` Paul Brook
2007-03-29 21:01                                 ` J. Mayer
2007-03-29 15:25                         ` [Qemu-devel] 0.9.0 and svn don't build with -march=pentium2 etc.; was: Latest SVN fails to build on Fedora Core 6 (same with 0.9.0) Sunil Amitkumar Janki
2007-03-29 16:08                           ` Stuart Brady
2007-03-29 19:57                             ` J. Mayer
2007-03-29 20:04                               ` Brian Wheeler
2007-03-29 21:18                               ` [Qemu-devel] QEMU Alpha target Stuart Brady
2007-03-29 21:31                                 ` J. Mayer
2007-03-29 21:57                                   ` Stuart Brady
2007-03-29 21:48                                 ` Thomas Orgis

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=4602E34C.3000106@gmail.com \
    --to=psychicistnonconformist@gmail.com \
    --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).