Received: from eggs.gnu.org ([2001:4830:134:3::10]:37999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c50Gx-0002Qq-7m for qemu-devel@nongnu.org; Thu, 10 Nov 2016 20:04:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c50Gu-0007c8-KE for qemu-devel@nongnu.org; Thu, 10 Nov 2016 20:04:51 -0500 Date: Fri, 11 Nov 2016 10:50:57 +1100 From: David Gibson Message-ID: <20161110235057.GE18868@umbus.fritz.box> References: <20161110020617.GE18060@umbus.fritz.box> <20161110024654.GF18060@umbus.fritz.box> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XuV1QlJbYrcVoo+x" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2] FU exceptions should carry a cause (IC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Balbir Singh Cc: qemu-ppc@nongnu.org, Cedric Le Goater , qemu-devel@nongnu.org --XuV1QlJbYrcVoo+x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 10, 2016 at 03:37:31PM +1100, Balbir Singh wrote: >=20 >=20 > As per the ISA we need a cause and executing a tabort r9 in libc > for example causes a EXCP_FU exception, we don't wire up the > IC (cause) when we post the exception. The cause is required > for the kernel to do the right thing. The fix applies only to 64 > bit ppc targets. >=20 > Signed-off-by: Balbir singh Applied to ppc-for-2.8. > --- > Changelog v2: > Make the code 64 bit specific >=20 > target-ppc/excp_helper.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c > index 808760b..93369d4 100644 > --- a/target-ppc/excp_helper.c > +++ b/target-ppc/excp_helper.c > @@ -427,6 +427,9 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int = excp_model, int excp) > case POWERPC_EXCP_VPU: /* Vector unavailable exception = */ > case POWERPC_EXCP_VSXU: /* VSX unavailable exception = */ > case POWERPC_EXCP_FU: /* Facility unavailable exception = */ > +#ifdef TARGET_PPC64 > + env->spr[SPR_FSCR] |=3D ((target_ulong)env->error_code << 56); > +#endif > break; > case POWERPC_EXCP_PIT: /* Programmable interval timer interrup= t */ > LOG_EXCP("PIT exception\n"); --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --XuV1QlJbYrcVoo+x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYJQfhAAoJEGw4ysog2bOSq6EP/3iZGTzLc1rw0hY4KxqoA54f +/iOIohFrinWxvVk2mQQZ90kU2p4cLh2Y8qkuOiZ7NDyfMfHyuSsuVGpDZmoQ7+P eWHn3tBugNzCf9T9jV7SrGyo7vcwJwqIs+yXY/popssBsaykA2Cg2cQOionLsAen kOxZquOwXzP4Z24j3lEnCo/kQm7QE04uVv9iNETsKjpbFUpaTsU87RrzUAS/3K3W V0a1KJf6gphPupae9A6w0ywr35Te3wcKIXsq4aqxjlpwe7VZQlr+Radim5RNlbcS gp4JLa2bTGiwYSIVFqy6R/7Y9HwsyI8zkwcLPDDDq29Ytz7hSQBvbDDdFQx2YA2e emZlQ0FrqHopkJgfTEjZOCbjoSLwoxV1/m3OX1cow57mpNPdREnCnVnJokGfoV4I SsSv8HwmnrUzk5UV8bJgeAq+HYSpEApLjzEYxI+HacF7w6/ffJJb06kRQpW1qSMz AT0a0OigUu+8poNk3z/+DCK12PBovPSLTZGVKgq0PII/HvWU3OkPuRBZR57l7Nwh iW8BvPDKACKF7+mjD3SkBfDYq98kU7QAyMHZEUx/snWS+OnljGreSIj7Agj+WBWw EIRVJeK5+hZ8RPZGnFxu5mQQqVz7INh8wVFqAvicNtyNs8DWEXYLUIEhVZl7cs1O vzhjUCc7W77CeVTu3B9W =Kb2f -----END PGP SIGNATURE----- --XuV1QlJbYrcVoo+x--