qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user: Move cpu_clone_regs() and cpu_set_t


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] linux-user: Move cpu_clone_regs() and cpu_set_tls() into linux-user
Date: Tue, 25 Jun 2013 06:56:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

On 06/25/2013 03:35 AM, Peter Maydell wrote:
> (and maybe even actually get all targets
> up to having NPTL enabled, since it's mostly just implementing
> the two functions being moved here for x86, sparc, openrisc.

There's far more to it than that for x86.  You've got to add
support for all of the locked arithmetic instructions.

We currently have several hacks for atomic operations in
linux-user, usually involving some escape into the cpu loop that
pauses the other threads.  This as opposed to assuming some
atomic support on behalf of the host...

It's a mess.


r~



reply via email to

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