From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2KZ0-0007Uz-6V for qemu-devel@nongnu.org; Fri, 27 Nov 2015 10:03:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2KYw-0002tH-Vy for qemu-devel@nongnu.org; Fri, 27 Nov 2015 10:03:54 -0500 Received: from lvps176-28-13-145.dedicated.hosteurope.de ([176.28.13.145]:56501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2KYw-0002tA-QQ for qemu-devel@nongnu.org; Fri, 27 Nov 2015 10:03:50 -0500 Received: from krieglstein.org (unknown [217.244.3.254]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id B8C7F181851 for ; Fri, 27 Nov 2015 16:03:19 +0100 (CET) From: Tim Sander Date: Fri, 27 Nov 2015 16:03:19 +0100 Message-ID: <2261461.vprCnqpeDH@dabox> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: [Qemu-devel] target i386 compile problem for hw/core/nmi.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Hi We are trying to call "inject_nmi" from a device on a x386 target. Unfortunatly it gets called with the wrong defines and the define TARGET_I386 is *not* defined. If we define TARGET_I386 for testing the code in the defines fails to compile. Trying to fix this by including: "qom/cpu.h" and "target-i386/qom-cpu.h" leads to target-i386/cpu-qom.h:24 hw/core/nmi.c:27: include/config.h:2:27: fatal error: config-target.h: No such file or directory compilation terminated. There is literally the same code in the function qmp_inject_nmi which has the right defines and works from command line. The question is what needs to be done that inject_nmi gets compiled for the right context (configure --target-list=softmmu-i386) with the TARGET_I386 define enabled? Best regards Tim