summaryrefslogtreecommitdiff
path: root/src/arch/riscv/RiscvSystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/RiscvSystem.py')
-rw-r--r--src/arch/riscv/RiscvSystem.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arch/riscv/RiscvSystem.py b/src/arch/riscv/RiscvSystem.py
index c64e363fc..071b211a2 100644
--- a/src/arch/riscv/RiscvSystem.py
+++ b/src/arch/riscv/RiscvSystem.py
@@ -28,10 +28,23 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Authors: Alec Roelke
+# Robert Scheffel
+from m5.params import *
from System import System
+
class RiscvSystem(System):
type = 'RiscvSystem'
cxx_header = 'arch/riscv/system.hh'
+ bare_metal = Param.Bool(False, "Using Bare Metal Application?")
+ reset_vect = Param.Addr(0x0, 'Reset vector')
load_addr_mask = 0xFFFFFFFFFFFFFFFF
+
+
+class BareMetalRiscvSystem(RiscvSystem):
+ type = 'BareMetalRiscvSystem'
+ cxx_header = 'arch/riscv/bare_metal/system.hh'
+ bootloader = Param.String("File, that contains the bootloader code")
+
+ bare_metal = True