From patchwork Wed Jul 1 13:59:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 490155 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1329A14007F for ; Thu, 2 Jul 2015 00:02:42 +1000 (AEST) Received: from localhost ([::1]:58711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAIb1-0000oq-OK for incoming@patchwork.ozlabs.org; Wed, 01 Jul 2015 10:02:39 -0400 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 Received: from weber.rr44.fr ([2001:bc8:30d7:120:7e05:7ff:fe0d:f152]) by hall.aurel32.net with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1ZAIXm-0008SM-RM; Wed, 01 Jul 2015 15:59:18 +0200 Received: from aurel32 by weber.rr44.fr with local (Exim 4.85) (envelope-from ) id 1ZAIXm-0003qv-8p; Wed, 01 Jul 2015 15:59:18 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Wed, 1 Jul 2015 15:59:13 +0200 Message-Id: <1435759153-14770-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:bc8:30d7:100::1 Cc: Leon Alrae , "Dr. David Alan Gilbert" , Aurelien Jarno Subject: [Qemu-devel] [PATCH] target-mips: fix ASID synchronisation for MIPS MT X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Reviewed-by: 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); }