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/sim/process.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'src/sim')
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.");
--
cgit v1.2.3