commit | c191a7a0f4d3b17cc6cee1d3f721dfe23fc7d6c6 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Tue Sep 13 10:45:49 2011 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Sep 25 19:52:56 2011 +0300 |
tree | 7d71811d87b84250b3f205a12ab68fd59f00b803 | |
parent | 41ddf9784cb91c9e4d3a218eef3551bebe9c7362 [diff] |
KVM: x86 emulator: streamline decode of segment registers The opcodes push %seg pop %seg l%seg, %mem, %reg (e.g. lds/les/lss/lfs/lgs) all have an segment register encoded in the instruction. To allow reuse, decode the segment number into src2 during the decode stage instead of the execution stage. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>