From 7308922ffa29454f58edb4eed13e4f1045e84db4 Mon Sep 17 00:00:00 2001 From: Francesco Conti Date: Fri, 31 Jan 2025 15:03:42 +0100 Subject: [PATCH] Add nocluster.c file with empty synch_barrier This makes many tests compatible with execution on PULPissimo --- kernel/nocluster.c | 24 ++++++++++++++++++++++++ rules/pulpos/src.mk | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 kernel/nocluster.c diff --git a/kernel/nocluster.c b/kernel/nocluster.c new file mode 100644 index 0000000..b1942dd --- /dev/null +++ b/kernel/nocluster.c @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2025 ETH Zurich and University of Bologna + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "pulp.h" +#include +#include + +void synch_barrier() +{ + return; +} diff --git a/rules/pulpos/src.mk b/rules/pulpos/src.mk index 1ae0b63..3572d9f 100644 --- a/rules/pulpos/src.mk +++ b/rules/pulpos/src.mk @@ -13,4 +13,6 @@ PULP_ASM_SRCS += kernel/irq_asm.S ifneq '$(cluster/version)' '' PULP_SRCS += kernel/cluster.c +else +PULP_SRCS += kernel/nocluster.c endif