qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] (TEST) CFLAGS options + qemu 1.60
@ 2004-07-29 15:10 Leonardo Marques de Souza
  2004-07-29 16:27 ` André Braga
  0 siblings, 1 reply; 5+ messages in thread
From: Leonardo Marques de Souza @ 2004-07-29 15:10 UTC (permalink / raw)
  To: qemu-devel

Host machine: athlon-xp(2200+) 1800MHz
gcc version 3.3.4 (Debian 1:3.3.4-4)
libsdl-dev 1.2.7-7
GNU Make 3.80

-march=pentium (OK) *
-march=k6-2 (OK)
-march=k6-3 (OK) (looking binary it is diferent than k6-2)
-march=k6-3 -m3dnow (OK)
-march=k6-2 -m3dnow (OK)

* OK - > Windows 98SE + IExplorer + updates run OK
+------------------------------------------------------------
-march=athlon -m3dnow (ERROR)
-march=athlon-xp -m3dnow (same ERROR as "athlon" option)


make[1]: Entering directory `/root/qemu-0.6.0/i386'
gcc -Wall -O2 -march=athlon -m3dnow -fno-strict-aliasing
-fomit-frame-pointer -I. -I/root/qemu-0.6.0/target-i386
-I/root/qemu-0.6.0 -D_GNU_SOURCE -I/root/qemu-0.6.0/slirp -c -o helper.o
/root/qemu-0.6.0/target-i386/helper.c
In file included from /root/qemu-0.6.0/target-i386/helper.c:2554:
/root/qemu-0.6.0/softmmu_template.h: In function `slow_ldq_mmu':
/root/qemu-0.6.0/softmmu_template.h:179: error: unable to find a
register to spill in class `GENERAL_REGS'
/root/qemu-0.6.0/softmmu_template.h:179: error: this is the insn:
(insn:HI 173 170 174 6 0x4160ff20 (parallel [
            (set (reg:DI 116)
                (lshiftrt:DI (reg/v:DI 63)
                    (subreg:QI (reg:SI 115) 0)))
            (clobber (scratch:SI))
            (clobber (reg:CC 17 flags))
        ]) 320 {lshrdi3_1} (insn_list 142 (insn_list 170 (nil)))
    (expr_list:REG_DEAD (reg/v:DI 63)
        (expr_list:REG_UNUSED (scratch:SI)
            (expr_list:REG_UNUSED (reg:CC 17 flags)
                (nil)))))
