]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
mips/kvm: Init EBase to correct KSEG0
authorJames Hogan <james.hogan@imgtec.com>
Thu, 26 Jun 2014 09:44:22 +0000 (10:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 5 Jul 2014 09:53:07 +0000 (11:53 +0200)
commit0a2672b7ead72b7c788200499a63a4d5f2faa74a
treeba14ad323614b6116820f1fd162a320c452357f3
parent9d9de254c2b81b68cd48f2324cc753a570a4cdd8
mips/kvm: Init EBase to correct KSEG0

The EBase CP0 register is initialised to 0x80000000, however with KVM
the guest's KSEG0 is at 0x40000000. The incorrect value doesn't get
passed to KVM yet as KVM doesn't implement the EBase register, however
we should set it correctly now so as not to break migration/loadvm to a
future version of QEMU that does support EBase.

Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-mips/translate.c