KVM: PPC: Split instruction reading out
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:21 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:16:56 +0000 (12:16 +0300)
commit8963221d7d7244cc828dfca5649404c747599b3e
tree6e563c1e86ca166a70848c105756f0a2cbe2ee8d
parent4b389ca2e733b986c5282690e4e0314f000e6228
KVM: PPC: Split instruction reading out

The current check_ext function reads the instruction and then does
the checking. Let's split the reading out so we can reuse it for
different functions.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s.c