diff --git a/src/program.rs b/src/program.rs index 781849cc..0636f64f 100644 --- a/src/program.rs +++ b/src/program.rs @@ -294,10 +294,10 @@ impl BuiltinProgram { &self, sbpf_version: SBPFVersion, ) -> &FunctionRegistry> { - if sbpf_version == SBPFVersion::V1 { - &self.sparse_registry - } else { + if sbpf_version.static_syscalls() { &self.dense_registry + } else { + &self.sparse_registry } }