From: Alexander Graf Date: Fri, 4 May 2012 12:01:33 +0000 (+0200) Subject: KVM: PPC: Emulator: clean up instruction parsing X-Git-Tag: v3.5-rc1~88^2~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c46dc9a86148bc37c31d67a22a3887144ba7aa81;p=pandora-kernel.git KVM: PPC: Emulator: clean up instruction parsing Instructions on PPC are pretty similarly encoded. So instead of every instruction emulation code decoding the instruction fields itself, we can move that code to more generic places and rely on the compiler to optimize the unused bits away. This has 2 advantages. It makes the code smaller and it makes the code less error prone, as the instruction fields are always available, so accidental misusage is reduced. Functionally, this patch doesn't change anything. Signed-off-by: Alexander Graf --- Reading git-diff-tree failed