diff options
author | Sean Wilson <spwilson2@wisc.edu> | 2017-06-28 14:21:29 -0500 |
---|---|---|
committer | Sean Wilson <spwilson2@wisc.edu> | 2017-07-17 15:16:32 +0000 |
commit | 352c1ad7147bfb84a9c7aea57152e41c63d22397 (patch) | |
tree | aefdb516cd9fef1b5d8cabe2a4d1d5be0c6b242f /src/sim | |
parent | c305e150048b2ac92891b1054f0c65a6c3374e90 (diff) | |
download | gem5-352c1ad7147bfb84a9c7aea57152e41c63d22397.tar.xz |
sim, x86: Make clone a virtual function
This fixes the function call to clone in syscall_emul.hh where
the x86 version should be called before the base implementation
of clone.
Change-Id: Iccd2f680ff6e3a5536037d688a80ab3f236bbd98
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3902
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/process.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/process.hh b/src/sim/process.hh index 5da30a4c3..e4a52e3de 100644 --- a/src/sim/process.hh +++ b/src/sim/process.hh @@ -161,8 +161,8 @@ class Process : public SimObject void replicatePage(Addr vaddr, Addr new_paddr, ThreadContext *old_tc, ThreadContext *new_tc, bool alloc_page); - void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *new_p, - TheISA::IntReg flags); + virtual void clone(ThreadContext *old_tc, ThreadContext *new_tc, + Process *new_p, TheISA::IntReg flags); // thread contexts associated with this process std::vector<ContextID> contextIds; |