Skip to content
Commit c46dc9a8 authored by Alexander Graf's avatar Alexander Graf
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
parent 5b74716e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment