From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDN5b-0002hX-0S for qemu-devel@nongnu.org; Sun, 27 Dec 2015 20:59:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDN5a-00068b-2a for qemu-devel@nongnu.org; Sun, 27 Dec 2015 20:59:10 -0500 References: <1449101933-24928-1-git-send-email-mdavidsaver@gmail.com> <1449101933-24928-7-git-send-email-mdavidsaver@gmail.com> From: Michael Davidsaver Message-ID: <56809768.3070902@gmail.com> Date: Sun, 27 Dec 2015 20:59:04 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 06/26] armv7m: fix I and F flag handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Peter Crosthwaite , qemu-arm , QEMU Developers On 12/17/2015 10:18 AM, Peter Maydell wrote: > On 17 December 2015 at 14:39, Peter Maydell wrote: >> On 3 December 2015 at 00:18, Michael Davidsaver wrote: >>> Despite having the same notation, these bits >>> have completely different meaning than -AR. >>> >>> Use armv7m_excp_running_prio() and the highest >>> pending exception priority to determine >>> if the pending exception can interrupt preempt. >>> --- >>> target-arm/cpu.c | 16 ++++++---------- >>> 1 file changed, 6 insertions(+), 10 deletions(-) >> Reviewed-by: Peter Maydell > ...except this breaks the build for linux-user: > > LINK arm-linux-user/qemu-arm > target-arm/cpu.o: In function `arm_v7m_cpu_exec_interrupt': > /home/petmay01/linaro/qemu-from-laptop/qemu/target-arm/cpu.c:316: > undefined reference to `armv7m_excp_running_prio' > > because the function you're calling here is in armv7m_nvic.c, > which isn't compiled into the linux-user binary. Is there any reason to include the armv7m code in linux-user at all?