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:
@@ -42,7 +42,7 @@ const char *filename;
|
||||
const char *argv0;
|
||||
int gdbstub_port;
|
||||
envlist_t *envlist;
|
||||
const char *cpu_model;
|
||||
static const char *cpu_model;
|
||||
unsigned long mmap_min_addr;
|
||||
#if defined(CONFIG_USE_GUEST_BASE)
|
||||
unsigned long guest_base;
|
||||
@@ -3287,7 +3287,7 @@ void init_task_state(TaskState *ts)
|
||||
|
||||
CPUArchState *cpu_copy(CPUArchState *env)
|
||||
{
|
||||
CPUArchState *new_env = cpu_init(env->cpu_model_str);
|
||||
CPUArchState *new_env = cpu_init(cpu_model);
|
||||
#if defined(TARGET_HAS_ICE)
|
||||
CPUBreakpoint *bp;
|
||||
CPUWatchpoint *wp;
|
||||
|
||||
Reference in New Issue
Block a user