From 37be473b6d9927af6142a1fcb60c042e9d97c183 Mon Sep 17 00:00:00 2001 From: nihui Date: Tue, 3 Dec 2024 09:25:16 +0000 Subject: [PATCH] c906 hack --- src/cpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu.cpp b/src/cpu.cpp index 893fce24acb..045464f5554 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -2751,6 +2751,9 @@ int cpu_support_riscv_xtheadvector() int cpu_riscv_vlenb() { +#if C906 + return 16; +#endif try_initialize_global_cpu_info(); #if __riscv if (!cpu_support_riscv_v())