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@xxxxxxxxxxxxx> --- 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 -- Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/ Contribution Guidelines: https://github.com/crash-utility/crash/wiki