Received: from eggs.gnu.org ([2001:4830:134:3::10]:48006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4gGJ-000840-Iv for qemu-devel@nongnu.org; Wed, 09 Nov 2016 22:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4gGF-0000TC-Eu for qemu-devel@nongnu.org; Wed, 09 Nov 2016 22:42:51 -0500 Date: Thu, 10 Nov 2016 13:06:17 +1100 From: David Gibson Message-ID: <20161110020617.GE18060@umbus.fritz.box> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tMbDGjvJuJijemkf" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [TRIVIAL][RFC][PATCH] 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 --tMbDGjvJuJijemkf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 10, 2016 at 12:42:37PM +1100, Balbir Singh wrote: >=20 >=20 > As per the ISA we need a cause for FU exceptions.Executing a tabort r9 > for example in libc, 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. I caught this issue while testing > the latest kernel against Cedrics' latest pnv ipmi branch. >=20 > Signed-off-by: Balbir singh Applied to ppc-for-2.8 > --- > target-ppc/excp_helper.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c > index 808760b..cccea8d 100644 > --- a/target-ppc/excp_helper.c > +++ b/target-ppc/excp_helper.c > @@ -427,6 +427,7 @@ 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 = */ > + env->spr[SPR_FSCR] |=3D ((target_ulong)env->error_code << 56); > 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 --tMbDGjvJuJijemkf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYI9YZAAoJEGw4ysog2bOSyJIP/i9b1vH+UOhLp9r7+71Tv+wf QNVq33yyc6X9H4tdc43TSa7qaxci/ViTLLAXLUB3LA1lxb9TgH/pYZhNdrBscxYE XggXamJvp8WcLPMQejBinOLrvzWOGbjkui+WoPd2Wij/G4XIqr72G8h8M1WOu4EU ruD+bC3OxeGa8tkuKY0Mv3ceYIVS9vdpPYZosUELqKFIPIa3dKKHSDZoLK7rI0ib zaqjX5xCkcIQV5ln0+Nw43Xat+6SyKboeiAoX3H5jALMe1ny2EwhWT6VEmtRlF3x qS2KxwaYd2fCzJlku+Qat+DaVbVzMnnSaPdDugStBClfWjqbXkZD3LM2M3W/S8+g 8mv6AYTYerUeEsS2HWusA28ABNL/7OwcXpj0Q0wcl2U2XoMP8pD9gqKK92vm85NC ZzMf69i4wxgiO01He5Jj/kNMafsE/cXi+3xqZm2w569L+Iqq6Z6bVqFQz/fCT1Of 84Y1ZEWYH5RpFI9Dfwm3y3hwBfgYnHWVw7ObOB2hrQD+jFuPzNeSKhtnsNhfeih1 Q82Wd4VWiw+HoBPPJ5slm4s07MRqtHgpIu4JgTTKgcKCRUUF0f5CdLg/H7V5neX3 LY8IQ+tJTWJR9RJH73So1/5VowLkZFKgUsYD/BxcxzahtVg7oukaqyZNuVXQfCV4 +3lbLQ3qzq5l/UypwqHs =qri5 -----END PGP SIGNATURE----- --tMbDGjvJuJijemkf--