From: Paul Mackerras Date: Sun, 4 Nov 2012 18:15:43 +0000 (+0000) Subject: KVM: PPC: Book3S PR: Emulate PURR, SPURR and DSCR registers X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~27^2~5^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0a94d4e23201c7559bb8f8657cfb629561288f2;p=pandora-kernel.git KVM: PPC: Book3S PR: Emulate PURR, SPURR and DSCR registers This adds basic emulation of the PURR and SPURR registers. We assume we are emulating a single-threaded core, so these advance at the same rate as the timebase. A Linux kernel running on a POWER7 expects to be able to access these registers and is not prepared to handle a program interrupt on accessing them. This also adds a very minimal emulation of the DSCR (data stream control register). Writes are ignored and reads return zero. Signed-off-by: Paul Mackerras Signed-off-by: Alexander Graf --- Reading git-diff-tree failed