Revision ed968ff1
b/configure | ||
---|---|---|
32 | 32 |
prefix="" |
33 | 33 |
interp_prefix="/usr/gnemul/qemu-%M" |
34 | 34 |
static="no" |
35 |
sparc_cpu="" |
|
35 | 36 |
cross_prefix="" |
36 | 37 |
cc="gcc" |
37 | 38 |
audio_drv_list="" |
... | ... | |
61 | 62 |
--sparc_cpu=*) |
62 | 63 |
sparc_cpu="$optarg" |
63 | 64 |
case $sparc_cpu in |
64 |
v7|v8) |
|
65 |
CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__ $CFLAGS" |
|
66 |
LDFLAGS="-m32 $LDFLAGS" |
|
67 |
cpu="sparc" |
|
68 |
;; |
|
69 |
v8plus|v8plusa) |
|
70 |
CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" |
|
71 |
LDFLAGS="-m32 $LDFLAGS" |
|
65 |
v7|v8|v8plus|v8plusa) |
|
72 | 66 |
cpu="sparc" |
73 | 67 |
;; |
74 | 68 |
v9) |
75 |
CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" |
|
76 |
LDFLAGS="-m64 $LDFLAGS" |
|
77 | 69 |
cpu="sparc64" |
78 | 70 |
;; |
79 | 71 |
*) |
... | ... | |
551 | 543 |
# |
552 | 544 |
host_guest_base="no" |
553 | 545 |
case "$cpu" in |
554 |
sparc) if test -z "$sparc_cpu" ; then |
|
555 |
CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_v8plus__ $CFLAGS" |
|
556 |
LDFLAGS="-m32 $LDFLAGS" |
|
557 |
fi |
|
558 |
CFLAGS="-ffixed-g2 -ffixed-g3 $CFLAGS" |
|
546 |
sparc) case $sparc_cpu in |
|
547 |
v7|v8) |
|
548 |
CFLAGS="-mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__ $CFLAGS" |
|
549 |
;; |
|
550 |
v8plus|v8plusa) |
|
551 |
CFLAGS="-mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" |
|
552 |
;; |
|
553 |
*) # sparc_cpu not defined in the command line |
|
554 |
CFLAGS="-mcpu=ultrasparc -D__sparc_v8plus__ $CFLAGS" |
|
555 |
esac |
|
556 |
LDFLAGS="-m32 $LDFLAGS" |
|
557 |
CFLAGS="-m32 -ffixed-g2 -ffixed-g3 $CFLAGS" |
|
559 | 558 |
if test "$solaris" = "no" ; then |
560 |
CFLAGS="-ffixed-g1 -ffixed-g6 $CFLAGS"
|
|
559 |
CFLAGS="-ffixed-g1 -ffixed-g6 $CFLAGS" |
|
561 | 560 |
fi |
562 | 561 |
;; |
563 |
sparc64) if test -z "$sparc_cpu" ; then |
|
564 |
CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__ $CFLAGS" |
|
565 |
LDFLAGS="-m64 $LDFLAGS" |
|
566 |
fi |
|
567 |
if test "$solaris" = "no" ; then |
|
568 |
CFLAGS="-ffixed-g5 -ffixed-g6 -ffixed-g7 $CFLAGS" |
|
569 |
else |
|
570 |
CFLAGS="-ffixed-g1 -ffixed-g5 -ffixed-g6 -ffixed-g7 $CFLAGS" |
|
562 |
sparc64) |
|
563 |
CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__ $CFLAGS" |
|
564 |
LDFLAGS="-m64 $LDFLAGS" |
|
565 |
CFLAGS="-ffixed-g5 -ffixed-g6 -ffixed-g7 $CFLAGS" |
|
566 |
if test "$solaris" != "no" ; then |
|
567 |
CFLAGS="-ffixed-g1 $CFLAGS" |
|
571 | 568 |
fi |
572 | 569 |
;; |
573 | 570 |
s390) |
Also available in: Unified diff