target-mips: fix ASID synchronisation for MIPS MT

When syncing the task ASID with EntryHi, correctly or the value instead
of assigning it.

Backports commit 6a973e6b6584221bed89a01e755b88e58b496652 from qemu
This commit is contained in:
Aurelien Jarno 2018-02-14 17:00:19 -05:00 committed by Lioncash
parent 6fac3fee4e
commit 5ee529edd3
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -660,7 +660,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);
}