From: Alexander Graf Date: Fri, 19 Feb 2010 10:00:42 +0000 (+0100) Subject: KVM: PPC: Add helpers to modify ppc fields X-Git-Tag: v2.6.35-rc1~436^2~239 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0564ee8a8611326f28bae2a0455182b458826762;p=pandora-kernel.git KVM: PPC: Add helpers to modify ppc fields The PowerPC specification always lists bits from MSB to LSB. That is really confusing when you're trying to write C code, because it fits in pretty badly with the normal (1 << xx) schemes. So I came up with some nice wrappers that allow to get and set fields in a u64 with bit numbers exactly as given in the spec. That makes the code in KVM and the spec easier comparable. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed