Crash only supports 4-level page table translation for 4K page now.
We use pud only when we use 4-level page table translation.
Thus, we can use page table level flag to know if we need
pud or not.
Signed-off-by: Kuan-Ying Lee <kuan-ying.lee(a)canonical.com>
---
arm64.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arm64.c b/arm64.c
index 16f712998576..45d65876efdd 100644
--- a/arm64.c
+++ b/arm64.c
@@ -1176,9 +1176,7 @@ arm64_dump_machdep_table(ulong arg)
fprintf(fp, " line_number_hooks: (not used)\n");
fprintf(fp, " last_pgd_read: %lx\n", machdep->last_pgd_read);
fprintf(fp, " last_pud_read: ");
- if ((PAGESIZE() == 65536) ||
- (PAGESIZE() == 16384) ||
- ((PAGESIZE() == 4096) && !(machdep->flags & VM_L4_4K)))
+ if (!(machdep->flags & VM_L4_4K))
fprintf(fp, "(not used)\n");
else
fprintf(fp, "%lx\n", machdep->last_pud_read);
--
2.43.0