aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clock_domain.c3
-rw-r--r--src/components/bus/simple_bus.c3
-rw-r--r--src/components/cpu/riscv/simple_riscv32.c7
-rw-r--r--src/components/mem/simple_mem.c3
-rw-r--r--src/main.c3
-rw-r--r--src/root.c3
6 files changed, 21 insertions, 1 deletions
diff --git a/src/clock_domain.c b/src/clock_domain.c
index 825cf0d..15f1793 100644
--- a/src/clock_domain.c
+++ b/src/clock_domain.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <stdlib.h>
#include <threads.h>
#include <assert.h>
diff --git a/src/components/bus/simple_bus.c b/src/components/bus/simple_bus.c
index 58e4132..3629ecd 100644
--- a/src/components/bus/simple_bus.c
+++ b/src/components/bus/simple_bus.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <threads.h>
#include <inttypes.h>
#include <stdlib.h>
diff --git a/src/components/cpu/riscv/simple_riscv32.c b/src/components/cpu/riscv/simple_riscv32.c
index 1f19b1f..63eba4d 100644
--- a/src/components/cpu/riscv/simple_riscv32.c
+++ b/src/components/cpu/riscv/simple_riscv32.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <gran/cpu/riscv/simple_riscv32.h>
struct simple_riscv32 {
@@ -43,7 +46,9 @@ static stat simple_riscv32_clock(struct simple_riscv32 *cpu)
return OK;
}
-struct componen *create_simple_riscv32(uint32_t start_pc, struct component *imem, struct component *dmem)
+struct componen *create_simple_riscv32(uint32_t start_pc,
+ struct component *imem,
+ struct component *dmem)
{
struct component *new = calloc(1, sizeof(simple_riscv32));
if (!new)
diff --git a/src/components/mem/simple_mem.c b/src/components/mem/simple_mem.c
index 52606e2..db2632a 100644
--- a/src/components/mem/simple_mem.c
+++ b/src/components/mem/simple_mem.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <string.h>
#include <stdlib.h>
diff --git a/src/main.c b/src/main.c
index 149f017..abb57e6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
int main(int argc, char **argv)
{
diff --git a/src/root.c b/src/root.c
index 4324437..172728e 100644
--- a/src/root.c
+++ b/src/root.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <stdlib.h>
#include <gran/root.h>