]> git.proxmox.com Git - mirror_qemu.git/commit - include/exec/softmmu_template.h
tcg: Tidy softmmu_template.h
authorRichard Henderson <rth@twiddle.net>
Fri, 26 Jul 2013 18:29:15 +0000 (08:29 -1000)
committerRichard Henderson <rth@twiddle.net>
Mon, 26 Aug 2013 20:31:54 +0000 (13:31 -0700)
commitaac1fb0576e5bea72681e91c38caffc17741eb80
treed96c02d3bbd48aa4727e1919ce3cbc64bb877d80
parente25c3887e6ac50e7a0c42a2f597b088a27d5bb5d
tcg: Tidy softmmu_template.h

Avoid a loop in the tlb_fill path; the fill will either succeed or
generate an exception.

Inline the slow_ld/st function; it was a complete copy of the main
helper except for the actual cross-page unaligned code, and the
compiler was inlining it anyway.

Add unlikely markers optimizing for the most common case of simple
tlb miss.

Make sure the compiler can optimize away the unaligned paths for a
1 byte access.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
include/exec/softmmu_template.h