From patchwork Tue Jun 1 20:12:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor V. Kovalenko" X-Patchwork-Id: 54293 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 31495B7D30 for ; Wed, 2 Jun 2010 06:15:56 +1000 (EST) Received: from localhost ([127.0.0.1]:36966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJXsP-00028F-95 for incoming@patchwork.ozlabs.org; Tue, 01 Jun 2010 16:15:53 -0400 Received: from [140.186.70.92] (port=32989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJXp4-0000Zz-LR for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJXp2-0006Ok-IH for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:12:26 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:34677) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJXp2-0006Nu-Dx for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:12:24 -0400 Received: by mail-fx0-f45.google.com with SMTP id 17so4227877fxm.4 for ; Tue, 01 Jun 2010 13:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:subject:to:from:date :message-id:in-reply-to:references:user-agent:mime-version :content-type:content-transfer-encoding; bh=C8L4sP22Y8DxDX474hunRdGqqa9j0lCS+N/dPomP+ko=; b=WnFzo/RjjyDV22ss8GQMknXGtlQ8Rz8jq9pWGZlNGLYVOQk5kme7P2fWvhxqvVjyjg 0hYXUIxPIYfbL1xydXlWoS6BXEj2jvfMDvGiowTL21daL22anxDLLpw0N1IjCZkiJ0YP scurLA+HPwfI2arg0XmhPahbpIbMgG+dojaBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:to:from:date:message-id:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; b=WHz3pY7auyJ4W7nnjMaxvY/UwcrNm38zOnCyi+Z4zBjsVNeiaucq1cXA9I/75RvnDa Z6XuKOJaQxXcbpxUZYZ1rl7kGg/41adOR/MIQRQ3JsnqWiUYqfXMjA1PQsasIywZi9bm 47pbOjr3nZWm0rn23NT70np3wHKtel52UUWxs= Received: by 10.223.98.19 with SMTP id o19mr7616034fan.80.1275423143789; Tue, 01 Jun 2010 13:12:23 -0700 (PDT) Received: from skyserv ([87.255.14.75]) by mx.google.com with ESMTPS id y12sm48624870faj.17.2010.06.01.13.12.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 13:12:23 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=[192.168.1.2]) by skyserv with esmtp (Exim 4.71) (envelope-from ) id 1OJXp0-0001b5-Bb for qemu-devel@nongnu.org; Wed, 02 Jun 2010 00:12:22 +0400 To: qemu-devel@nongnu.org From: "Igor V. Kovalenko" Date: Wed, 02 Jun 2010 00:12:22 +0400 Message-ID: <20100601201222.5908.3583.stgit@skyserv> In-Reply-To: <20100601200434.5908.19495.stgit@skyserv> References: <20100601200434.5908.19495.stgit@skyserv> User-Agent: StGit/0.15 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 1/8] sparc64: fix tag access register on mmu traps X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Igor V. Kovalenko - set mmu tag access register on FAULT and PROT traps as well Signed-off-by: Igor V. Kovalenko --- target-sparc/helper.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 96a22f3..aa1fd63 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -495,6 +495,9 @@ static int get_physical_address_data(CPUState *env, env->dmmu.sfsr |= (fault_type << 7); env->dmmu.sfar = address; /* Fault address register */ + + env->dmmu.tag_access = (address & ~0x1fffULL) | context; + return 1; } } @@ -544,6 +547,8 @@ static int get_physical_address_code(CPUState *env, env->immu.sfsr |= (is_user << 3) | 1; env->exception_index = TT_TFAULT; + env->immu.tag_access = (address & ~0x1fffULL) | context; + DPRINTF_MMU("TFAULT at %" PRIx64 " context %" PRIx64 "\n", address, context);