tcg-i386: Introduce limited deposit support
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 29 Sep 2011 16:52:11 +0000 (18:52 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 1 Oct 2011 06:42:46 +0000 (06:42 +0000)
commitfd1fda86463ae96d8a2edcb8ba872f299620e716
treeca5efb7a06cf3f553b339b7a945447ae242ad6b3
parentb41a350392df9b3dddae2caed971a2fd66b4f40a
tcg-i386: Introduce limited deposit support

x86 cannot provide an optimized generic deposit implementation. But at
least for a few special cases, namely for writing bits 0..7, 8..15, and
0..15, versions using only a single instruction are feasible.
Introducing such limited support improves emulating 16-bit x86 code on
x86, but also rarer cases where 32-bit or 64-bit code accesses bytes or
words.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/i386/tcg-target.c
tcg/i386/tcg-target.h
tcg/tcg-op.h
tcg/tcg.h