diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-10 17:21:31 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-10 17:21:31 +0000 |
commit | d03d860b151d382e3a158e8e27838729cfcda075 (patch) | |
tree | 0b1d2b12704f3bbde996778cf4a03069f6a9c131 /exec.c | |
parent | 815a67426681d057d09c56bf58137b222847fdbb (diff) | |
download | qemu-d03d860b151d382e3a158e8e27838729cfcda075.zip qemu-d03d860b151d382e3a158e8e27838729cfcda075.tar.gz qemu-d03d860b151d382e3a158e8e27838729cfcda075.tar.bz2 |
Link ARM prologue closer to code segment to avoid a build failure
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4867 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -89,7 +89,19 @@ int nb_tbs; /* any access to the tbs or the page table must use this lock */ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED; -uint8_t code_gen_prologue[1024] __attribute__((aligned (32))); +#if defined(__arm__) +/* The prologue must be reachable with a direct jump. ARM has a + limited branch range (possibly also PPC and SPARC?) so place it in a + section close to code segment. */ +#define code_gen_section \ + __attribute__((__section__(".gen_code"))) \ + __attribute__((aligned (32))) +#else +#define code_gen_section \ + __attribute__((aligned (32))) +#endif + +uint8_t code_gen_prologue[1024] code_gen_section; uint8_t *code_gen_buffer; unsigned long code_gen_buffer_size; /* threshold to flush the translated code buffer */ |