KVM: PPC: Implement mfsr emulation
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:24 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:01 +0000 (12:17 +0300)
commitc664876c6d88ff8c8e93ee05c0bbdc3e4c2af488
treed478322acafbae0971e7f0dd0cab31ed7299c463
parenta56cf347c21b21d52db127672cf1edf5dd724a4b
KVM: PPC: Implement mfsr emulation

We emulate the mfsrin instruction already, that passes the SR number
in a register value. But we lacked support for mfsr that encoded the
SR number in the opcode.

So let's implement it.

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