No public description
PiperOrigin-RevId: 638645191
Change-Id: I580e538658f69eb91d8791dea9cc42382c8adaf4
diff --git a/cheriot/riscv_cheriot_instructions.cc b/cheriot/riscv_cheriot_instructions.cc
index a23bc7d..a1358c7 100644
--- a/cheriot/riscv_cheriot_instructions.cc
+++ b/cheriot/riscv_cheriot_instructions.cc
@@ -291,7 +291,7 @@
if (pcc->IsSentry()) {
if (pcc->object_type() != CapReg::kSentry) {
bool interrupt_enable =
- (pcc->object_type() == CapReg::kInterruptEnablingSentry) |
+ (pcc->object_type() == CapReg::kInterruptEnablingSentry) ||
(pcc->object_type() == CapReg::kInterruptEnablingReturnSentry);
mstatus->set_mie(interrupt_enable);
mstatus->Submit();