From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkxFO-0003lg-Ca for qemu-devel@nongnu.org; Thu, 15 May 2014 11:07:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkxFF-00062x-D3 for qemu-devel@nongnu.org; Thu, 15 May 2014 11:07:02 -0400 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:41250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkxFF-00062c-5W for qemu-devel@nongnu.org; Thu, 15 May 2014 11:06:53 -0400 Received: by mail-la0-f48.google.com with SMTP id mc6so900187lab.7 for ; Thu, 15 May 2014 08:06:52 -0700 (PDT) Message-ID: <5374D80A.6030409@gmail.com> Date: Thu, 15 May 2014 19:06:50 +0400 From: Sergey Fedorov MIME-Version: 1.0 References: <1399997768-32014-1-git-send-email-aggelerf@ethz.ch> <1399997768-32014-11-git-send-email-aggelerf@ethz.ch> <537307E8.3080405@gmail.com> <5373B84C.5070707@gmail.com> <5374D2E4.6000104@ethz.ch> In-Reply-To: <5374D2E4.6000104@ethz.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 10/23] target-arm: implement CPACR register logic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabian Aggeler , qemu-devel@nongnu.org Cc: edgar.iglesias@gmail.com, Sergey Fedorov , peter.maydell@linaro.org On 15.05.2014 18:44, Fabian Aggeler wrote: >>> Please, look at disas_vfp_insn() and disas_neon_*_insn() functions. >>> Looks like them should be updated. In that case do not forget to adjust >>> arm_cpu_reset() so user emulation would be able to execute VFP/NEON >>> instructions. >> >> See ARM ARM v7-AR B1.11.1 >> > > I don't quite get what you mean. Bits 20-24 of c1_coproc already get > set to 1 for user emulation in arm_cpu_reset(). And disas_cfp_insn and > disas_neon_*_insn() all check s->cpacr_fpen in the beginning (which > gets set in cpu_get_tb_cpu_state() if bits 20-22 of c1_coproc are set > to 3 or (1 && cpu is in user mode)). > > So I guess we should add some checks for NSACR, to only set that flag > if the corresponding NSACR bit is set. Sorry, you are right. Regards, Sergey.