Re: [Qemu-devel] [PATCH 1/4] exec: Split up and tidy code_gen_buffer

2012-10-15 Thread Richard Henderson
On 2012-10-13 23:33, Blue Swirl wrote: > /src/qemu/exec.c:4208: error: format '%ld' expects type 'long int', > but argument 4 has type 'size_t' Dang it. And here I thought I was helping get the type right for win64. That printf format should be changed to %zd... r~

Re: [Qemu-devel] [PATCH 1/4] exec: Split up and tidy code_gen_buffer

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 9:20 PM, Richard Henderson wrote: > It now consists of: > > A macro definition of MAX_CODE_GEN_BUFFER_SIZE with host-specific values, > > A function size_code_gen_buffer that applies most of the reasoning for > choosing a buffer size, > > Three variations of a function allo

[Qemu-devel] [PATCH 1/4] exec: Split up and tidy code_gen_buffer

2012-10-12 Thread Richard Henderson
It now consists of: A macro definition of MAX_CODE_GEN_BUFFER_SIZE with host-specific values, A function size_code_gen_buffer that applies most of the reasoning for choosing a buffer size, Three variations of a function alloc_code_gen_buffer that contain all of the logic for allocating executabl