Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cheriintrin.h] Avoid unnecessary truncate in cheri_perms_get() #674

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Commits on Jan 12, 2023

  1. Fix cheri_otype_t in cheriintrin.h for RV32

    In RV32 the return type of __builtin_cheri_type_get() is int since that is
    what ptrdiff_t is by default. Use __PTRDIFF_TYPE__ instead of long an
    re-generate the test checks.
    arichardson committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    08c15d5 View commit details
    Browse the repository at this point in the history
  2. [cheriintrin.h] Avoid unnecessary truncate in cheri_perms_get()

    The intrinsic returns an i64 for 64-bit so we should use `ptraddr_t`
    as the underlying type for `cheri_perms_t`.
    arichardson committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    b24e4a0 View commit details
    Browse the repository at this point in the history