peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0094-target-alpha-Initialize-env-cpu_model_str.patch

5544c1
From fcf8cef0c7d8d197e863c1e8b7bcb567fa1fe729 Mon Sep 17 00:00:00 2001
5544c1
From: Richard Henderson <rth@twiddle.net>
5544c1
Date: Fri, 21 Sep 2012 14:15:36 +0200
5544c1
Subject: [PATCH] target-alpha: Initialize env->cpu_model_str
5544c1
MIME-Version: 1.0
5544c1
Content-Type: text/plain; charset=UTF-8
5544c1
Content-Transfer-Encoding: 8bit
5544c1
5544c1
Save the cpu_model_str so that we have a non-null value when
5544c1
creating a new cpu during clone.
5544c1
5544c1
Signed-off-by: Richard Henderson <rth@twiddle.net>
5544c1
Signed-off-by: Andreas Färber <afaerber@suse.de>
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 target-alpha/translate.c | 1 +
5544c1
 1 file changed, 1 insertion(+)
5544c1
5544c1
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
5544c1
index 4a9011a..3f9aee1 100644
5544c1
--- a/target-alpha/translate.c
5544c1
+++ b/target-alpha/translate.c
5544c1
@@ -3543,6 +3543,7 @@ CPUAlphaState * cpu_alpha_init (const char *cpu_model)
5544c1
     }
5544c1
     env->implver = implver;
5544c1
     env->amask = amask;
5544c1
+    env->cpu_model_str = cpu_model;
5544c1
 
5544c1
     qemu_init_vcpu(env);
5544c1
     return env;
5544c1
-- 
5544c1
1.7.12.1
5544c1