Re: [Qemu-devel] [PATCH 22/43] tcg/arm: fix TLB access in qemu-ld/st ops

2013-01-17 Thread Peter Maydell
On 3 December 2012 22:08, Michael Roth wrote: > +assert(tlb_offset & ~0xf == 0); This doesn't compile if configured with --enable-debug: In file included from /home/petmay01/git/qemu/tcg/tcg.c:174:0: /home/petmay01/git/qemu/tcg/arm/tcg-target.c: In function ‘tcg_out_qemu_ld’: /home/petma

[Qemu-devel] [PATCH 22/43] tcg/arm: fix TLB access in qemu-ld/st ops

2012-12-03 Thread Michael Roth
From: Aurelien Jarno The TCG arm backend considers likely that the offset to the TLB entries does not exceed 12 bits for mem_index = 0. In practice this is not true for at least the MIPS target. The current patch fixes that by loading the bits 23-12 with a separate instruction, and using loads w