]> git.proxmox.com Git - mirror_qemu.git/commit - exec.c
exec: Allocate code_gen_prologue from code_gen_buffer
authorRichard Henderson <rth@twiddle.net>
Tue, 16 Oct 2012 07:30:13 +0000 (17:30 +1000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 20 Oct 2012 07:54:04 +0000 (07:54 +0000)
commit4438c8a9469d79fa2c58189418befb506da54d97
tree45bfb99d26435d45ef97c470c88906dba73152d7
parent405def18466d0cbd84e6a0edb598466b0a5e15c3
exec: Allocate code_gen_prologue from code_gen_buffer

We had a hack for arm and sparc, allocating code_gen_prologue to a
special section.  Which, honestly does no good under certain cases.
We've already got limits on code_gen_buffer_size to ensure that all
TBs can use direct branches between themselves; reuse this limit to
ensure the prologue is also reachable.

As a bonus, we get to avoid marking a page of the main executable's
data segment as executable.

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