aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-10-16 17:30:13 +1000
committerBlue Swirl <blauwirbel@gmail.com>2012-10-20 07:54:04 +0000
commit4438c8a9469d79fa2c58189418befb506da54d97 (patch)
tree45bfb99d26435d45ef97c470c88906dba73152d7 /tcg
parent405def18466d0cbd84e6a0edb598466b0a5e15c3 (diff)
downloadqemu-4438c8a9469d79fa2c58189418befb506da54d97.zip
qemu-4438c8a9469d79fa2c58189418befb506da54d97.tar.gz
qemu-4438c8a9469d79fa2c58189418befb506da54d97.tar.bz2
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>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 7bafe0e..45e94f5 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -616,7 +616,7 @@ TCGv_i64 tcg_const_i64(int64_t val);
TCGv_i32 tcg_const_local_i32(int32_t val);
TCGv_i64 tcg_const_local_i64(int64_t val);
-extern uint8_t code_gen_prologue[];
+extern uint8_t *code_gen_prologue;
/* TCG targets may use a different definition of tcg_qemu_tb_exec. */
#if !defined(tcg_qemu_tb_exec)