From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Jqt-0003hJ-NB for qemu-devel@nongnu.org; Wed, 26 Apr 2017 06:07:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Jqn-00026g-Q5 for qemu-devel@nongnu.org; Wed, 26 Apr 2017 06:07:15 -0400 Sender: Richard Henderson References: <1493051615-30715-1-git-send-email-peter.maydell@linaro.org> From: Richard Henderson Message-ID: Date: Wed, 26 Apr 2017 12:07:05 +0200 MIME-Version: 1.0 In-Reply-To: <1493051615-30715-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 0/3] split core mmu_idx from ARMMMUIdx values List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 04/24/2017 06:33 PM, Peter Maydell wrote: > Overall questions: > * does this look like it's workable enough to justify taking > it rather than the simple-but-worse-perf-on-some-archs > option 1 ? I think it's workable. > * this does risk breaking A profile in corner cases, because > C unfortunately doesn't typecheck int vs enum so if I forgot > a call to an index conversion function somewhere things will > break. are we happy the risk isn't too huge? If you like, we could add a tcg_debug assert somewhere that verifies that the given index is < NB_MMU_MODES... r~