Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Nikunj A Dadhania
Richard Henderson writes: > On 11/29/2016 11:56 PM, Nikunj A Dadhania wrote: >> Lets bring full example here. >> >> TCGv nb = tcg_temp_new(); >> tcg_gen_andi_tl(nb, cpu_gpr[rB(ctx->opcode)], 0xFF); >> tcg_gen_brcondi_tl(TCG_COND_EQ, nb, 0, l1); >> >> /* do something */ >> ge

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Richard Henderson
On 11/30/2016 10:12 AM, Alex Bennée wrote: > > Richard Henderson writes: > >> On 11/30/2016 08:55 AM, Alex Bennée wrote: >>> >>> Nikunj A Dadhania writes: >>> Hi, I was writing one instruction and hit following issue: [snip]/qemu/tcg/tcg.c:2039: tcg fatal error qem

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Alex Bennée
Richard Henderson writes: > On 11/30/2016 08:55 AM, Alex Bennée wrote: >> >> Nikunj A Dadhania writes: >> >>> Hi, >>> >>> I was writing one instruction and hit following issue: >>> >>> [snip]/qemu/tcg/tcg.c:2039: tcg fatal error >>> qemu-ppc64le: [snip]/qemu/translate-all.c:175: tb_lock: Assert

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Richard Henderson
On 11/29/2016 11:56 PM, Nikunj A Dadhania wrote: > Lets bring full example here. > > TCGv nb = tcg_temp_new(); > tcg_gen_andi_tl(nb, cpu_gpr[rB(ctx->opcode)], 0xFF); > tcg_gen_brcondi_tl(TCG_COND_EQ, nb, 0, l1); > > /* do something */ > gen_set_access_type(ctx, ACCESS_INT); >

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Richard Henderson
On 11/30/2016 08:55 AM, Alex Bennée wrote: > > Nikunj A Dadhania writes: > >> Hi, >> >> I was writing one instruction and hit following issue: >> >> [snip]/qemu/tcg/tcg.c:2039: tcg fatal error >> qemu-ppc64le: [snip]/qemu/translate-all.c:175: tb_lock: Assertion >> `!have_tb_lock' failed. >> Seg

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Alex Bennée
Nikunj A Dadhania writes: > Hi, > > I was writing one instruction and hit following issue: > > [snip]/qemu/tcg/tcg.c:2039: tcg fatal error > qemu-ppc64le: [snip]/qemu/translate-all.c:175: tb_lock: Assertion > `!have_tb_lock' failed. > Segmentation fault (core dumped) This is confusing because

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-29 Thread Nikunj A Dadhania
Peter Maydell writes: > On 30 November 2016 at 07:00, Nikunj A Dadhania > wrote: >> >> Hi, >> >> I was writing one instruction and hit following issue: >> >> [snip]/qemu/tcg/tcg.c:2039: tcg fatal error >> qemu-ppc64le: [snip]/qemu/translate-all.c:175: tb_lock: Assertion >> `!have_tb_lock' faile

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-29 Thread Peter Maydell
On 30 November 2016 at 07:00, Nikunj A Dadhania wrote: > > Hi, > > I was writing one instruction and hit following issue: > > [snip]/qemu/tcg/tcg.c:2039: tcg fatal error > qemu-ppc64le: [snip]/qemu/translate-all.c:175: tb_lock: Assertion > `!have_tb_lock' failed. > Segmentation fault (core dumped

[Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-29 Thread Nikunj A Dadhania
Hi, I was writing one instruction and hit following issue: [snip]/qemu/tcg/tcg.c:2039: tcg fatal error qemu-ppc64le: [snip]/qemu/translate-all.c:175: tb_lock: Assertion `!have_tb_lock' failed. Segmentation fault (core dumped) Debugging deeper found that its something to do with the variable ty