Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4WxF-0003BA-8N for qemu-devel@nongnu.org; Wed, 21 Apr 2010 06:14:49 -0400 Received: from [140.186.70.92] (port=37056 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4WxD-00038D-9m for qemu-devel@nongnu.org; Wed, 21 Apr 2010 06:14:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4WxB-0006JM-Qt for qemu-devel@nongnu.org; Wed, 21 Apr 2010 06:14:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39423 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4WxB-0006J6-Gp for qemu-devel@nongnu.org; Wed, 21 Apr 2010 06:14:45 -0400 Subject: Re: [Qemu-devel] [PATCH 2/2] target-ppc: fix interrupt vectors for MPC603 and e300 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <1271841716-11582-3-git-send-email-thomas_ml@monjalon.net> Date: Wed, 21 Apr 2010 12:14:42 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9658034F-3621-4F6B-BBD7-CFDAF7E8BCDB@suse.de> References: <1271841716-11582-1-git-send-email-thomas_ml@monjalon.net> <1271841716-11582-3-git-send-email-thomas_ml@monjalon.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Monjalon Cc: qemu-devel@nongnu.org On 21.04.2010, at 11:21, Thomas Monjalon wrote: > From: Thomas Monjalon >=20 > The vectors are listed > - in the chapter 1.3.3.2 (Implementation-Specific Interrupt Model) > of the e300 datasheet [e300CORERM] and > - in the chapter 3.5.2 (PowerPC 603 Microprocessor Exception Model) > of the MPC603 datasheet. >=20 > As e300 inherits from MPC603, init_excp_e300() calls init_excp_603(). >=20 > Signed-off-by: Thomas Monjalon > --- > target-ppc/translate_init.c | 13 +++++++++++-- > 1 files changed, 11 insertions(+), 2 deletions(-) >=20 > diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c > index 9e42831..f3e266d 100644 > --- a/target-ppc/translate_init.c > +++ b/target-ppc/translate_init.c > @@ -2853,7 +2853,16 @@ static void init_excp_603 (CPUPPCState *env) > env->excp_vectors[POWERPC_EXCP_SMI] =3D 0x00001400; > env->hreset_excp_prefix =3D 0x00000000UL; > /* Hardware reset vector */ > - env->hreset_vector =3D 0xFFFFFFFCUL; > + env->hreset_vector =3D 0x00000100UL; Are you 100% sure this is correct? IIRC the reset vector is dictated by = the CPU initialization sequence, so there's no hardwired value here = really. Btw - what do you use to test your patches? Alex