From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5ghm-0007gb-G3 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 16:46:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5ghj-0002jF-65 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 16:46:34 -0400 Received: from mail-yh0-f43.google.com ([209.85.213.43]:34943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5ghj-0002j3-2O for qemu-devel@nongnu.org; Thu, 18 Jun 2015 16:46:31 -0400 Received: by yhak3 with SMTP id k3so64778537yha.2 for ; Thu, 18 Jun 2015 13:46:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1434554713-10220-1-git-send-email-serge.fdrv@gmail.com> References: <1434554713-10220-1-git-send-email-serge.fdrv@gmail.com> From: Peter Maydell Date: Thu, 18 Jun 2015 21:46:10 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] target-arm: Do not reset sysregs marked as ALIAS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov Cc: QEMU Developers On 17 June 2015 at 16:25, Sergey Fedorov wrote: > cp_reg_reset() is called from g_hash_table_foreach() which does not > define a specific ordering of the hash table iteration. Thus doing reset > for registers marked as ALIAS would give an ambiguous result when > resetvalue is different for original and alias resisters. Was this actually the case for any of our registers? ie, is this patch fixing a bug, or just cleaning up a potential cause of confusion? > Exit > cp_reg_reset() early when passed an alias register. Then clean up alias > register definitions from needless resetvalue and resetfn. > > Signed-off-by: Sergey Fedorov I've applied it to target-arm.next, but if this is fixing a bug it would be nice if I could update the commit message to say so. thanks -- PMM