diff options
author | Brandon Potter <Brandon.Potter@amd.com> | 2017-03-01 14:52:23 -0600 |
---|---|---|
committer | Brandon Potter <Brandon.Potter@amd.com> | 2017-03-09 22:42:45 +0000 |
commit | 2c1286865fc2542a0586ca4ff40b00765d17b348 (patch) | |
tree | 320c9e379c843a49a49555ccc4e075d3a3d4bf1e /src/arch/riscv | |
parent | 6f7bf1b11fd9a2d7c2007fd0aca3ffa4885a215e (diff) | |
download | gem5-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.hh | 2 |
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 { |