]> git.proxmox.com Git - qemu.git/commit
tcg-arm: Improve GUEST_BASE qemu_ld/st
authorRichard Henderson <rth@twiddle.net>
Thu, 12 Sep 2013 22:06:23 +0000 (15:06 -0700)
committerRichard Henderson <rth@twiddle.net>
Sat, 12 Oct 2013 23:19:20 +0000 (16:19 -0700)
commit091d5677713d5e8e48ad670655d6bf1bac0b064d
treeb8f6becdda8a30b70853b7da1c62ca6d8c512569
parent15ecf6e3946b0d2f0b6deb95c321604b8741a882
tcg-arm: Improve GUEST_BASE qemu_ld/st

If we pull the code to emit the actual load/store into a subroutine,
we can share the reg+reg addressing mode code between softmmu and
usermode.  This lets us load GUEST_BASE into a temporary register
rather than attempting to add it piece-wise to the address.

Which lets us use movw+movt for armv7, rather than (up to) 4 adds.
Code size for pre-armv7 stays the same.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/arm/tcg-target.c