]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target-mips: fix ASID synchronisation for MIPS MT
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 1 Jul 2015 13:59:13 +0000 (15:59 +0200)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 15 Jul 2015 13:07:25 +0000 (14:07 +0100)
When syncing the task ASID with EntryHi, correctly or the value instead
of assigning it.

Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/op_helper.c

index 2a9ddff70fe7d5b8586299260012dabf43fb303f..d457a29f3e7fdbab45987c320a2fae8eec7517b1 100644 (file)
@@ -661,7 +661,7 @@ static void sync_c0_tcstatus(CPUMIPSState *cpu, int tc,
 
     /* Sync the TASID with EntryHi.  */
     cpu->CP0_EntryHi &= ~0xff;
-    cpu->CP0_EntryHi = tasid;
+    cpu->CP0_EntryHi |= tasid;
 
     compute_hflags(cpu);
 }