aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-08-24 15:43:03 -0700
committerGitHub <noreply@github.com>2020-08-24 15:43:03 -0700
commit91dc0c0c8eaf2579798bbe9c2d121fd042527df8 (patch)
tree21cbe3c46507553334a4c3428c58d256983fe5b6 /src
parentad5f40af8df555af596fed2bd061a1a4916173c6 (diff)
downloadriscv-openocd-91dc0c0c8eaf2579798bbe9c2d121fd042527df8.zip
riscv-openocd-91dc0c0c8eaf2579798bbe9c2d121fd042527df8.tar.gz
riscv-openocd-91dc0c0c8eaf2579798bbe9c2d121fd042527df8.tar.bz2
Add SPDX tags for RISC-V files. (#513)
Requested in http://openocd.zylin.com/#/c/5821/3 Change-Id: I95551a3311d8e128300bacdf463da7ab4edf29a0
Diffstat (limited to 'src')
-rw-r--r--src/target/riscv/asm.h2
-rw-r--r--src/target/riscv/batch.c2
-rw-r--r--src/target/riscv/batch.h2
-rw-r--r--src/target/riscv/gdb_regs.h2
-rw-r--r--src/target/riscv/opcodes.h2
-rw-r--r--src/target/riscv/program.c2
-rw-r--r--src/target/riscv/program.h2
-rw-r--r--src/target/riscv/riscv-011.c2
-rw-r--r--src/target/riscv/riscv-013.c2
-rw-r--r--src/target/riscv/riscv.c2
-rw-r--r--src/target/riscv/riscv.h2
-rw-r--r--src/target/riscv/riscv_semihosting.c2
12 files changed, 24 insertions, 0 deletions
diff --git a/src/target/riscv/asm.h b/src/target/riscv/asm.h
index d81aa02..6ceb8c9 100644
--- a/src/target/riscv/asm.h
+++ b/src/target/riscv/asm.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifndef TARGET__RISCV__ASM_H
#define TARGET__RISCV__ASM_H
diff --git a/src/target/riscv/batch.c b/src/target/riscv/batch.c
index 2f65193..81d0358 100644
--- a/src/target/riscv/batch.c
+++ b/src/target/riscv/batch.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/src/target/riscv/batch.h b/src/target/riscv/batch.h
index 2264627..9c42ba8 100644
--- a/src/target/riscv/batch.h
+++ b/src/target/riscv/batch.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifndef TARGET__RISCV__SCANS_H
#define TARGET__RISCV__SCANS_H
diff --git a/src/target/riscv/gdb_regs.h b/src/target/riscv/gdb_regs.h
index 075f17a..32bc1d5 100644
--- a/src/target/riscv/gdb_regs.h
+++ b/src/target/riscv/gdb_regs.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifndef TARGET__RISCV__GDB_REGS_H
#define TARGET__RISCV__GDB_REGS_H
diff --git a/src/target/riscv/opcodes.h b/src/target/riscv/opcodes.h
index 4557f98..998290c 100644
--- a/src/target/riscv/opcodes.h
+++ b/src/target/riscv/opcodes.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#include "encoding.h"
#define ZERO 0
diff --git a/src/target/riscv/program.c b/src/target/riscv/program.c
index b370401..59bd52f 100644
--- a/src/target/riscv/program.c
+++ b/src/target/riscv/program.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/src/target/riscv/program.h b/src/target/riscv/program.h
index 3bc0e52..2fa925a 100644
--- a/src/target/riscv/program.h
+++ b/src/target/riscv/program.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifndef TARGET__RISCV__PROGRAM_H
#define TARGET__RISCV__PROGRAM_H
diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c
index 2a18138..c49e925 100644
--- a/src/target/riscv/riscv-011.c
+++ b/src/target/riscv/riscv-011.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/*
* Support for RISC-V, debug version 0.11. This was never an officially adopted
* spec, but SiFive made some silicon that uses it.
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 08a774c..6a6507f 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/*
* Support for RISC-V, debug version 0.13, which is currently (2/4/17) the
* latest draft.
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 3e784b5..e99bfb5 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#include <assert.h>
#include <stdlib.h>
#include <time.h>
diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h
index 623b265..5e171d9 100644
--- a/src/target/riscv/riscv.h
+++ b/src/target/riscv/riscv.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
#ifndef RISCV_H
#define RISCV_H
diff --git a/src/target/riscv/riscv_semihosting.c b/src/target/riscv/riscv_semihosting.c
index ece29ce..99d6c77 100644
--- a/src/target/riscv/riscv_semihosting.c
+++ b/src/target/riscv/riscv_semihosting.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
/***************************************************************************
* Copyright (C) 2018 by Liviu Ionescu *
* ilg@livius.net *