Revision 51fb256a target-sh4/cpu.c
b/target-sh4/cpu.c | ||
---|---|---|
144 | 144 |
SuperHCPU *cpu_sh4_init(const char *cpu_model) |
145 | 145 |
{ |
146 | 146 |
SuperHCPU *cpu; |
147 |
CPUSH4State *env; |
|
148 | 147 |
ObjectClass *oc; |
149 | 148 |
|
150 | 149 |
oc = superh_cpu_class_by_name(cpu_model); |
... | ... | |
152 | 151 |
return NULL; |
153 | 152 |
} |
154 | 153 |
cpu = SUPERH_CPU(object_new(object_class_get_name(oc))); |
155 |
env = &cpu->env; |
|
156 |
env->cpu_model_str = cpu_model; |
|
157 | 154 |
|
158 | 155 |
object_property_set_bool(OBJECT(cpu), true, "realized", NULL); |
159 | 156 |
|
Also available in: Unified diff