KVM: x86 emulator: Make a distinction between repeat prefixes F3 and F2
authorGuillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Thu, 22 Nov 2007 10:32:09 +0000 (11:32 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:14 +0000 (17:53 +0200)
cmps and scas instructions accept repeat prefixes F3 and F2. So in
order to emulate those prefixed instructions we need to be able to know
if prefixes are REP/REPE/REPZ or REPNE/REPNZ. Currently kvm doesn't make
this distinction. This patch introduces this distinction.

Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c
drivers/kvm/x86_emulate.h

Simple merge
Simple merge