From 81f3211149c051e4f70b0b12eb3709dfc6e0395c Mon Sep 17 00:00:00 2001
From: Ruslan Bukin
Date: Wed, 29 Apr 2015 22:35:23 -0500
Subject: arch, base, dev, kern, sym: FreeBSD support
This adds support for FreeBSD/aarch64 FS and SE mode (basic set of syscalls only)
Committed by: Nilay Vaish
---
src/arch/arm/ArmSystem.py | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
(limited to 'src/arch/arm/ArmSystem.py')
diff --git a/src/arch/arm/ArmSystem.py b/src/arch/arm/ArmSystem.py
index ec9d8c848..f40458ca5 100644
--- a/src/arch/arm/ArmSystem.py
+++ b/src/arch/arm/ArmSystem.py
@@ -71,9 +71,9 @@ class ArmSystem(System):
have_large_asid_64 = Param.Bool(False,
"True if ASID is 16 bits in AArch64 (ARMv8)")
-class LinuxArmSystem(ArmSystem):
- type = 'LinuxArmSystem'
- cxx_header = "arch/arm/linux/system.hh"
+class GenericArmSystem(ArmSystem):
+ type = 'GenericArmSystem'
+ cxx_header = "arch/arm/system.hh"
load_addr_mask = 0x0fffffff
machine_type = Param.ArmMachineType('VExpress_EMM',
"Machine id from http://www.arm.linux.org.uk/developer/machines/")
@@ -91,3 +91,11 @@ class LinuxArmSystem(ArmSystem):
"guest kernel panics")
panic_on_oops = Param.Bool(False, "Trigger a gem5 panic if the " \
"guest kernel oopses")
+
+class LinuxArmSystem(GenericArmSystem):
+ type = 'LinuxArmSystem'
+ cxx_header = "arch/arm/linux/system.hh"
+
+class FreebsdArmSystem(GenericArmSystem):
+ type = 'FreebsdArmSystem'
+ cxx_header = "arch/arm/freebsd/system.hh"
--
cgit v1.2.3