Sergey Fedorov <sergey.fedo...@linaro.org> writes: > From: Sergey Fedorov <serge.f...@gmail.com> > > Signed-off-by: Sergey Fedorov <serge.f...@gmail.com> > Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org> > --- > linux-user/main.c | 10 ++++++++++ > 1 file changed, 10 insertions(+)
Reviewed-by: Alex Bennée <alex.ben...@linaro.org> > > diff --git a/linux-user/main.c b/linux-user/main.c > index 5ff0b20bad89..a8790ac63f68 100644 > --- a/linux-user/main.c > +++ b/linux-user/main.c > @@ -3785,6 +3785,16 @@ void cpu_loop(CPUTLGState *env) > > 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) > { > if (ts->ts_tid == 0) { -- Alex Bennée