|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 5/6] target/i386/translate: use thread-local storage in !user-mode |
Date: | Tue, 11 Sep 2018 13:24:03 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 10/09/2018 14:30, Emilio G. Cota wrote: >> I'm confused - as we can have multi-threaded user space don't the same >> requirements apply? > In user-mode, code generation is serialized by mmap_lock. > Making these per-thread would just waste TLS space. It's stupid question time! How can the TLS work? tcg_x86_init is only called once, the first time cpu_exec_realizefn is called. Either they can be kept in non-TLS, or you should move them to DisasContext. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |