aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-27 12:33:59 -0700
committerDavid Li <li.davidm96@gmail.com>2015-12-27 12:33:59 -0700
commitf673d59b92de8d9581cb77e03305e38a499dcc93 (patch)
treec8e7a7dc0c1497e952f3e3c1ed9c30c3a710d6dd /src
parent2c2ff979554c11a973fe893d620292137664157a (diff)
Add GPLv3 license
Diffstat (limited to 'src')
-rw-r--r--src/binary.rs16
-rw-r--r--src/isa/funct3.rs16
-rw-r--r--src/isa/funct7.rs16
-rw-r--r--src/isa/mod.rs16
-rw-r--r--src/isa/opcodes.rs16
-rw-r--r--src/lib.rs16
-rw-r--r--src/memory.rs16
-rw-r--r--src/simulator.rs16
8 files changed, 128 insertions, 0 deletions
diff --git a/src/binary.rs b/src/binary.rs
index a2a9d38..122af51 100644
--- a/src/binary.rs
+++ b/src/binary.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
use std::error::Error;
use std::fmt;
use std::fs::File;
diff --git a/src/isa/funct3.rs b/src/isa/funct3.rs
index e74da96..6124eb7 100644
--- a/src/isa/funct3.rs
+++ b/src/isa/funct3.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
pub const ADDI: u32 = 0x0;
pub const SLLI: u32 = 0x1;
pub const SLTI: u32 = 0x2;
diff --git a/src/isa/funct7.rs b/src/isa/funct7.rs
index f48fae8..7230ce1 100644
--- a/src/isa/funct7.rs
+++ b/src/isa/funct7.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
pub const ADD_SRL: u32 = 0x0;
pub const SUB_SRA: u32 = 0x1;
diff --git a/src/isa/mod.rs b/src/isa/mod.rs
index b7ac405..b2961ce 100644
--- a/src/isa/mod.rs
+++ b/src/isa/mod.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
pub mod opcodes;
pub mod funct3;
pub mod funct7;
diff --git a/src/isa/opcodes.rs b/src/isa/opcodes.rs
index 56b9568..5b63ae8 100644
--- a/src/isa/opcodes.rs
+++ b/src/isa/opcodes.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
pub const BRANCH: u32 = 0x63;
pub const JALR: u32 = 0x67;
pub const JAL: u32 = 0x6F;
diff --git a/src/lib.rs b/src/lib.rs
index fce2119..0dc0e7f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
#![feature(associated_consts)]
pub mod isa;
pub mod binary;
diff --git a/src/memory.rs b/src/memory.rs
index 76a942f..ceec504 100644
--- a/src/memory.rs
+++ b/src/memory.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
use isa::{self, Instruction};
use binary::{Binary};
diff --git a/src/simulator.rs b/src/simulator.rs
index f91ccbc..2e7ddbd 100644
--- a/src/simulator.rs
+++ b/src/simulator.rs
@@ -1,3 +1,19 @@
+// Copyright 2015 David Li
+// This file is part of rustv.
+
+// rustv is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// rustv is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+
use isa;
use binary::{Binary};
use memory::{MemoryInterface, Memory, MemoryError};