From patchwork Wed Mar 27 13:32:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Chouteau X-Patchwork-Id: 231688 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 BE9262C009D for ; Thu, 28 Mar 2013 00:32:49 +1100 (EST) Received: from localhost ([::1]:60077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKqT6-000611-AG for incoming@patchwork.ozlabs.org; Wed, 27 Mar 2013 09:32:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKqSn-00060b-SZ for qemu-devel@nongnu.org; Wed, 27 Mar 2013 09:32:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKqSm-00045U-2K for qemu-devel@nongnu.org; Wed, 27 Mar 2013 09:32:25 -0400 Received: from mel.act-europe.fr ([194.98.77.210]:51943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKqSl-00044t-PJ; Wed, 27 Mar 2013 09:32:24 -0400 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id AA30F290095; Wed, 27 Mar 2013 14:32:20 +0100 (CET) X-Virus-Scanned: amavisd-new at eu.adacore.com 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 F7Jlq-STA2YH; Wed, 27 Mar 2013 14:32:20 +0100 (CET) Received: from PomPomGalli.act-europe.fr (pompomgalli.act-europe.fr [10.10.1.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id BD067290021; Wed, 27 Mar 2013 14:32:19 +0100 (CET) From: Fabien Chouteau To: qemu-devel@nongnu.org Date: Wed, 27 Mar 2013 14:32:16 +0100 Message-Id: <1364391136-13383-1-git-send-email-chouteau@adacore.com> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 194.98.77.210 Cc: qemu-ppc@nongnu.org, agraf@suse.de Subject: [Qemu-devel] [PATCH] PPC: init_excp_7x0: fix hreset entry point. 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: gingold According to the PowePC 750 user's manual, the vector offset for system reset (both /HRESET and /SRESET) is 0x00100. Signed-off-by: Fabien Chouteau --- target-ppc/translate_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 781170f..a5bae1e 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -2885,7 +2885,7 @@ static void init_excp_7x0 (CPUPPCState *env) env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700; env->hreset_excp_prefix = 0x00000000UL; /* Hardware reset vector */ - env->hreset_vector = 0xFFFFFFFCUL; + env->hreset_vector = 0xFFF00100UL; #endif } @@ -2931,7 +2931,7 @@ static void init_excp_750cx (CPUPPCState *env) env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700; env->hreset_excp_prefix = 0x00000000UL; /* Hardware reset vector */ - env->hreset_vector = 0xFFFFFFFCUL; + env->hreset_vector = 0xFFF00100UL; #endif } @@ -2959,7 +2959,7 @@ static void init_excp_7x5 (CPUPPCState *env) env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700; env->hreset_excp_prefix = 0x00000000UL; /* Hardware reset vector */ - env->hreset_vector = 0xFFFFFFFCUL; + env->hreset_vector = 0xFFF00100UL; #endif } @@ -2985,7 +2985,7 @@ static void init_excp_7400 (CPUPPCState *env) env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700; env->hreset_excp_prefix = 0x00000000UL; /* Hardware reset vector */ - env->hreset_vector = 0xFFFFFFFCUL; + env->hreset_vector = 0xFFF00100UL; #endif }