From: Tim Sander <tim@krieglstein.org>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] target i386 compile problem for hw/core/nmi.c
Date: Fri, 27 Nov 2015 16:03:19 +0100 [thread overview]
Message-ID: <2261461.vprCnqpeDH@dabox> (raw)
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
next reply other threads:[~2015-11-27 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 15:03 Tim Sander [this message]
2015-11-27 16:21 ` [Qemu-devel] target i386 compile problem for hw/core/nmi.c Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2261461.vprCnqpeDH@dabox \
--to=tim@krieglstein.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.