aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op_helper.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2015-07-01 15:59:13 +0200
committerLeon Alrae <leon.alrae@imgtec.com>2015-07-15 14:07:25 +0100
commit6a973e6b6584221bed89a01e755b88e58b496652 (patch)
tree967f642c3a8a7debb206ef95f4f619e1ee4c792b /target-mips/op_helper.c
parent6b9c26fb5eed2345398daca4eef601da2f3d7867 (diff)
downloadqemu-arm-6a973e6b6584221bed89a01e755b88e58b496652.tar.gz
target-mips: fix ASID synchronisation for MIPS MT
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>
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r--target-mips/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index 2a9ddff70f..d457a29f3e 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -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);
}