From: Alexander Graf Date: Tue, 13 Mar 2012 21:15:45 +0000 (+0100) Subject: KVM: PPC: Emulate tw and td instructions X-Git-Tag: v3.5-rc1~88^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df79df5b27d74e0c9803d7f47bb878370996548;p=pandora-kernel.git KVM: PPC: Emulate tw and td instructions There are 4 conditional trapping instructions: tw, twi, td, tdi. The ones with an i take an immediate comparison, the others compare two registers. All of them arrive in the emulator when the condition to trap was successfully fulfilled. Unfortunately, we were only implementing the i versions so far, so let's also add support for the other two. This fixes kernel booting with recents book3s_32 guest kernels. Reported-by: Jörg Sommer Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed