From: Thiemo Seufer <ths@networkno.de>
To: l_indien@magic.fr, qemu-devel@nongnu.org
Cc: thayne@c2.net
Subject: Re: [Qemu-devel] [PATCH] target_posix_types.h
Date: Wed, 14 Nov 2007 17:36:55 +0000 [thread overview]
Message-ID: <20071114173655.GQ8363@networkno.de> (raw)
In-Reply-To: <1195057546.21958.56.camel@jma4.dev.netgem.com>
Jocelyn Mayer wrote:
>
> On Wed, 2007-11-14 at 08:59 -0700, Thayne Harbaugh wrote:
> > This patch, 44_target_posix_types.patch provides target specific posix
> > types. These types improve target structure creation, code similarity
> > to kernel code and improve type casting for assignment between target
> > and host.
>
> Hi,
>
> This seems not OK for ppc/ppc64. There is no ppc64 subdirectory anymore
> in the linux-user directory. ppc and ppc64 targets have been merged, as
> it is in recent kernels, so all the definitions should go in the ppc
> subdirectory, using #ifdef TARGET_PPC64 when there are differences; but
> there should be very few: there are only 2 ifdef __powerpc64__ in the
> linux-2.6.23/include/asm-powerpc/posix_types.h file.
I figure some conditionals went missing, on 32-bit Linux/ppc it fails to
compile.
Thiemo
[...]
gcc-3.4 -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-gcse -fno-optimize-sibling-calls -fno-crossjumping -fno-align-labels -fno-align-jumps -fno-align-functions -I. -I.. -I/home/ths/qemu/qemu-write/target-ppc -I/home/ths/qemu/qemu-write -MMD -MP -DNEED_CPU_H -I/home/ths/qemu/qemu-write/linux-user -I/home/ths/qemu/qemu-write/linux-user/ppc -D__powerpc__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/ths/qemu/qemu-write/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/ths/qemu/qemu-write/slirp -c -o op.o /home/ths/qemu/qemu-write/target-ppc/op.c
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:30:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr0':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr0':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:33:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr1':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr1':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:36:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr2':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr2':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:39:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr3':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr3':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:42:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr4':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr4':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:45:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr5':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr5':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:48:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr6':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr6':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:51:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr7':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr7':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:54:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr8':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr8':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:57:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr9':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr9':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:60:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr10':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr10':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:63:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr11':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr11':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:66:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr12':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr12':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:69:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr13':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr13':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:72:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr14':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr14':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:75:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr15':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr15':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:78:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr16':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr16':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:81:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr17':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr17':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:84:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr18':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr18':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:87:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr19':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr19':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:90:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr20':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr20':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:93:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr21':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr21':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:96:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr22':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr22':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:99:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr23':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr23':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:102:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr24':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr24':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:105:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr25':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr25':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:108:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr26':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr26':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:111:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr27':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr27':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:114:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr28':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr28':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:117:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr29':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr29':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:120:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr30':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr30':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
In file included from /home/ths/qemu/qemu-write/target-ppc/op.c:123:
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T0_gpr64_gpr31':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:85: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op_template.h: In function `op_store_T1_gpr64_gpr31':
/home/ths/qemu/qemu-write/target-ppc/op_template.h:92: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_splatw_T1_64':
/home/ths/qemu/qemu-write/target-ppc/op.c:2726: warning: left shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_sli32_T1_64':
/home/ths/qemu/qemu-write/target-ppc/op.c:2760: warning: left shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_srli32_T1_64':
/home/ths/qemu/qemu-write/target-ppc/op.c:2766: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_evextsh':
/home/ths/qemu/qemu-write/target-ppc/op.c:2802: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_evextsb':
/home/ths/qemu/qemu-write/target-ppc/op.c:2809: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_evmergelo':
/home/ths/qemu/qemu-write/target-ppc/op.c:2912: warning: left shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_evmergehi':
/home/ths/qemu/qemu-write/target-ppc/op.c:2918: warning: right shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c: In function `op_evmergelohi':
/home/ths/qemu/qemu-write/target-ppc/op.c:2924: warning: left shift count >= width of type
/home/ths/qemu/qemu-write/target-ppc/op.c:2924: warning: right shift count >= width of type
../dyngen -o op.h op.o
dyngen: empty code for op_efdnabs
make[1]: *** [op.h] Error 1
make[1]: Leaving directory `/home/ths/qemu/qemu-write/ppc-linux-user'
make: *** [subdir-ppc-linux-user] Error 2
next prev parent reply other threads:[~2007-11-14 17:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 15:59 [Qemu-devel] [PATCH] target_posix_types.h Thayne Harbaugh
2007-11-14 16:03 ` [Qemu-devel] Re: [PATCH] tget/tput deprecation Thayne Harbaugh
2007-11-14 16:08 ` Thayne Harbaugh
2007-11-14 18:21 ` Thayne Harbaugh
2007-11-14 19:02 ` Thayne Harbaugh
2007-11-16 4:16 ` Thayne Harbaugh
2007-11-14 16:25 ` [Qemu-devel] [PATCH] target_posix_types.h Jocelyn Mayer
2007-11-14 17:36 ` Thiemo Seufer [this message]
2007-11-14 17:54 ` Jocelyn Mayer
2007-11-14 18:20 ` Thayne Harbaugh
2007-11-14 18:32 ` Fabrice Bellard
2007-11-14 18:43 ` Thayne Harbaugh
2007-11-14 19:14 ` Fabrice Bellard
2007-11-14 19:53 ` Thayne Harbaugh
2007-11-14 20:39 ` Paul Brook
2007-11-14 21:06 ` Warner Losh
2007-11-14 21:25 ` Thayne Harbaugh
2007-11-14 21:19 ` Thayne Harbaugh
2007-11-14 21:37 ` Paul Brook
2007-11-14 19:56 ` Thayne Harbaugh
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=20071114173655.GQ8363@networkno.de \
--to=ths@networkno.de \
--cc=l_indien@magic.fr \
--cc=qemu-devel@nongnu.org \
--cc=thayne@c2.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.