From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqeTE-0004Cg-MD for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:53:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqeTA-0003X8-Ld for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:53:40 -0400 Received: from mail-bn1on0068.outbound.protection.outlook.com ([157.56.110.68]:20656 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqeTA-0003Wx-Bl for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:53:36 -0400 Date: Mon, 26 Oct 2015 10:53:30 +0100 From: "Edgar E. Iglesias" Message-ID: <20151026095330.GD3751@toto> References: <1444863346-9711-1-git-send-email-edgar.iglesias@gmail.com> <1444863346-9711-10-git-send-email-edgar.iglesias@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: 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: Peter Maydell Cc: QEMU Developers , Alexander Graf , Sergey Fedorov , Laurent Desnogues , "Edgar E. Iglesias" , Alex =?iso-8859-1?Q?Benn=E9e?= On Fri, Oct 23, 2015 at 05:53:09PM +0100, Peter Maydell wrote: > 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}" ? No reason.. I've removed the struct and zero so it's now: ARMMMUFaultInfo fi = {}; everywhere. Thanks, Edgar > > Otherwise > Reviewed-by: Peter Maydell > > thanks > -- PMM