Received: from eggs.gnu.org ([208.118.235.92]:48531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKqo5-0007vO-Mg for qemu-devel@nongnu.org; Wed, 27 Mar 2013 09:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKqo0-0004N1-NU for qemu-devel@nongnu.org; Wed, 27 Mar 2013 09:54:25 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <1364392235-6193-1-git-send-email-chouteau@adacore.com> Date: Wed, 27 Mar 2013 14:54:17 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1364392235-6193-1-git-send-email-chouteau@adacore.com> Subject: Re: [Qemu-devel] [PATCH] PPC: init_excp_7x0: fix hreset entry point. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabien Chouteau Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 27.03.2013, at 14:50, Fabien Chouteau wrote: > According to the PowePC 750 user's manual, the vector offset for = system PowerPC? > reset (both /HRESET and /SRESET) is 0x00100. >=20 > Signed-off-by: Fabien Chouteau > --- > target-ppc/translate_init.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > 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] =3D 0x00001700; > env->hreset_excp_prefix =3D 0x00000000UL; > /* Hardware reset vector */ > - env->hreset_vector =3D 0xFFFFFFFCUL; > + env->hreset_vector =3D 0xFFF00100UL; As you properly explained above, the reset vector is 0x100 according to = the spec. However, hreset_excp_prefix is 0x0. How do we end up getting = to 0xfff00100 here? Alex > #endif > } >=20 > @@ -2931,7 +2931,7 @@ static void init_excp_750cx (CPUPPCState *env) > env->excp_vectors[POWERPC_EXCP_THERM] =3D 0x00001700; > env->hreset_excp_prefix =3D 0x00000000UL; > /* Hardware reset vector */ > - env->hreset_vector =3D 0xFFFFFFFCUL; > + env->hreset_vector =3D 0xFFF00100UL; > #endif > } >=20 > @@ -2959,7 +2959,7 @@ static void init_excp_7x5 (CPUPPCState *env) > env->excp_vectors[POWERPC_EXCP_THERM] =3D 0x00001700; > env->hreset_excp_prefix =3D 0x00000000UL; > /* Hardware reset vector */ > - env->hreset_vector =3D 0xFFFFFFFCUL; > + env->hreset_vector =3D 0xFFF00100UL; > #endif > } >=20 > @@ -2985,7 +2985,7 @@ static void init_excp_7400 (CPUPPCState *env) > env->excp_vectors[POWERPC_EXCP_THERM] =3D 0x00001700; > env->hreset_excp_prefix =3D 0x00000000UL; > /* Hardware reset vector */ > - env->hreset_vector =3D 0xFFFFFFFCUL; > + env->hreset_vector =3D 0xFFF00100UL; > #endif > } >=20 > --=20 > 1.7.9.5 >=20