sim: Move the MemPools object out of System and into SEWorkload.

This removes the need for all the FullSystem checks in the System class,
and simplifies that class in general.

Change-Id: Ie8a3bc67db9195027d2111009b15ca59221bdeb2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/50348
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2021-09-13 18:22:38 -07:00
parent 473d3c72c8
commit 1a1ba692c3
17 changed files with 85 additions and 65 deletions

View File

@@ -30,6 +30,7 @@
#define __ARCH_MIPS_LINUX_SE_WORKLOAD_HH__
#include "arch/mips/linux/linux.hh"
#include "arch/mips/page_size.hh"
#include "arch/mips/se_workload.hh"
#include "params/MipsEmuLinux.hh"
#include "sim/syscall_desc.hh"
@@ -49,7 +50,7 @@ class EmuLinux : public SEWorkload
public:
using Params = MipsEmuLinuxParams;
EmuLinux(const Params &p) : SEWorkload(p) {}
EmuLinux(const Params &p) : SEWorkload(p, PageShift) {}
void syscall(ThreadContext *tc) override;
};