Re: [Qemu-devel] [PATCH] tcg: Fix --disable-tcg build breakage

2018-07-02 Thread Peter Maydell
On 29 June 2018 at 21:07, Philippe Mathieu-Daudé wrote: > Fix the --disable-tcg breakage introduced by 8bca9a03ec60d: > > $ configure --disable-tcg > [...] > $ make -C i386-softmmu exec.o > make: Entering directory 'i386-softmmu' > CC exec.o > In file included from s

[Qemu-devel] [PATCH] tcg: Fix --disable-tcg build breakage

2018-06-29 Thread Philippe Mathieu-Daudé
Fix the --disable-tcg breakage introduced by 8bca9a03ec60d: $ configure --disable-tcg [...] $ make -C i386-softmmu exec.o make: Entering directory 'i386-softmmu' CC exec.o In file included from source/qemu/exec.c:62:0: source/qemu/include/exec/ram_addr.h:96:6: er

Re: [Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage

2018-06-23 Thread Peter Maydell
On 22 June 2018 at 18:45, Emilio G. Cota wrote: > Fix the --disable-tcg breakage introduced by tb_lock's removal by > relying on the fact that tcg_enabled() is set to 0 at > compile-time under --disable-tcg. > > While at it, add further asserts to fix builds that enable both > --disable-tcg and --

Re: [Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage

2018-06-22 Thread Richard Henderson
On 06/22/2018 10:45 AM, Emilio G. Cota wrote: > Fix the --disable-tcg breakage introduced by tb_lock's removal by > relying on the fact that tcg_enabled() is set to 0 at > compile-time under --disable-tcg. > > While at it, add further asserts to fix builds that enable both > --disable-tcg and --en

[Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage

2018-06-22 Thread Emilio G. Cota
Fix the --disable-tcg breakage introduced by tb_lock's removal by relying on the fact that tcg_enabled() is set to 0 at compile-time under --disable-tcg. While at it, add further asserts to fix builds that enable both --disable-tcg and --enable-debug, which were broken even before tb_lock's remova

Re: [Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage introduced by tb_lock removal

2018-06-22 Thread Emilio G. Cota
On Fri, Jun 22, 2018 at 17:24:33 +0100, Peter Maydell wrote: > On 22 June 2018 at 17:16, Emilio G. Cota wrote: > It's probably the --enable-debug that makes the difference: > for instance cpu_reloading_memory_map() is referenced from > tcg_commit(), which is only called from within an "if (tcg_ena

Re: [Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage introduced by tb_lock removal

2018-06-22 Thread Peter Maydell
On 22 June 2018 at 17:24, Peter Maydell wrote: > Possibly this has always been broken and wasn't a regression? > If so I guess we should apply your patch and then fix this > separately... Yep, before your tb_lock changes on my system I can build --disable-tcg, but not --disable-tcg --enable-debug

Re: [Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage introduced by tb_lock removal

2018-06-22 Thread Peter Maydell
On 22 June 2018 at 17:16, Emilio G. Cota wrote: > Tested to build x86_64-softmmu and i386-softmmu targets. > > Reported-by: Peter Maydell > Signed-off-by: Emilio G. Cota > --- > accel/stubs/tcg-stub.c | 4 > exec.c | 4 > 2 files changed, 4 insertions(+), 4 deletions(-

[Qemu-devel] [PATCH] tcg: fix --disable-tcg build breakage introduced by tb_lock removal

2018-06-22 Thread Emilio G. Cota
Tested to build x86_64-softmmu and i386-softmmu targets. Reported-by: Peter Maydell Signed-off-by: Emilio G. Cota --- accel/stubs/tcg-stub.c | 4 exec.c | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c