diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2015-07-01 15:59:13 +0200 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-07-15 14:07:25 +0100 |
commit | 6a973e6b6584221bed89a01e755b88e58b496652 (patch) | |
tree | 967f642c3a8a7debb206ef95f4f619e1ee4c792b /target-mips/op_helper.c | |
parent | 6b9c26fb5eed2345398daca4eef601da2f3d7867 (diff) | |
download | qemu-6a973e6b6584221bed89a01e755b88e58b496652.zip qemu-6a973e6b6584221bed89a01e755b88e58b496652.tar.gz qemu-6a973e6b6584221bed89a01e755b88e58b496652.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 2a9ddff..d457a29 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); } |