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 2386c9901f83..ec6f5df3290a 100644
--- a/arm64.c
+++ b/arm64.c
@@ -1174,9 +1174,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.34.1