Skip to contentSkip to conversation

(TEST) CFLAGS options + qemu 1.60

Qemu-devel Leonardo Marques de Souza 3 participants 5 messages Jul 29, 2004 – Aug 19, 2004

lore
Share & tools
lore
#0 lore raw

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#
+----------------------------------------------------

#1 lore raw

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.

Quoted 45 lines · Leonardo Marques de Souza

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

(quoted diff) +0 -5
-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
+------------------------------------------------------------

(quoted diff) +0 -2
-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

(quoted diff) +0 -2
-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#
+----------------------------------------------------

Signature · 4 lines
"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
#2 lore raw

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

Quoted 19 lines · André Braga

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.

Quoted 6 lines · Leonardo Marques de Souza

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

#3 lore raw

Re: [Qemu-devel] (TEST) CFLAGS options + qemu 0.60

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

Quoted 18 lines · Leonardo Marques de Souza

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

(quoted diff) +0 -2
-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]. :)

#4 lore raw

Re: [Qemu-devel] (TEST) CFLAGS options + qemu 0.60

Hi!

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

Piotrek

Quoted 5 lines
Quoted 4 lines · Leonardo Marques de Souza

Thanks!

Im looking for

Quoted 8 lines
Quoted 8 lines

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

Quoted 3 lines
Quoted 3 lines

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