Message ID | 1455020031-8268-1-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
On 9 February 2016 at 12:13, Paolo Bonzini <pbonzini@redhat.com> wrote: > The following changes since commit e4a096b1cd4350eeca5dcdc391ab333d2083d7fd: > > ui/cocoa.m: Include qemu/osdep.h (2016-02-08 13:14:40 +0000) > > are available in the git repository at: > > git://github.com/bonzini/qemu.git tags/for-upstream > > for you to fetch changes up to 91eb5e5293fda2127ae33594715b47ff7e4eb985: > > qemu-char, io: fix ordering of arguments for UDP socket creation (2016-02-09 13:06:00 +0100) > > ---------------------------------------------------------------- > * switch to C11 atomics (Alex) > * Coverity fixes for IPMI (Corey), i386 (Paolo), qemu-char (Paolo) > * at long last, fail on wrong .pc files if -m32 is in use (Daniel) > * qemu-char regression fix (Daniel) > * SAS1068 device (Paolo) > * memory region docs improvements (Peter) > * target-i386 cleanups (Richard) > * qemu-nbd docs improvements (Sitsofe) > * thread-safe memory hotplug (Stefan) Compilation failure I'm afraid (all hosts): /home/pm215/qemu/target-i386/translate.c: In function ‘tcg_x86_init’: /home/pm215/qemu/target-i386/translate.c:7724:34: error: passing argument 1 of ‘tcg_global_mem_new_i32’ makes pointer from integer without a cast [-Werror] seg_base_names[i]); ^ In file included from /home/pm215/qemu/tcg/tcg-op.h:25:0, from /home/pm215/qemu/target-i386/translate.c:24: /home/pm215/qemu/tcg/tcg.h:644:24: note: expected ‘TCGv_ptr’ but argument is of type ‘int’ static inline TCGv_i32 tcg_global_mem_new_i32(TCGv_ptr reg, intptr_t offset, ^ thanks -- PMM
On 09/02/2016 15:20, Peter Maydell wrote: > Compilation failure I'm afraid (all hosts): > > /home/pm215/qemu/target-i386/translate.c: In function ‘tcg_x86_init’: > /home/pm215/qemu/target-i386/translate.c:7724:34: error: passing > argument 1 of ‘tcg_global_mem_new_i32’ makes pointer from integer > without a cast [-Werror] > seg_base_names[i]); > ^ > In file included from /home/pm215/qemu/tcg/tcg-op.h:25:0, > from /home/pm215/qemu/target-i386/translate.c:24: > /home/pm215/qemu/tcg/tcg.h:644:24: note: expected ‘TCGv_ptr’ but > argument is of type ‘int’ > static inline TCGv_i32 tcg_global_mem_new_i32(TCGv_ptr reg, intptr_t offset, > ^ Hmm, not on my host and I don't see what's going on: static const char seg_base_names[6][8] = { [R_CS] = "cs_base", [R_DS] = "ds_base", [R_ES] = "es_base", [R_FS] = "fs_base", [R_GS] = "gs_base", [R_SS] = "ss_base", }; cpu_seg_base[i] = tcg_global_mem_new(TCG_AREG0, offsetof(CPUX86State, segs[i].base), seg_base_names[i]); There's no difference between that and e.g. cpu_cc_src2 = tcg_global_mem_new(TCG_AREG0, offsetof(CPUX86State, cc_src2), "cc_src2"); Paolo
On 02/10/2016 01:41 AM, Paolo Bonzini wrote: > > > On 09/02/2016 15:20, Peter Maydell wrote: >> Compilation failure I'm afraid (all hosts): >> >> /home/pm215/qemu/target-i386/translate.c: In function ‘tcg_x86_init’: >> /home/pm215/qemu/target-i386/translate.c:7724:34: error: passing >> argument 1 of ‘tcg_global_mem_new_i32’ makes pointer from integer >> without a cast [-Werror] >> seg_base_names[i]); >> ^ >> In file included from /home/pm215/qemu/tcg/tcg-op.h:25:0, >> from /home/pm215/qemu/target-i386/translate.c:24: >> /home/pm215/qemu/tcg/tcg.h:644:24: note: expected ‘TCGv_ptr’ but >> argument is of type ‘int’ >> static inline TCGv_i32 tcg_global_mem_new_i32(TCGv_ptr reg, intptr_t offset, >> ^ > > Hmm, not on my host and I don't see what's going on: > > static const char seg_base_names[6][8] = { > [R_CS] = "cs_base", > [R_DS] = "ds_base", > [R_ES] = "es_base", > [R_FS] = "fs_base", > [R_GS] = "gs_base", > [R_SS] = "ss_base", > }; > > cpu_seg_base[i] > = tcg_global_mem_new(TCG_AREG0, > offsetof(CPUX86State, segs[i].base), > seg_base_names[i]); > > > There's no difference between that and e.g. > > cpu_cc_src2 = tcg_global_mem_new(TCG_AREG0, > offsetof(CPUX86State, cc_src2), > "cc_src2"); Merge conflict. s/TCG_AREG0/cpu_env/ after my latest tcg patch set. r~