Received: from eggs.gnu.org ([2001:4830:134:3::10]:40482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciH1W-0006IZ-2i for qemu-devel@nongnu.org; Mon, 27 Feb 2017 03:51:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciH1S-0000bO-TJ for qemu-devel@nongnu.org; Mon, 27 Feb 2017 03:51:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:57206) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ciH1S-0000aw-N8 for qemu-devel@nongnu.org; Mon, 27 Feb 2017 03:51:10 -0500 Date: Mon, 27 Feb 2017 09:51:07 +0100 (CET) From: Miroslav Benes In-Reply-To: Message-ID: References: <20170224135045.10613-1-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] target-s390x: Implement lpp instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: agraf@suse.de, qemu-devel@nongnu.org, mmarek@suse.com, ebischoff@suse.com On Sat, 25 Feb 2017, Richard Henderson wrote: > On 02/25/2017 12:50 AM, Miroslav Benes wrote: > > Linux arch/s390/kernel/head(64).S uses lpp instruction if it is > > available in facilities list provided by stfl/stfle instruction. This is > > the case of newer z/System generations and their qemu definition. > > > > Signed-off-by: Miroslav Benes > > --- > > I can't find LPP in my PoO 11th edition... > > > +static ExitStatus op_lpp(DisasContext *s, DisasOps *o) > > +{ > > + check_privileged(s); > > + potential_page_fault(s); > > + > > + tcg_gen_st_i64(o->in2, cpu_env, offsetof(CPUS390XState, pp)); > > But you don't need the potential_page_fault, since this is not a store to > guest memory. Right. I got confused by Access Program Exception in the spec. Sending v2. Thanks for the review! Miroslav