|
From: | Richard Henderson |
Subject: | Re: [RFC PATCH 00/40] Toward class init of cpu features |
Date: | Sat, 7 Jan 2023 09:53:04 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 1/7/23 02:19, Alex Bennée wrote:
Richard Henderson <richard.henderson@linaro.org> writes:On 1/6/23 15:43, Alex Bennée wrote:What about cloning objects after they are realised? After all that is what we do for the core CPUClass in user-mode.No we don't. Where do you get that idea?Well linux-user does cpu_copy which involves a create step followed by a reset and then a bunch of copying state across. Can we assume all CPUs get reset before they are actively used?
The hash table creation happens during qdev_realize, there in cpu_create.
Would it be too hacky to defer the creation of those hash tables to the reset phase and skip it if already defined?
Even then you have the copy after the reset, so no, that won't work. r~
[Prev in Thread] | Current Thread | [Next in Thread] |