summaryrefslogtreecommitdiff
path: root/src/arch/riscv
diff options
context:
space:
mode:
authorBrandon Potter <Brandon.Potter@amd.com>2017-03-01 14:52:23 -0600
committerBrandon Potter <Brandon.Potter@amd.com>2017-03-09 22:42:45 +0000
commit2c1286865fc2542a0586ca4ff40b00765d17b348 (patch)
tree320c9e379c843a49a49555ccc4e075d3a3d4bf1e /src/arch/riscv
parent6f7bf1b11fd9a2d7c2007fd0aca3ffa4885a215e (diff)
downloadgem5-2c1286865fc2542a0586ca4ff40b00765d17b348.tar.xz
syscall-emul: Rewrite system call exit code
The changeset does a major refactor on the exit, exit_group, and futex system calls regarding exit functionality. A FutexMap class and related structures are added into a new file. This increases code clarity by encapsulating the futex operations and the futex state into an object. Several exit conditions were added to allow the simulator to end processes under certain conditions. Also, the simulation only exits now when all processes have finished executing. Change-Id: I1ee244caa9b5586fe7375e5b9b50fd3959b9655e Reviewed-on: https://gem5-review.googlesource.com/2269 Maintainer: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/riscv')
-rw-r--r--src/arch/riscv/registers.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/riscv/registers.hh b/src/arch/riscv/registers.hh
index d8977030d..0793398fb 100644
--- a/src/arch/riscv/registers.hh
+++ b/src/arch/riscv/registers.hh
@@ -50,9 +50,9 @@
#include <map>
#include <string>
+#include "arch/isa_traits.hh"
#include "arch/riscv/generated/max_inst_regs.hh"
#include "base/types.hh"
-#include "sim/system.hh"
namespace RiscvISA {