From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpfav-0002ar-Qk for qemu-devel@nongnu.org; Fri, 23 Oct 2015 12:53:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpfar-00032J-QG for qemu-devel@nongnu.org; Fri, 23 Oct 2015 12:53:33 -0400 Received: from mail-vk0-f52.google.com ([209.85.213.52]:35237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpfar-00032F-MH for qemu-devel@nongnu.org; Fri, 23 Oct 2015 12:53:29 -0400 Received: by vkfw189 with SMTP id w189so67335884vkf.2 for ; Fri, 23 Oct 2015 09:53:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1444863346-9711-10-git-send-email-edgar.iglesias@gmail.com> References: <1444863346-9711-1-git-send-email-edgar.iglesias@gmail.com> <1444863346-9711-10-git-send-email-edgar.iglesias@gmail.com> From: Peter Maydell Date: Fri, 23 Oct 2015 17:53:09 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v4 09/13] target-arm: Add ARMMMUFaultInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Edgar Iglesias , QEMU Developers , Alexander Graf , Laurent Desnogues , Sergey Fedorov , =?UTF-8?B?QWxleCBCZW5uw6ll?= On 14 October 2015 at 23:55, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > Introduce ARMMMUFaultInfo to propagate MMU Fault information > across the MMU translation code path. This is in preparation for > adding Stage-2 translation. > > No functional changes. > > Signed-off-by: Edgar E. Iglesias > @@ -1774,9 +1775,10 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value, > bool ret; > uint64_t par64; > MemTxAttrs attrs = {}; > + ARMMMUFaultInfo fi = {}; Why are most of these initialized with "{}" ... > @@ -83,8 +83,9 @@ void tlb_fill(CPUState *cs, target_ulong addr, int is_write, int mmu_idx, > { > bool ret; > uint32_t fsr = 0; > + struct ARMMMUFaultInfo fi = {0}; ...but this one uses "{0}" ? Otherwise Reviewed-by: Peter Maydell thanks -- PMM