/root/qemu-0.6.0/softmmu_template.h:179: confused by earlier errors,
bailing out
make[1]: *** [helper.o] Error 1
make[1]: Leaving directory `/root/qemu-0.6.0/i386'
make: *** [all] Error 1
root@devel:~/qemu-0.6.0#
+----------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] (TEST) CFLAGS options + qemu 1.60
  2004-07-29 15:10 [Qemu-devel] (TEST) CFLAGS options + qemu 1.60 Leonardo Marques de Souza
@ 2004-07-29 16:27 ` André Braga
  2004-07-29 21:25   ` Leonardo Marques de Souza
  0 siblings, 1 reply; 5+ messages in thread
From: André Braga @ 2004-07-29 16:27 UTC (permalink / raw)
  To: qemu-devel

That's a (now-)known bug... in GCC. =P

It's good to see that more people are fiddling with the CFLAGS :D

BTW, the makefiles are wrong in the sense that they don't respect the
environment-set CFLAGS. I'll send a patch later tonight.



On Thu, 29 Jul 2004 12:10:40 -0300, Leonardo Marques de Souza
<leonardo@ambientebrasil.com.br> wrote:
> Host machine: athlon-xp(2200+) 1800MHz
> gcc version 3.3.4 (Debian 1:3.3.4-4)
> libsdl-dev 1.2.7-7
> GNU Make 3.80
> 
> -march=pentium (OK) *
> -march=k6-2 (OK)
> -march=k6-3 (OK) (looking binary it is diferent than k6-2)
> -march=k6-3 -m3dnow (OK)
> -march=k6-2 -m3dnow (OK)
> 
> * OK - > Windows 98SE + IExplorer + updates run OK
> +------------------------------------------------------------
> -march=athlon -m3dnow (ERROR)
> -march=athlon-xp -m3dnow (same ERROR as "athlon" option)
> 
> make[1]: Entering directory `/root/qemu-0.6.0/i386'
> gcc -Wall -O2 -march=athlon -m3dnow -fno-strict-aliasing
> -fomit-frame-pointer -I. -I/root/qemu-0.6.0/target-i386
> -I/root/qemu-0.6.0 -D_GNU_SOURCE -I/root/qemu-0.6.0/slirp -c -o helper.o
> /root/qemu-0.6.0/target-i386/helper.c
> In file included from /root/qemu-0.6.0/target-i386/helper.c:2554:
> /root/qemu-0.6.0/softmmu_template.h: In function `slow_ldq_mmu':
> /root/qemu-0.6.0/softmmu_template.h:179: error: unable to find a
> register to spill in class `GENERAL_REGS'
> /root/qemu-0.6.0/softmmu_template.h:179: error: this is the insn:
> (insn:HI 173 170 174 6 0x4160ff20 (parallel [
>             (set (reg:DI 116)
>                 (lshiftrt:DI (reg/v:DI 63)
>                     (subreg:QI (reg:SI 115) 0)))
>             (clobber (scratch:SI))
>             (clobber (reg:CC 17 flags))
>         ]) 320 {lshrdi3_1} (insn_list 142 (insn_list 170 (nil)))
>     (expr_list:REG_DEAD (reg/v:DI 63)
>         (expr_list:REG_UNUSED (scratch:SI)
>             (expr_list:REG_UNUSED (reg:CC 17 flags)
>                 (nil)))))
> /root/qemu-0.6.0/softmmu_template.h:179: confused by earlier errors,
> bailing out
> make[1]: *** [helper.o] Error 1
> make[1]: Leaving directory `/root/qemu-0.6.0/i386'
> make: *** [all] Error 1
> root@devel:~/qemu-0.6.0#
> +----------------------------------------------------
> 


-- 
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning"
Rich Cook

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] (TEST) CFLAGS options + qemu 1.60
  2004-07-29 16:27 ` André Braga
@ 2004-07-29 21:25   ` Leonardo Marques de Souza
  2004-07-30 19:13     ` [Qemu-devel] (TEST) CFLAGS options + qemu 0.60 Leonardo Marques de Souza
  0 siblings, 1 reply; 5+ messages in thread
From: Leonardo Marques de Souza @ 2004-07-29 21:25 UTC (permalink / raw)
  To: qemu-devel

Thanks!

Im looking for

I'll try to workarround compilation problem, doing it by hand,
it happens only with help.c (well, all help.c in qemu tree)

enter in i386 , i386-softemu , ppc-softemu
and doing:

gcc -Wall -O2 -march=pentium  -fno-strict-aliasing -fomit-frame-pointer 
-I. -I/root/qemu-0.6.0/target-i386 -I/root/qemu-0.6.0 -D_GNU_SOURCE 
-I/root/qemu-0.6.0/slirp -c -o helper.o 
/root/qemu-0.6.0/target-i386/helper.c

just  return to root tree compilation and do make again to continue.

I will see what instable qemu will be with -regparm=[1..3].  :)



André Braga wrote:

