|
From: | Richard Henderson |
Subject: | Re: [PATCH 1/2] target/riscv/cpu: set cpu->cfg in register_cpu_props() |
Date: | Tue, 10 Jan 2023 21:39:16 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 1/10/23 12:14, Daniel Henrique Barboza wrote:
+/* + * Register CPU props based on env.misa_ext. If a non-zero + * value was set, register only the required cpu->cfg.ext_* + * properties and leave. env.misa_ext = 0 means that we want + * all the default properties to be registered. + */ static void register_cpu_props(DeviceState *dev)
Suggest invoking this as .instance_post_init hook on TYPE_RISCV_CPU. Then you don't need to manually call it on every cpu class. r~
[Prev in Thread] | Current Thread | [Next in Thread] |