From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEFpL-0007f2-VG for qemu-devel@nongnu.org; Fri, 26 May 2017 10:02:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEFpL-0007vZ-AT for qemu-devel@nongnu.org; Fri, 26 May 2017 10:02:52 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:33966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEFpL-0007uY-4w for qemu-devel@nongnu.org; Fri, 26 May 2017 10:02:51 -0400 Received: by mail-qt0-x242.google.com with SMTP id l39so1377850qtb.1 for ; Fri, 26 May 2017 07:02:51 -0700 (PDT) Sender: Richard Henderson References: <20170525210508.4910-1-aurelien@aurel32.net> <20170525210508.4910-7-aurelien@aurel32.net> From: Richard Henderson Message-ID: Date: Fri, 26 May 2017 07:02:47 -0700 MIME-Version: 1.0 In-Reply-To: <20170525210508.4910-7-aurelien@aurel32.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/26] target/s390x: implement LOAD PAIR FROM QUADWORD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , qemu-devel@nongnu.org Cc: Alexander Graf On 05/25/2017 02:04 PM, Aurelien Jarno wrote: > +static ExitStatus op_lpq(DisasContext *s, DisasOps *o) > +{ > + /* In a parallel context, stop the world and single step. */ > + if (parallel_cpus) { > + potential_page_fault(s); > + gen_exception(EXCP_ATOMIC); > + return EXIT_NORETURN; > + } > + > + /* In a serial context, perform the two loads ... */ > + tcg_gen_qemu_ld64(o->out, o->in2, get_mem_index(s)); > + tcg_gen_addi_i64(o->in2, o->in2, 8); > + tcg_gen_qemu_ld64(o->out2, o->in2, get_mem_index(s)); > + return NO_EXIT; > +} This can be implemented in a parallel context with helper_atomic_ldo_be_mmu, though that must be done with a helper function. r~