From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53461 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFmJl-0003Kn-QB for qemu-devel@nongnu.org; Sat, 22 May 2010 06:52:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFmJj-0004OM-U0 for qemu-devel@nongnu.org; Sat, 22 May 2010 06:52:33 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:45113) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFmJj-0004M6-Mg for qemu-devel@nongnu.org; Sat, 22 May 2010 06:52:31 -0400 Received: by mail-fx0-f45.google.com with SMTP id 14so550821fxm.4 for ; Sat, 22 May 2010 03:52:31 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=[192.168.1.2]) by skyserv with esmtp (Exim 4.71) (envelope-from ) id 1OFmJh-0004oR-US for qemu-devel@nongnu.org; Sat, 22 May 2010 14:52:29 +0400 From: "Igor V. Kovalenko" Date: Sat, 22 May 2010 14:52:29 +0400 Message-ID: <20100522105229.18257.45790.stgit@skyserv> In-Reply-To: <20100522104440.18257.92813.stgit@skyserv> References: <20100522104440.18257.92813.stgit@skyserv> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 3/5] sparc64: fix dump_mmu to look for global bit in tte value instead of tag List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Igor V. Kovalenko Signed-off-by: Igor V. Kovalenko --- target-sparc/helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 538795f..1045c31 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -653,7 +653,7 @@ void dump_mmu(CPUState *env) env->dtlb[i].tte & 0x2? "RW": "RO", env->dtlb[i].tte & 0x40? "locked": "unlocked", env->dtlb[i].tag & (uint64_t)0x1fffULL, - TTE_IS_GLOBAL(env->dtlb[i].tag)? "global" : "local"); + TTE_IS_GLOBAL(env->dtlb[i].tte)? "global" : "local"); } } } @@ -687,7 +687,7 @@ void dump_mmu(CPUState *env) env->itlb[i].tte & 0x4? "priv": "user", env->itlb[i].tte & 0x40? "locked": "unlocked", env->itlb[i].tag & (uint64_t)0x1fffULL, - TTE_IS_GLOBAL(env->itlb[i].tag)? "global" : "local"); + TTE_IS_GLOBAL(env->itlb[i].tte)? "global" : "local"); } } }