|
From: | Tim Sander |
Subject: | [Qemu-devel] target i386 compile problem for hw/core/nmi.c |
Date: | Fri, 27 Nov 2015 16:03:19 +0100 |
User-agent: | KMail/4.14.3 (Linux/4.1.0quirk-00001-gf1e27b0-dirty; KDE/4.14.13; x86_64; ; ) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |