Merge branch 'tcg-next' of git://github.com/rth7680/qemu
tcg/mips: detect available host instructions at runtime
Now that TCG supports enabling and disabling ops at runtime, it'spossible to detect the available host instructions at runtime, andenable the corresponding ops accordingly.
Unfortunately it's not easy to probe for available instructions on...
tcg/mips: inline bswap16/bswap32 ops
Use an inline version for the bswap16 and bswap32 ops to avoidtesting for MIPS32R2 instructions availability, as these ops areonly available in that case.
Reviewed-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/mips: only enable ext8s/ext16s ops on MIPS32R2
On MIPS ext8s and ext16s ops are implemented with a dedicatedinstruction only on MIPS32R2, otherwise the same kind of implementationthan at TCG level (shift left followed by shift right) is used.
Change that by only implementing the ext8s and ext16s ops on MIPS32R2 so...
tcg: Change tcg_out_ld/st offset to intptr_t
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>Signed-off-by: Richard Henderson <rth@twiddle.net>
exec: Split softmmu_defs.h
The _cmmu helpers can be moved to exec-all.h. The helpers that areused from TCG will shortly need access to tcg_target_long so movetheir declarations into tcg.h.
This requires minor include adjustments to all TCG backends....
tcg: Add muluh and mulsh opcodes
Use them in places where mulu2 and muls2 are used.Optimize mulx2 with dead low part to mulxh.
tcg-mips: Implement mulsh, muluh
With the optimization in tcg_liveness_analysis,we can avoid the MFLO when it is unused.
tcg: Change flush_icache_range arguments to uintptr_t
tcg: Change relocation offsets to intptr_t
View revisions
Also available in: Atom