qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH-for-8.0] target/arm: Keep "internals.h" internal to targe


From: Philippe Mathieu-Daudé
Subject: Re: [RFC PATCH-for-8.0] target/arm: Keep "internals.h" internal to target/arm/
Date: Fri, 9 Dec 2022 17:05:55 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 9/12/22 16:19, Richard Henderson wrote:
On 12/9/22 05:17, Philippe Mathieu-Daudé wrote:
+++ b/target/arm/machine.c
@@ -6,6 +6,45 @@
  #include "internals.h"
  #include "migration/cpu.h"
+/* This mapping is common between ID_AA64MMFR0.PARANGE and TCR_ELx.{I}PS. */
+static const uint8_t pamax_map[] = {
+    [0] = 32,
+    [1] = 36,
+    [2] = 40,
+    [3] = 42,
+    [4] = 44,
+    [5] = 48,
+    [6] = 52,
+};
...
+++ b/target/arm/ptw.c
@@ -42,45 +42,6 @@ static bool get_phys_addr_with_struct(CPUARMState *env, S1Translate *ptw,
                                        ARMMMUFaultInfo *fi)
      __attribute__((nonnull));
-/* This mapping is common between ID_AA64MMFR0.PARANGE and TCR_ELx.{I}PS. */
-static const uint8_t pamax_map[] = {
-    [0] = 32,
-    [1] = 36,
-    [2] = 40,
-    [3] = 42,
-    [4] = 44,
-    [5] = 48,
-    [6] = 52,
-};

How does this even compile with the remaining usage of pamax_map in get_phys_addr_lpae?

It does not :( I rebased 62 patches then tried to extract/post unrelated
patches like this one, but didn't build at each step and failed to
realize the broken rebase, *sigh*. Sorry.



reply via email to

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