From patchwork Sat Feb 6 16:43:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 44710 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 CFE0BB7CE2 for ; Sun, 7 Feb 2010 03:56:10 +1100 (EST) Received: from localhost ([127.0.0.1]:56263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndnun-00014G-Us for incoming@patchwork.ozlabs.org; Sat, 06 Feb 2010 11:53:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ndnli-00071v-9V for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:26 -0500 Received: from [199.232.76.173] (port=59322 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndnlf-00071T-Gl for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:23 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ndnle-00059K-8J for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:23 -0500 Received: from mx20.gnu.org ([199.232.41.8]:39497) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ndnld-00051s-Bh for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:21 -0500 Received: from hall.aurel32.net ([88.191.82.174]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdnlF-0005ka-DT for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:43:57 -0500 Received: from [2002:52e8:2fb:1:21e:8cff:feb0:693b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NdnlE-0007rF-UY; Sat, 06 Feb 2010 17:43:57 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.71) (envelope-from ) id 1NdnlB-00065s-97; Sat, 06 Feb 2010 17:43:53 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Sat, 6 Feb 2010 17:43:43 +0100 Message-Id: <1265474623-23367-9-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1265474623-23367-1-git-send-email-aurelien@aurel32.net> References: <1265474623-23367-1-git-send-email-aurelien@aurel32.net> X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Aurelien Jarno Subject: [Qemu-devel] [PATCH 8/8] target-sh4: MMU: fix store queue addresses 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 The store queues are located from 0xe0000000 to 0xe3ffffff. Signed-off-by: Aurelien Jarno --- target-sh4/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 9b3a259..0a2a90e 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -402,7 +402,7 @@ static int get_physical_address(CPUState * env, target_ulong * physical, if ((address >= 0x80000000 && address < 0xc0000000) || address >= 0xe0000000) { if (!(env->sr & SR_MD) - && (address < 0xe0000000 || address > 0xe4000000)) { + && (address < 0xe0000000 || address >= 0xe4000000)) { /* Unauthorized access in user mode (only store queues are available) */ fprintf(stderr, "Unauthorized access\n"); if (rw == 0)