MIPS: KVM: Refactor added offsetof()s
When calculating the offsets into the commpage for dynamically
translated mtc0/mfc0 guest instructions, multiple offsetof()s are added
together to find the offset of the specific register in the mips_coproc,
within the commpage.
Simplify each of these cases to a single offsetof() to find the offset
of the specific register within the commpage.
Signed-off-by: James Hogan <email@example.com>
Cc: Paolo Bonzini <firstname.lastname@example.org>
Cc: Gleb Natapov <email@example.com>
Signed-off-by: Ralf Baechle <firstname.lastname@example.org>
1 file changed