Skip to content

Commit 8581eb8

Browse files
committed
[CHERI] Fix tests after 46ef828
1 parent 46ef828 commit 8581eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Headers/cheri_init_globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static const __SIZE_TYPE__ function_reloc_flag = (__SIZE_TYPE__)1
5151
<< (__SIZE_WIDTH__ - 1);
5252
static const __SIZE_TYPE__ constant_reloc_flag = (__SIZE_TYPE__)1
5353
<< (__SIZE_WIDTH__ - 2);
54-
#ifdef __riscv_xcheri
54+
#if defined(__riscv_xcheri) || defined(__mips__)
5555
static const __SIZE_TYPE__ function_pointer_permissions_mask =
5656
~(__SIZE_TYPE__)(__CHERI_CAP_PERMISSION_PERMIT_SEAL__ |
5757
__CHERI_CAP_PERMISSION_PERMIT_STORE_CAPABILITY__ |

0 commit comments

Comments
 (0)