diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2012-10-20 17:31:44 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2012-10-28 14:54:05 +0100 |
commit | 166792f7bbe2cad120b75062ff6f8f1b67366f18 (patch) | |
tree | 36e0b6d14092731de6c2a6eeb61993b19ac94c95 /hw/virtio-net.c | |
parent | 50cd72148211c5e5f22ea2519d19ce024226e61f (diff) | |
download | qemu-166792f7bbe2cad120b75062ff6f8f1b67366f18.zip qemu-166792f7bbe2cad120b75062ff6f8f1b67366f18.tar.gz qemu-166792f7bbe2cad120b75062ff6f8f1b67366f18.tar.bz2 |
tcg/i386: remove suboptimal register shifting
Now that CONFIG_TCG_PASS_AREG0 has been removed, it's easier to get
an optimal code for the load/store functions.
First swap the two registers used in tcg_out_tlb_load() so that the
address end-up in the second register instead of the first one. Adjust
tcg_out_qemu_ld() and tcg_out_qemu_st() to respectively call
tcg_out_qemu_ld_direct() and tcg_out_qemu_st_direct() with the correct
registers. Then replace the register shifting by direct load of the
arguments.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/virtio-net.c')
0 files changed, 0 insertions, 0 deletions