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