By moving the Gic state copying logic from the MuxingKvmGic to the BaseGic we allow different Gic releases (e.g Gicv2, Gicv3) to override the implementation accoding to their personal architectural state It is also possible to use the same logic outside of the KVM context Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Change-Id: I88d6fca69a9b61a889c5ec53221404b8396cc12d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/55607 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>