From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44217 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhasV-00085h-0l for qemu-devel@nongnu.org; Mon, 24 Jan 2011 23:51:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhasQ-0008EM-LC for qemu-devel@nongnu.org; Mon, 24 Jan 2011 23:51:38 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:36483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhasQ-0008D2-Hg for qemu-devel@nongnu.org; Mon, 24 Jan 2011 23:51:34 -0500 Received: by iye19 with SMTP id 19so4913805iye.4 for ; Mon, 24 Jan 2011 20:51:33 -0800 (PST) From: Alexandre Courbot Date: Tue, 25 Jan 2011 13:51:16 +0900 Message-Id: <1295931077-29499-1-git-send-email-gnurou@gmail.com> Subject: [Qemu-devel] [PATCH] target-sh4: fix index of address read error exception List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: Alexandre Courbot , qemu-devel@nongnu.org Exception index of address read error should be 0x0e0. --- 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 45449ea..2d76f22 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -479,7 +479,7 @@ int cpu_sh4_handle_mmu_fault(CPUState * env, target_ulong address, int rw, break; case MMU_IADDR_ERROR: case MMU_DADDR_ERROR_READ: - env->exception_index = 0x0c0; + env->exception_index = 0x0e0; break; case MMU_DADDR_ERROR_WRITE: env->exception_index = 0x100; -- 1.7.3.5