Sergey Fedorov <[email protected]> writes: > From: Sergey Fedorov <[email protected]> > > Signed-off-by: Sergey Fedorov <[email protected]> > Signed-off-by: Sergey Fedorov <[email protected]> > --- > linux-user/main.c | 10 ++++++++++ > 1 file changed, 10 insertions(+)
Reviewed-by: Alex Bennée <[email protected]> > > 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