>That's a (now-)known bug... in GCC. =P
>
>It's good to see that more people are fiddling with the CFLAGS :D
>
>BTW, the makefiles are wrong in the sense that they don't respect the
>environment-set CFLAGS. I'll send a patch later tonight.
>
>
>
>On Thu, 29 Jul 2004 12:10:40 -0300, Leonardo Marques de Souza
><leonardo@ambientebrasil.com.br> wrote:
>  
>
>>Host machine: athlon-xp(2200+) 1800MHz
>>gcc version 3.3.4 (Debian 1:3.3.4-4)
>>libsdl-dev 1.2.7-7
>>GNU Make 3.80
>>    
>>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] (TEST) CFLAGS options + qemu 0.60
  2004-07-29 21:25   ` Leonardo Marques de Souza
@ 2004-07-30 19:13     ` Leonardo Marques de Souza
  2004-08-19 10:58       ` Piotr Krysik
  0 siblings, 1 reply; 5+ messages in thread
From: Leonardo Marques de Souza @ 2004-07-30 19:13 UTC (permalink / raw)
  To: qemu-devel

Works great!

so im doing some benchmarks to see any general diference.
i trying PCMark 2002, any other sugestion?
I think the benchmark programs is a good choice to test virtual CPU, becouse
they use a lot of optimized intructions.


Well, when i use -mregpar=x, que qemu made a lot of 'booboos'. Some time 
start,
others guest Win98 and Linux crash...
not recomended for "production" hehe :P


Leonardo Marques de Souza wrote:

> Thanks!
>
> Im looking for
>
> I'll try to workarround compilation problem, doing it by hand,
> it happens only with help.c (well, all help.c in qemu tree)
>
> enter in i386 , i386-softemu , ppc-softemu
> and doing:
>
> gcc -Wall -O2 -march=pentium  -fno-strict-aliasing 
> -fomit-frame-pointer -I. -I/root/qemu-0.6.0/target-i386 
> -I/root/qemu-0.6.0 -D_GNU_SOURCE -I/root/qemu-0.6.0/slirp -c -o 
> helper.o /root/qemu-0.6.0/target-i386/helper.c
>
> just  return to root tree compilation and do make again to continue.
>
> I will see what instable qemu will be with -regparm=[1..3].  :)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] (TEST) CFLAGS options + qemu 0.60
  2004-07-30 19:13     ` [Qemu-devel] (TEST) CFLAGS options + qemu 0.60 Leonardo Marques de Souza
@ 2004-08-19 10:58       ` Piotr Krysik
  0 siblings, 0 replies; 5+ messages in thread
From: Piotr Krysik @ 2004-08-19 10:58 UTC (permalink / raw)
  To: Leonardo Marques de Souza; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

Hi!

You can also try attached patch - I solves similar 
problem with -march=pentium2 (gcc 3.3).


Piotrek

> Leonardo Marques de Souza wrote:
> > Thanks!
> >
> > Im looking for
> >
> > I'll try to workarround compilation problem, 
> > doing it by hand, it happens only with help.c 
> > (well, all help.c in qemu tree)
> >
> > enter in i386 , i386-softemu , ppc-softemu
> > and doing:
> >
> > gcc -Wall -O2 -march=pentium  -fno-strict-aliasing
-fomit-frame-pointer -I.
-I/root/qemu-0.6.0/target-i386  -I/root/qemu-0.6.0
-D_GNU_SOURCE -I/root/qemu-0.6.0/slirp -c -o helper.o
/root/qemu-0.6.0/target-i386/helper.c
> >
> > just  return to root tree compilation and do 
> > make again to continue.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: register_spill-0.txt.gz --]
[-- Type: application/x-tar, Size: 645 bytes --]

[-- Attachment #3: register_spill-0.patch.gz --]
[-- Type: application/x-tar, Size: 1714 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-19 11:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-29 15:10 [Qemu-devel] (TEST) CFLAGS options + qemu 1.60 Leonardo Marques de Souza
2004-07-29 16:27 ` André Braga
2004-07-29 21:25   ` Leonardo Marques de Souza
2004-07-30 19:13     ` [Qemu-devel] (TEST) CFLAGS options + qemu 0.60 Leonardo Marques de Souza
2004-08-19 10:58       ` Piotr Krysik

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).