Add mfdec emulation
commit9a7a9b09fee8487003df012d9af4b227b3661e4d
authorAlexander Graf <agraf@suse.de>
Fri, 30 Oct 2009 05:47:15 +0000 (30 05:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Nov 2009 05:49:56 +0000 (5 16:49 +1100)
treed51f49af2f6eb0cd41bfcc62aba3c75a35f8f600
parentc215c6e49fef6c79a5b98f66f11cc6b1e395cb59
Add mfdec emulation

We support setting the DEC to a certain value right now. Doing that basically
triggers the CPU local timer.

But there's also an mfdec command that enabled the OS to read the decrementor.

This is required at least by all desktop and server PowerPC Linux kernels. It
can't really hurt to allow embedded ones to do it as well though.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kvm/emulate.c