mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 22:33:53 -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue