提交 e776bffb 编写于 作者: B Blue Swirl

qtest: add dummy functions for user emulators

Allow qtest to be used also in files used for user emulators by
introducing dummy functions.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 85215d41
......@@ -16,6 +16,7 @@
#include "qemu-common.h"
#if !defined(CONFIG_USER_ONLY)
extern int qtest_allowed;
extern const char *qtest_chrdev;
extern const char *qtest_log;
......@@ -31,5 +32,22 @@ static inline int qtest_available(void)
}
int qtest_init(void);
#else
static inline bool qtest_enabled(void)
{
return false;
}
static inline int qtest_available(void)
{
return 0;
}
static inline int qtest_init(void)
{
return 0;
}
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册