diff options
author | Laurent Desnogues <laurent.desnogues@gmail.com> | 2009-09-21 14:27:59 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-25 17:40:44 +0200 |
commit | 6166c0f95e8093d695835d07798557439a226f48 (patch) | |
tree | 29628ec4c853896348b0733ccc5de59429c47b3a | |
parent | 011b2955110a5356d91d3377a10d23635c78517a (diff) | |
download | qemu-6166c0f95e8093d695835d07798557439a226f48.zip qemu-6166c0f95e8093d695835d07798557439a226f48.tar.gz qemu-6166c0f95e8093d695835d07798557439a226f48.tar.bz2 |
ARM host: fix generated blocks linking
This patch fixes the linking of generated blocks on an ARM host.
No need to say this brings a very nice speedup :-)
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | exec-all.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -211,7 +211,9 @@ static inline void tb_set_jmp_target1(unsigned long jmp_addr, unsigned long addr #endif /* we could use a ldr pc, [pc, #-4] kind of branch and avoid the flush */ - *(uint32_t *)jmp_addr |= ((addr - (jmp_addr + 8)) >> 2) & 0xffffff; + *(uint32_t *)jmp_addr = + (*(uint32_t *)jmp_addr & ~0xffffff) + | (((addr - (jmp_addr + 8)) >> 2) & 0xffffff); #if QEMU_GNUC_PREREQ(4, 1) __clear_cache((char *) jmp_addr, (char *) jmp_addr + 4); |