|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v3 35/43] tcg: dynamically allocate optimizer temps |
Date: | Thu, 20 Jul 2017 14:02:53 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/20/2017 01:53 PM, Emilio G. Cota wrote:
BTW, is there any chance that the pool will be initialized before we copy tcg_init_ctx? That'd mean the main thread has performed translation, which seems unlikely to me. But should then we bother clearing the TCGProfile counters after we copy tcg_init_ctx? I don't see how without translation counters would be !0.
I wouldn't think so. This cpu setup should be happening very early.We could perhaps look at arranging fields such that all the fields that are "shared" between the contexts are up front, and use the qemu standard
memcpy(new, old, offsetof(TCGContext, end_common_fields)); trick, and zero the rest. r~
[Prev in Thread] | Current Thread | [Next in Thread] |