qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v12 62/65] target/arm: refactor arm_cpu_finalize_features into


From: Richard Henderson
Subject: Re: [RFC v12 62/65] target/arm: refactor arm_cpu_finalize_features into cpu64
Date: Sun, 28 Mar 2021 13:12:06 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/26/21 1:36 PM, Claudio Fontana wrote:
+++ b/target/arm/monitor.c
@@ -184,9 +184,11 @@ CpuModelExpansionInfo 
*qmp_query_cpu_model_expansion(CpuModelExpansionType type,
          if (!err) {
              visit_check_struct(visitor, &err);
          }
+#ifdef TARGET_AARCH64
          if (!err) {
-            arm_cpu_finalize_features(ARM_CPU(obj), &err);
+            aarch64_cpu_finalize_features(ARM_CPU(obj), &err);
          }
+#endif /* TARGET_AARCH64 */
          visit_end_struct(visitor, NULL);
          visit_free(visitor);
          if (err) {
@@ -195,7 +197,9 @@ CpuModelExpansionInfo 
*qmp_query_cpu_model_expansion(CpuModelExpansionType type,
              return NULL;
          }
      } else {
-        arm_cpu_finalize_features(ARM_CPU(obj), &error_abort);
+#ifdef TARGET_AARCH64
+        aarch64_cpu_finalize_features(ARM_CPU(obj), &error_abort);
+#endif /* TARGET_AARCH64 */

These ifdefs are not an improvement.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]