From patchwork Sat Jun 23 00:33:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 166724 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DDE2CB6FA1 for ; Sat, 23 Jun 2012 12:19:28 +1000 (EST) Received: from localhost ([::1]:56766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiEJI-0007LL-0L for incoming@patchwork.ozlabs.org; Fri, 22 Jun 2012 20:34:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiEIX-0005R2-Qh for qemu-devel@nongnu.org; Fri, 22 Jun 2012 20:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiEIW-0007sO-3k for qemu-devel@nongnu.org; Fri, 22 Jun 2012 20:33:57 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:50139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiEIV-0007rl-RP for qemu-devel@nongnu.org; Fri, 22 Jun 2012 20:33:56 -0400 Received: by mail-pz0-f45.google.com with SMTP id n2so3053134dad.4 for ; Fri, 22 Jun 2012 17:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=CkHcQ+WX5Mb39VSf/s4wKIQYZGfWyVIhBHy2JSiwMlA=; b=QP8ShaLfAvjoXzwzuD7SzDBphLfjt0gJ7Wzb0q3MsNvD/NBiA87gy90cEDJLkzS4f0 CZac7yLqEqrGBnyxsMPxTFoP0LDizDeqmT9BNpppZ+whJlYd+8LjWBNEfLbfgDi65B0D LtljkgtVeGnKY3RntW1mU+N0loV7hM+sIgmnpAnf5CxSsIbcEUIfIGu9dMWGPDfLjJs3 Yd6T0c0U62c03gG8biss7aS513ST28BcWbLifhE7ke/5fC6M9Els2dPiCUuZ4msZqM01 kZXIs/tp5iSTJJeEN0HdbfrKqCk6ofMrEr4sHSpDcMXERr57jSp6DmrTHKMDeXhihBc9 cMKA== Received: by 10.68.219.226 with SMTP id pr2mr15474366pbc.1.1340411634729; Fri, 22 Jun 2012 17:33:54 -0700 (PDT) Received: from localhost.localdomain ([32.97.110.59]) by mx.google.com with ESMTPS id os1sm630169pbb.49.2012.06.22.17.33.52 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jun 2012 17:33:53 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Fri, 22 Jun 2012 19:33:06 -0500 Message-Id: <1340411610-22596-3-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1340411610-22596-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1340411610-22596-1-git-send-email-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.45 Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH stable-1.1 02/26] target-xtensa: flush TLB page for new MMU mapping 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 From: Max Filippov Both old and new mappings need flushing because their VPN may be different in MMU case. Signed-off-by: Max Filippov Signed-off-by: Blue Swirl --- target-xtensa/op_helper.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-xtensa/op_helper.c b/target-xtensa/op_helper.c index 364dc19..ce61157 100644 --- a/target-xtensa/op_helper.c +++ b/target-xtensa/op_helper.c @@ -669,6 +669,7 @@ void xtensa_tlb_set_entry(CPUXtensaState *env, bool dtlb, entry->paddr = pte & xtensa_tlb_get_addr_mask(env, dtlb, wi); entry->asid = (env->sregs[RASID] >> ((pte >> 1) & 0x18)) & 0xff; entry->attr = pte & 0xf; + tlb_flush_page(env, entry->vaddr); } else { qemu_log("%s %d, %d, %d trying to set immutable entry\n", __func__, dtlb, wi, ei);