Re: [Qemu-devel] ARM hosts: code_gen_alloc() maps code buffer on top of libc heap

2011-10-28 Thread Peter Maydell
On 28 October 2011 17:14, Paolo Bonzini wrote: > On 10/28/2011 04:32 PM, Peter Maydell wrote: >> >> I suspect we need to drop the MAP_FIXED requirement and >> fix the TCG code to cope with emitting code for longer-range >> branches for calls to host fns etc (calls/branches within the >> generated

Re: [Qemu-devel] ARM hosts: code_gen_alloc() maps code buffer on top of libc heap

2011-10-28 Thread Paolo Bonzini
On 10/28/2011 04:32 PM, Peter Maydell wrote: I suspect we need to drop the MAP_FIXED requirement and fix the TCG code to cope with emitting code for longer-range branches for calls to host fns etc (calls/branches within the generated code should be ok to keep using the short-range branch insn I

[Qemu-devel] ARM hosts: code_gen_alloc() maps code buffer on top of libc heap

2011-10-28 Thread Peter Maydell
I've been tracking down a bug where qemu run on ARM hosts will (about half of the time) abort early in execution with: qemu-system-i386: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd && old_si