From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyNGs-0001Yv-VV for qemu-devel@nongnu.org; Mon, 27 Apr 2009 05:37:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyNGp-0001Vi-5M for qemu-devel@nongnu.org; Mon, 27 Apr 2009 05:37:06 -0400 Received: from [199.232.76.173] (port=54024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyNGo-0001Vb-5Y for qemu-devel@nongnu.org; Mon, 27 Apr 2009 05:37:02 -0400 Received: from mel.act-europe.fr ([212.99.106.210]:49881) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyNGn-0002Ab-QD for qemu-devel@nongnu.org; Mon, 27 Apr 2009 05:37:01 -0400 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 374E5290042 for ; Mon, 27 Apr 2009 11:37:01 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XsSYcKlsLzjy for ; Mon, 27 Apr 2009 11:37:00 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) by mel.act-europe.fr (Postfix) with ESMTP id A8888290021 for ; Mon, 27 Apr 2009 11:37:00 +0200 (CEST) From: Tristan Gingold Date: Mon, 27 Apr 2009 11:37:03 +0200 Message-Id: <1240825023-869-1-git-send-email-gingold@adacore.com> Subject: [Qemu-devel] [PATCH] Fix powerpc 604 reset vector List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org According to 604eUM_book (see 8.3.3 Reset inputs p8-54), the IP bit is set for hreset and the vector is at offset 0x100 from the exception prefix. No difference in this area between 604 and 604e. Signed-off-by: Tristan Gingold --- target-ppc/translate_init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 56d8d93..791c73c 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -2875,9 +2875,9 @@ static void init_excp_604 (CPUPPCState *env) env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00; env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300; env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400; - env->excp_prefix = 0x00000000UL; + env->excp_prefix = 0xFFF00000UL; /* Hardware reset vector */ - env->hreset_vector = 0xFFFFFFFCUL; + env->hreset_vector = 0x00000100UL; #endif } -- 1.6.2