]> git.proxmox.com Git - mirror_qemu.git/commit
exec: Split up and tidy code_gen_buffer
authorRichard Henderson <rth@twiddle.net>
Tue, 16 Oct 2012 07:30:10 +0000 (17:30 +1000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 20 Oct 2012 07:54:04 +0000 (07:54 +0000)
commitf1bc0bcc9dbbbf5674add3075b5efe0a93fe34f0
tree759d3a2802259143da4da7ffe0d29a9ecf933fd7
parent5f072e1f3075bd869e0ace9f2545a85992ac0084
exec: Split up and tidy code_gen_buffer

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 executable memory via a given allocation
mechanism.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
exec.c