From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOpTv-0000E2-2b for qemu-devel@nongnu.org; Fri, 01 Jun 2018 15:13:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOpTu-00076P-6T for qemu-devel@nongnu.org; Fri, 01 Jun 2018 15:12:59 -0400 Date: Fri, 1 Jun 2018 15:12:49 -0400 From: Aaron Lindsay Message-ID: <20180601191249.GC12424@codeaurora.org> References: <1521232280-13089-16-git-send-email-alindsay@codeaurora.org> <20180417142318.GO24561@codeaurora.org> <20180517193104.GB4771@codeaurora.org> <20180531203906.GA12424@codeaurora.org> <20180601153423.GB12424@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v3 15/22] target/arm: Add ARM_FEATURE_V7VE for v7 Virtualization Extensions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm , Alistair Francis , Wei Huang , Peter Crosthwaite , QEMU Developers , Michael Spradling , Digant Desai On Jun 01 16:59, Peter Maydell wrote: > On 1 June 2018 at 16:34, Aaron Lindsay wrote: > >> switch (extract32(id_isar0, 24, 4)) { > >> case 1: > >> set_feature(&features, ARM_FEATURE_THUMB_DIV); > >> break; > >> case 2: > >> set_feature(&features, ARM_FEATURE_ARM_DIV); > >> set_feature(&features, ARM_FEATURE_THUMB_DIV); > >> break; > >> default: > >> break; > >> } > > > > Should this switch/case be removed entirely? > > Yes, I think so (and also the id_isar0 variable and the > idregs[] entry which arranges to initialize it). We should > just set the THUMB_DIV and ARM_DIV features explicitly. Okay, thanks for straightening me out! I sensed there was some inconsistency, but misjudged exactly where. I'll include this change in my next patchset. -Aaron -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.