From 796cf41c9be7663cc12c531dd421031c98683dd0 Mon Sep 17 00:00:00 2001 From: Peter Rugg Date: Tue, 7 Jan 2020 11:24:17 +0000 Subject: [PATCH] Fix off-by-one in max otype --- CHERICC_Fat.bsv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHERICC_Fat.bsv b/CHERICC_Fat.bsv index 699132d..a2077a9 100644 --- a/CHERICC_Fat.bsv +++ b/CHERICC_Fat.bsv @@ -153,7 +153,7 @@ typedef enum {Exp0, EmbeddedExp} Format deriving (Bits, Eq, FShow); typedef UInt#(ExpW) Exp; // Type for capability otype field typedef VnD#(Bit#(OTypeW)) CType; -Bit#(OTypeW) otype_max = -4; +Bit#(OTypeW) otype_max = -5; Bit#(OTypeW) otype_unsealed = -1; Bit#(OTypeW) otype_sentry = -2;