From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eb9AH-0004hh-OS for qemu-devel@nongnu.org; Mon, 15 Jan 2018 13:07:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eb9AE-000152-Jz for qemu-devel@nongnu.org; Mon, 15 Jan 2018 13:07:21 -0500 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:44153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eb9AE-000142-Ek for qemu-devel@nongnu.org; Mon, 15 Jan 2018 13:07:18 -0500 Received: by mail-pl0-x243.google.com with SMTP id f8so2222961plk.11 for ; Mon, 15 Jan 2018 10:07:18 -0800 (PST) References: <20180113004338.16867-1-laurent@vivier.eu> <20180113004338.16867-2-laurent@vivier.eu> From: Richard Henderson Message-ID: <9a3f4e0b-dd3c-272a-b836-8f25647ceda5@linaro.org> Date: Mon, 15 Jan 2018 10:07:12 -0800 MIME-Version: 1.0 In-Reply-To: <20180113004338.16867-2-laurent@vivier.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/7] accel/tcg: add size paremeter in tlb_fill() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , qemu-s390x@nongnu.org, Thomas Huth , Bastian Koppelmann , Anthony Green , Chris Wulff , Alexander Graf , Max Filippov , Michael Walle , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Artyom Tarasenko , "Edgar E . Iglesias" , Paolo Bonzini , Stafford Horne , Guan Xuetao , Aurelien Jarno On 01/12/2018 04:43 PM, Laurent Vivier wrote: > The MC68040 MMU provides the size of the access that > triggers the page fault. > > This size is set in the Special Status Word which > is written in the stack frame of the access fault > exception. > > So we need the size in m68k_cpu_unassigned_access() and > m68k_cpu_handle_mmu_fault(). > > To be able to do that, this patch modifies the prototype of > handle_mmu_fault handler, tlb_fill() and probe_write(). > do_unassigned_access() already includes a size parameter. > > This patch also updates handle_mmu_fault handlers and > tlb_fill() of all targets (only parameter, no code change). > > Signed-off-by: Laurent Vivier > --- > v2: use "0" for the access size when we don't know > the size of the access > Reviewed-by: Richard Henderson r~