qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in use


From: Paul Brook
Subject: Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2
Date: Tue, 2 Jun 2009 22:56:24 +0100
User-agent: KMail/1.11.2 (Linux/2.6.29-2-amd64; KDE/4.2.2; x86_64; ; )

> > Could we use the real TID? Seems silly to invent a new value when the
> > host has already found one for us...
>
> That would work for threaded usermode emulation.  But for multiple-cpu
> system-mode emulation, the CPUs are unlikely to have unique TID values
> (e.g. r2 on powerpc or what have you).  And if you're going to support
> hotplugging someday, you're going to have support generation of unique
> IDs somewhere along the way.  Using the same code for usermode and
> system mode seems like the better, more robust/future-proof option.

Using threads for CPU emulation is just plain wrong.

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]