From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlEs3-0002d8-FQ for qemu-devel@nongnu.org; Thu, 23 Apr 2015 07:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlErv-0005qd-HE for qemu-devel@nongnu.org; Thu, 23 Apr 2015 07:00:39 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:44855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlErv-0005nz-9T for qemu-devel@nongnu.org; Thu, 23 Apr 2015 07:00:31 -0400 Message-ID: <5538D0C2.9080303@imgtec.com> Date: Thu, 23 Apr 2015 12:00:18 +0100 From: Leon Alrae MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/3] arm: semihosting: Wire up A64 HLT 0xf000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christopher Covington Cc: Peter Maydell , QEMU Developers , Liviu Ionescu Hi Christopher, On 09/04/2015 18:57, Peter Maydell wrote: > On 9 April 2015 at 18:23, Christopher Covington > wrote: >> On Fri, Mar 27, 2015 at 12:40 PM, Peter Maydell >> wrote: >>> You need to have the semihosting_enabled check here rather >>> than in the do_interrupt code, because otherwise we won't >>> behave correctly in the disabled case. >> >> Do you have suggestions for getting semihosting_enabled defined in >> translate-a64.c? I'm likely doing something dumb, but while #include >> "sysemu/sysemu.h" at first seemed like the obvious approach, and >> appears to work for -softmmu, I'm getting errors with that when >> building -linux-user. > > sysemu.h is an ugly grab-bag of things that are specific to the > system emulator config. Semihosting is always enabled for linux-user, > so it doesn't have an equivalent switch. > > Let's clean this up a bit, by creating a new include/exec/semihost.h, Do you happen to have this clean up available somewhere? I just want to make sure I'm not duplicating the work as my patches will touch the same area. Thanks, Leon