summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorRuslan Bukin <br@bsdpad.com>2015-04-29 22:35:23 -0500
committerRuslan Bukin <br@bsdpad.com>2015-04-29 22:35:23 -0500
commit81f3211149c051e4f70b0b12eb3709dfc6e0395c (patch)
tree9b9d276586b948252ec6a39a2748dbca43fe92d3 /src/sim
parent52a3bc5e5c3cc694b3f8b29f38b0dd296b91350f (diff)
downloadgem5-81f3211149c051e4f70b0b12eb3709dfc6e0395c.tar.xz
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 <nilay@cs.wisc.edu>
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/process.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc
index ea6308de6..35f981d1e 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -77,6 +77,7 @@
#include "arch/mips/linux/process.hh"
#elif THE_ISA == ARM_ISA
#include "arch/arm/linux/process.hh"
+#include "arch/arm/freebsd/process.hh"
#elif THE_ISA == X86_ISA
#include "arch/x86/linux/process.hh"
#elif THE_ISA == POWER_ISA
@@ -736,6 +737,15 @@ LiveProcess::create(LiveProcessParams * params)
objFile->getArch());
}
break;
+ case ObjectFile::FreeBSD:
+ if (arch == ObjectFile::Arm64) {
+ process = new ArmFreebsdProcess64(params, objFile,
+ objFile->getArch());
+ } else {
+ process = new ArmFreebsdProcess32(params, objFile,
+ objFile->getArch());
+ }
+ break;
case ObjectFile::LinuxArmOABI:
fatal("M5 does not support ARM OABI binaries. Please recompile with an"
" EABI compiler.");