]> Git Repo - qemu.git/commitdiff
target/s390x: Fix broken user mode
authorStefan Weil <[email protected]>
Mon, 30 Jan 2017 13:15:17 +0000 (14:15 +0100)
committerCornelia Huck <[email protected]>
Thu, 23 Mar 2017 09:49:13 +0000 (10:49 +0100)
Returning NULL from get_max_cpu_model results in a SIGSEGV runtime error.

Signed-off-by: Stefan Weil <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Message-Id: <20170130131517[email protected]>
Cc: [email protected]
Signed-off-by: Christian Borntraeger <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/cpu_models.c

index 4ea3a2de806999c7629ec67b0695fc2545b89306..1434d153154bf29533d6ae4d232e3e771d75adc7 100644 (file)
@@ -660,7 +660,6 @@ static void check_compatibility(const S390CPUModel *max_model,
 
 static S390CPUModel *get_max_cpu_model(Error **errp)
 {
-#ifndef CONFIG_USER_ONLY
     static S390CPUModel max_model;
     static bool cached;
 
@@ -680,7 +679,6 @@ static S390CPUModel *get_max_cpu_model(Error **errp)
         cached = true;
         return &max_model;
     }
-#endif
     return NULL;
 }
 
This page took 0.027779 seconds and 4 git commands to generate.