Skip to content
  • Alexander Graf's avatar
    KVM: PPC: Emulator: clean up instruction parsing · c46dc9a8
    Alexander Graf authored
    
    
    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: default avatarAlexander Graf <agraf@suse.de>
    c46dc9a8