From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da1w2-00051H-Qt for qemu-devel@nongnu.org; Tue, 25 Jul 2017 11:39:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1da1vy-0002iP-Rx for qemu-devel@nongnu.org; Tue, 25 Jul 2017 11:39:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51314) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1da1vy-0002hy-Lp for qemu-devel@nongnu.org; Tue, 25 Jul 2017 11:39:42 -0400 Date: Tue, 25 Jul 2017 17:39:16 +0200 From: Cornelia Huck Message-ID: <20170725173916.627fdd97@gondolin> In-Reply-To: <20170721125609.11117-3-david@redhat.com> References: <20170721125609.11117-1-david@redhat.com> <20170721125609.11117-3-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 2/6] target/s390x: fix pgm irq ilen in translate_pages() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Hildenbrand Cc: qemu-devel@nongnu.org, rth@twiddle.net, Aurelien Jarno , thuth@redhat.com, borntraeger@de.ibm.com On Fri, 21 Jul 2017 14:56:05 +0200 David Hildenbrand wrote: > 0 is certainly wrong. Let's use ILEN_AUTO. > > Signed-off-by: David Hildenbrand > --- > target/s390x/mmu_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c > index a873dc4..1ad0158 100644 > --- a/target/s390x/mmu_helper.c > +++ b/target/s390x/mmu_helper.c > @@ -440,7 +440,7 @@ static int translate_pages(S390CPU *cpu, vaddr addr, int nr_pages, > } > if (!address_space_access_valid(&address_space_memory, pages[i], > TARGET_PAGE_SIZE, is_write)) { > - program_interrupt(env, PGM_ADDRESSING, 0); > + program_interrupt(env, PGM_ADDRESSING, ILEN_AUTO); > return -EFAULT; > } > addr += TARGET_PAGE_SIZE; Thanks, applied.