From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAIXp-00041Q-EQ for qemu-devel@nongnu.org; Wed, 01 Jul 2015 09:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAIXo-00035e-M3 for qemu-devel@nongnu.org; Wed, 01 Jul 2015 09:59:21 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:47185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAIXo-000353-HI for qemu-devel@nongnu.org; Wed, 01 Jul 2015 09:59:20 -0400 From: Aurelien Jarno Date: Wed, 1 Jul 2015 15:59:13 +0200 Message-Id: <1435759153-14770-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH] target-mips: fix ASID synchronisation for MIPS MT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Leon Alrae , "Dr. David Alan Gilbert" , Aurelien Jarno When syncing the task ASID with EntryHi, correctly or the value instead of assigning it. Reported-by: "Dr. David Alan Gilbert" Signed-off-by: Aurelien Jarno Cc: Leon Alrae --- target-mips/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.1.4