• A
    KVM: PPC: Emulator: clean up instruction parsing · c46dc9a8
    Alexander Graf 提交于
    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: NAlexander Graf <agraf@suse.de>
    c46dc9a8
booke_emulate.c 7.4 KB