Skip to content

Commit 7f94a23

Browse files
committed
Fix lean issue
1 parent f204287 commit 7f94a23

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

model/riscv_extensions.sail

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ function clause currentlyEnabled(Ext_Zvkt) = hartSupports(Ext_Zvkt)
291291
enum clause extension = Ext_Zvkn
292292
mapping clause extensionName = Ext_Zvkn <-> "zvkn"
293293
function clause hartSupports(Ext_Zvkn) =
294-
hartSupports(Ext_Zvkned) &
295-
hartSupports(Ext_Zvknhb) &
296-
hartSupports(Ext_Zvkb) &
297-
hartSupports(Ext_Zvkt)
294+
hartSupports(Ext_Zvkned) &
295+
hartSupports(Ext_Zvknhb) &
296+
hartSupports(Ext_Zvkb) &
297+
hartSupports(Ext_Zvkt)
298298
function clause currentlyEnabled(Ext_Zvkn) = hartSupports(Ext_Zvkn)
299299
// NIST Algorithm Suite with carryless multiply
300300
enum clause extension = Ext_Zvknc
@@ -310,10 +310,10 @@ function clause currentlyEnabled(Ext_Zvkng) = hartSupports(Ext_Zvkng)
310310
enum clause extension = Ext_Zvks
311311
mapping clause extensionName = Ext_Zvks <-> "zvks"
312312
function clause hartSupports(Ext_Zvks) =
313-
hartSupports(Ext_Zvksed) &
314-
hartSupports(Ext_Zvksh) &
315-
hartSupports(Ext_Zvkb) &
316-
hartSupports(Ext_Zvkt)
313+
hartSupports(Ext_Zvksed) &
314+
hartSupports(Ext_Zvksh) &
315+
hartSupports(Ext_Zvkb) &
316+
hartSupports(Ext_Zvkt)
317317
function clause currentlyEnabled(Ext_Zvks) = hartSupports(Ext_Zvks)
318318
// ShangMi Algorithm Suite with carryless multiplication
319319
enum clause extension = Ext_Zvksc

model/riscv_termination.sail

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ termination_measure virtual_memory_supported(_) = 3
9292
function hartSupports_measure(ext : extension) -> int =
9393
match ext {
9494
Ext_C => 1,
95+
Ext_Zvkned => 0,
96+
Ext_Zvknhb => 0,
97+
Ext_Zvkb => 0,
98+
Ext_Zvkt => 0,
99+
Ext_Zvbc => 0,
100+
Ext_Zvkg => 0,
101+
Ext_Zvksed => 0,
102+
Ext_Zvksh => 0,
103+
Ext_Zvkn => 1,
104+
Ext_Zvks => 1,
105+
Ext_Zvknc => 2,
106+
Ext_Zvkng => 2,
107+
Ext_Zvksc => 2,
108+
Ext_Zvksg => 2,
95109
_ => 0,
96110
}
97111

0 commit comments

Comments
 (0)