linux-user: Add qemu_cpu_is_self() and qemu_cpu_kick()
Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com> Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <1470158864-17651-9-git-send-email-alex.bennee@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
959f593c0e
commit
178f94297a
|
@ -3777,6 +3777,16 @@ void cpu_loop(CPUTLGState *env)
|
||||||
|
|
||||||
THREAD CPUState *thread_cpu;
|
THREAD CPUState *thread_cpu;
|
||||||
|
|
||||||
|
bool qemu_cpu_is_self(CPUState *cpu)
|
||||||
|
{
|
||||||
|
return thread_cpu == cpu;
|
||||||
|
}
|
||||||
|
|
||||||
|
void qemu_cpu_kick(CPUState *cpu)
|
||||||
|
{
|
||||||
|
cpu_exit(cpu);
|
||||||
|
}
|
||||||
|
|
||||||
void task_settid(TaskState *ts)
|
void task_settid(TaskState *ts)
|
||||||
{
|
{
|
||||||
if (ts->ts_tid == 0) {
|
if (ts->ts_tid == 0) {
|
||||||
|
|
Loading…
Reference in a new issue