Skip to contentSkip to conversation

target/arm: Remove duplicate 'host' entry in '-cpu ?' output

PATCH Applied Philippe Mathieu-Daudé 2 participants 2 messages Jul 27, 2018 – Jul 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm: Remove duplicate 'host' entry in '-cpu ?' output

Since 86f0a186d6f the TYPE_ARM_HOST_CPU is only compiled when CONFIG_KVM is enabled.

Remove the now redundant special-case introduced in a96c0514ab7, to avoid:

  $ qemu-system-aarch64 -machine virt -cpu \? | fgrep host
  host
  host (only available in KVM mode)
---
 target/arm/helper.c | 6 ------
 1 file changed, 6 deletions(-)
target/arm/helper.c +0 -6
index 22d812240a..66afb08ee0 100644
@@ -5591,12 +5591,6 @@ void arm_cpu_list(FILE *f, fprintf_function cpu_fprintf)
     (*cpu_fprintf)(f, "Available CPUs:\n");
     g_slist_foreach(list, arm_cpu_list_entry, &s);
     g_slist_free(list);
-#ifdef CONFIG_KVM
-    /* The 'host' CPU type is dynamically registered only if KVM is
-     * enabled, so we have to special-case it here:
-     */
-    (*cpu_fprintf)(f, "  host (only available in KVM mode)\n");
-#endif
 }
 
 static void arm_cpu_add_definition(gpointer data, gpointer user_data)
Signature · 1 line
2.18.0
#1 lore raw
Quoted 19 lines · Philippe Mathieu-Daudé

Since 86f0a186d6f the TYPE_ARM_HOST_CPU is only compiled when CONFIG_KVM is enabled.

Remove the now redundant special-case introduced in a96c0514ab7, to avoid:

  $ qemu-system-aarch64 -machine virt -cpu \? | fgrep host
  host
  host (only available in KVM mode)
---
 target/arm/helper.c | 6 ------
 1 file changed, 6 deletions(-)
target/arm/helper.c +0 -0
index 22d812240a..66afb08ee0 100644

target/arm/helper.c void arm_cpu_list(FILE *f, fprintf_function cpu_fprintf) · line 5594

Quoted 10 lines
target/arm/helper.c +0 -6
@@ -5591,12 +5591,6 @@ void arm_cpu_list(FILE *f, fprintf_function cpu_fprintf)
     (*cpu_fprintf)(f, "Available CPUs:\n");
     g_slist_foreach(list, arm_cpu_list_entry, &s);
     g_slist_free(list);
-#ifdef CONFIG_KVM
-    /* The 'host' CPU type is dynamically registered only if KVM is
-     * enabled, so we have to special-case it here:
-     */
-    (*cpu_fprintf)(f, "  host (only available in KVM mode)\n");
-#endif
 }

Applied to target-arm.next for 3.0, thanks.

-- PMM