From e2d521bbe73708da64662478155630d634e00932 Mon Sep 17 00:00:00 2001 From: taitep Date: Mon, 1 Dec 2025 22:06:13 +0100 Subject: [PATCH] Add license/copyright notices to top of each source file (where applicable) --- src/core.rs | 6 ++++++ src/decode.rs | 6 ++++++ src/instructions.rs | 6 ++++++ src/instructions/gen_tools.rs | 6 ++++++ src/instructions/rvi.rs | 6 ++++++ src/main.rs | 6 ++++++ src/mem.rs | 6 ++++++ 7 files changed, 42 insertions(+) diff --git a/src/core.rs b/src/core.rs index 6570e76..1628216 100644 --- a/src/core.rs +++ b/src/core.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// 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::{ consts::{Addr, RegId, RegValue}, decode::Instruction, diff --git a/src/decode.rs b/src/decode.rs index 5e19ab9..112b210 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// 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::consts::{DWord, RegId, Word}; const MASK_REGISTER: Word = 0x1f; diff --git a/src/instructions.rs b/src/instructions.rs index fc005e9..2d18a2c 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// This file is part of TRVE (https://gitea.taitep.se/taitep/trve) +// See LICENSE file in the project root for full license text. + use once_cell::sync::Lazy; mod gen_tools; diff --git a/src/instructions/gen_tools.rs b/src/instructions/gen_tools.rs index ad9ad62..a3d45bc 100644 --- a/src/instructions/gen_tools.rs +++ b/src/instructions/gen_tools.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// 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::hint::unreachable_unchecked; use crate::instructions::{OpcodeHandler, Splitter}; diff --git a/src/instructions/rvi.rs b/src/instructions/rvi.rs index 365b133..5597de4 100644 --- a/src/instructions/rvi.rs +++ b/src/instructions/rvi.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// 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::{ consts::{Addr, DWord}, core::{Core, InstructionResult}, diff --git a/src/main.rs b/src/main.rs index 6a234cf..8abfe33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// 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::{ error::Error, fs::File, diff --git a/src/mem.rs b/src/mem.rs index 7bf138b..44e1dc7 100644 --- a/src/mem.rs +++ b/src/mem.rs @@ -1,3 +1,9 @@ +// Copyright (c) 2025 taitep +// SPDX-License-Identifier: MIT +// +// 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::sync::{ Arc, atomic::{AtomicU8, AtomicU16, AtomicU32, AtomicU64, Ordering::Relaxed},