Patchwork [10/11] target-alpha: Initialize env->cpu_model_str

login
register
mail settings
Submitter Andreas Färber
Date Sept. 21, 2012, 2:38 p.m.
Message ID <1348238315-29748-11-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/185754/
State New
Headers show

Comments

Andreas Färber - Sept. 21, 2012, 2:38 p.m.
From: Richard Henderson <rth@twiddle.net>

Save the cpu_model_str so that we have a non-null value when
creating a new cpu during clone.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 target-alpha/translate.c |    1 +
 1 Datei geändert, 1 Zeile hinzugefügt(+)

Patch

diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 12de6a3..93063fb 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -3549,6 +3549,7 @@  CPUAlphaState * cpu_alpha_init (const char *cpu_model)
     }
     env->implver = implver;
     env->amask = amask;
+    env->cpu_model_str = cpu_model;
 
     qemu_init_vcpu(env);
     return env;