Skip to content

Commit

Permalink
libdrgn: ppc64: use DRGN_ERROR_NOT_IMPLEMENTED when virtual address t…
Browse files Browse the repository at this point in the history
…ranslation is not supported

See #391.

Signed-off-by: Omar Sandoval <[email protected]>
  • Loading branch information
osandov committed Mar 20, 2024
1 parent f96a3f5 commit 2b67e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libdrgn/arch_ppc64.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ linux_kernel_pgtable_iterator_create_ppc64(struct drgn_program * prog,
err = drgn_program_find_object(prog, "interrupt_base_book3e", NULL,
DRGN_FIND_OBJECT_ANY, &tmp);
if (!err) {
return drgn_error_create(DRGN_ERROR_OTHER,
return drgn_error_create(DRGN_ERROR_NOT_IMPLEMENTED,
"virtual address translation is not available for BOOK3E CPU family");
}
if (err->code != DRGN_ERROR_LOOKUP)
Expand All @@ -372,7 +372,7 @@ linux_kernel_pgtable_iterator_create_ppc64(struct drgn_program * prog,
if (err)
return err;
if (!(mmu_features & 0x40)) {
return drgn_error_create(DRGN_ERROR_OTHER,
return drgn_error_create(DRGN_ERROR_NOT_IMPLEMENTED,
"virtual address translation is only supported for Radix MMU");
}

Expand Down

0 comments on commit 2b67e09

Please sign in to comment.