summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-27 12:44:55 +0100
committertaitep <taitep@taitep.se>2025-12-27 12:44:55 +0100
commit6a3920895b27620158af9ab4e3b87aecc1062282 (patch)
tree80feeae797a9d5f1aa600768d24bb914ef055990 /src
parent67406a9c48477d0fce8a5df2c4e8d902a698e8e8 (diff)
Relicense to BSD 2-Clause to align better with the RISC-V community
Diffstat (limited to 'src')
-rw-r--r--src/basic_uart.rs2
-rw-r--r--src/core.rs2
-rw-r--r--src/core/commands.rs6
-rw-r--r--src/decode.rs2
-rw-r--r--src/exceptions.rs2
-rw-r--r--src/execload.rs2
-rw-r--r--src/gdb.rs6
-rw-r--r--src/instructions.rs2
-rw-r--r--src/instructions/macros.rs2
-rw-r--r--src/instructions/rvi.rs2
-rw-r--r--src/instructions/rvi/mem.rs2
-rw-r--r--src/main.rs2
-rw-r--r--src/mem.rs2
13 files changed, 23 insertions, 11 deletions
diff --git a/src/basic_uart.rs b/src/basic_uart.rs
index 4632b11..d7a11be 100644
--- a/src/basic_uart.rs
+++ b/src/basic_uart.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/core.rs b/src/core.rs
index bb37520..8d51947 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/core/commands.rs b/src/core/commands.rs
index 3fe913b..37ed28e 100644
--- a/src/core/commands.rs
+++ b/src/core/commands.rs
@@ -1,3 +1,9 @@
+// Copyright (c) 2025 taitep
+// SPDX-License-Identifier: BSD-2-Clause
+//
+// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
+// See LICENSE file in the project root for full license text.
+
use crate::gdb;
pub enum CoreCmd {
diff --git a/src/decode.rs b/src/decode.rs
index d2e8a80..d520151 100644
--- a/src/decode.rs
+++ b/src/decode.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/exceptions.rs b/src/exceptions.rs
index 3c1d4bd..9a84edc 100644
--- a/src/exceptions.rs
+++ b/src/exceptions.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/execload.rs b/src/execload.rs
index 70c1d65..6caa797 100644
--- a/src/execload.rs
+++ b/src/execload.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/gdb.rs b/src/gdb.rs
index ae2ef9b..2457d47 100644
--- a/src/gdb.rs
+++ b/src/gdb.rs
@@ -1,3 +1,9 @@
+// Copyright (c) 2025 taitep
+// SPDX-License-Identifier: BSD-2-Clause
+//
+// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
+// See LICENSE file in the project root for full license text.
+
use std::{
io::{self, BufRead, ErrorKind, Write},
net::{TcpListener, TcpStream},
diff --git a/src/instructions.rs b/src/instructions.rs
index 2942995..8e55d37 100644
--- a/src/instructions.rs
+++ b/src/instructions.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/instructions/macros.rs b/src/instructions/macros.rs
index c88114c..98cf63d 100644
--- a/src/instructions/macros.rs
+++ b/src/instructions/macros.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/instructions/rvi.rs b/src/instructions/rvi.rs
index c35098f..5e2faa4 100644
--- a/src/instructions/rvi.rs
+++ b/src/instructions/rvi.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/instructions/rvi/mem.rs b/src/instructions/rvi/mem.rs
index bc02b7f..73e4179 100644
--- a/src/instructions/rvi/mem.rs
+++ b/src/instructions/rvi/mem.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/main.rs b/src/main.rs
index f4f8a56..53c2938 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
diff --git a/src/mem.rs b/src/mem.rs
index 45ee356..272641c 100644
--- a/src/mem.rs
+++ b/src/mem.rs
@@ -1,5 +1,5 @@
// Copyright (c) 2025 taitep
-// SPDX-License-Identifier: MIT
+// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.