Received: from eggs.gnu.org ([208.118.235.92]:40172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKt7n-0005Tg-3Q for qemu-devel@nongnu.org; Wed, 27 Mar 2013 12:22:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKt7i-00057c-J5 for qemu-devel@nongnu.org; Wed, 27 Mar 2013 12:22:55 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Alexander Graf In-Reply-To: <51531BA2.4020206@adacore.com> Date: Wed, 27 Mar 2013 17:22:46 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <65AD5071-1DD9-4356-96AE-4F44A2217DFB@suse.de> References: <1364392235-6193-1-git-send-email-chouteau@adacore.com> <4427FBE0-BA0D-4BFD-9D7C-F1406DF5239A@suse.de> <5153093D.6040802@adacore.com> <6F814D75-FCE6-4B8A-8510-0AE8FCFB0A9E@suse.de> <51531522.2060402@adacore.com> <0AD74CD0-CCA5-40A1-A627-1475C0A6109E@suse.de> <51531BA2.4020206@adacore.com> Subject: Re: [Qemu-devel] [Qemu-ppc] [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 17:17, Fabien Chouteau wrote: > On 03/27/2013 05:07 PM, Alexander Graf wrote: >>=20 >> On 27.03.2013, at 16:49, Fabien Chouteau wrote: >>> Alright, we can get rid of hreset_excp_prefix then. >>=20 >> I don't think we can get rid of the variable. G5s for example set the = prefix through some HID register. >>=20 >=20 > I can't find this in the code... Ah, hreset_excp_prefix vs excp_prefix. My bad. I was thinking of = excp_prefix. The SPR I was thinking of was HIOR: static void spr_write_hior (void *opaque, int sprn, int gprn) { TCGv t0 =3D tcg_temp_new(); tcg_gen_andi_tl(t0, cpu_gpr[gprn], 0x3FFFFF00000ULL); tcg_gen_st_tl(t0, cpu_env, offsetof(CPUPPCState, excp_prefix)); tcg_temp_free(t0); } Alex