Received: from eggs.gnu.org ([2001:4830:134:3::10]:57432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxOVE-0004Cn-8x for qemu-devel@nongnu.org; Thu, 20 Oct 2016 21:20:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxOVA-00042w-1G for qemu-devel@nongnu.org; Thu, 20 Oct 2016 21:20:08 -0400 Date: Fri, 21 Oct 2016 12:09:15 +1100 From: David Gibson Message-ID: <20161021010915.GX11140@umbus.fritz.box> References: <20161020065912.16132-1-npiggin@gmail.com> <20161020065912.16132-2-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="s8wpp40TDz0KNMmP" Content-Disposition: inline In-Reply-To: <20161020065912.16132-2-npiggin@gmail.com> Subject: Re: [Qemu-devel] [PATCH 1/3] ppc: fix MSR_ME handling for system reset interrupt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nicholas Piggin Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Alexey Kardashevskiy , Alexander Graf --s8wpp40TDz0KNMmP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 20, 2016 at 05:59:10PM +1100, Nicholas Piggin wrote: > Power ISA specifies ME bit handling for system reset interrupt: >=20 > if the interrupt occurred while the thread was in power-saving > mode, set to 1; otherwise not altered >=20 > Signed-off-by: Nicholas Piggin I've applied this one to ppc-for-2.8. Looks like the remaining patches in the series need a little more polish. > --- > target-ppc/excp_helper.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c > index 921c39d..53c4075 100644 > --- a/target-ppc/excp_helper.c > +++ b/target-ppc/excp_helper.c > @@ -385,11 +385,11 @@ static inline void powerpc_excp(PowerPCCPU *cpu, in= t excp_model, int excp) > srr1 =3D SPR_BOOKE_CSRR1; > break; > case POWERPC_EXCP_RESET: /* System reset exception = */ > + /* A power-saving exception sets ME, otherwise it is unchanged */ > if (msr_pow) { > /* indicate that we resumed from power save mode */ > msr |=3D 0x10000; > - } else { > - new_msr &=3D ~((target_ulong)1 << MSR_ME); > + new_msr |=3D ((target_ulong)1 << MSR_ME); > } > =20 > new_msr |=3D (target_ulong)MSR_HVB; --=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 --s8wpp40TDz0KNMmP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYCWq7AAoJEGw4ysog2bOS40UQALVwAAt8zy8KWDCcCnKt/RbM 25QLkphyEj2S4Bn9zwiuaG8RObWiviH1lpWSWna1bZrI/YXeH3uYDQ+/IsWLhgR2 MejapFLpHRNzFOuyOfSPxCWbNBdcBDvCxBoiuVQyq2nIuPnWaYrjy1dn3AkRaMBr Psu9hBZ52yT5udR31zEx+hGIOfopVr0gzNvcAsoB+4PR5w9DwrwI/GXnW2qh877Y kQ7AFvMagu7UU3oESJfZlXglm3yDykahwt7HhPgXnWIQDwADjEcdBTS5EWDpkro+ 18rOMOjoy8Xv+qB9NjJahO4MZfSGLFsyACirXmtCZ4aC24bbWZwLDMU49Kc4abRn yX9HZqpVLrrfnpWPVb35bHNHdHKexVd4nqnTZuNVZa9N+lBcq90B0ZwinRZ+4YpK Sn/SlrSLalDvYiWVRkrxHFf3O8m56A4TZBL3EAbyugTheARhtBrB/hmVlK2DLY1u oxh6GSwg0mzjn9+D/Q8nabMwFhAXsoGKMcLzU+6cf/69eBu25STGgtJkfakZo7du yQ5s0lTrnCyHppRQreh/qAR6pwV28d8eqDy+AQhXc2FIpofk1hfea2Rs9M3NYkBD onfucjE0kQERJlVS5QK47l5XBR8lMYzy19I5wgXNOHY79Zw3J4yA0lVuDdre7qBe v4TOBsSyNNJsIYGMBHYM =tLEq -----END PGP SIGNATURE----- --s8wpp40TDz0KNMmP--