mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
cpu: Drop cpu_model_str from CPU_COMMON
Since this is only read in cpu_copy() and linux-user has a global cpu_model, drop the field from generic code. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
30ba0ee52d
commit
51fb256ab5
14 changed files with 2 additions and 29 deletions
|
@ -131,7 +131,6 @@ static ObjectClass *alpha_cpu_class_by_name(const char *cpu_model)
|
|||
AlphaCPU *cpu_alpha_init(const char *cpu_model)
|
||||
{
|
||||
AlphaCPU *cpu;
|
||||
CPUAlphaState *env;
|
||||
ObjectClass *cpu_class;
|
||||
|
||||
cpu_class = alpha_cpu_class_by_name(cpu_model);
|
||||
|
@ -140,9 +139,6 @@ AlphaCPU *cpu_alpha_init(const char *cpu_model)
|
|||
cpu_class = object_class_by_name(TYPE("ev67"));
|
||||
}
|
||||
cpu = ALPHA_CPU(object_new(object_class_get_name(cpu_class)));
|
||||
env = &cpu->env;
|
||||
|
||||
env->cpu_model_str = cpu_model;
|
||||
|
||||
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue