From: Brandon Potter Date: Wed, 1 Mar 2017 17:10:28 +0000 (-0600) Subject: syscall-emul: Remove unused class and member X-Git-Tag: v19.0.0.0~2925 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46bfc14312f9b3b2f4e356f5d31405ae4ad394a8;p=gem5.git syscall-emul: Remove unused class and member The WaitRec structure in the Process class is unnecessary. There is a member declaration inside of the Process class, waitList, that uses the WaitRec definition. However, waitList is unused so they are both dead bits of code. This changeset removes both the WaitRec struct and waitList member from Process. Change-Id: Ia6ee7488b9f47fd0f0ae29c818fba6ea0710699c Reviewed-on: https://gem5-review.googlesource.com/2262 Reviewed-by: Tony Gutierrez Reviewed-by: Michael LeBeane Reviewed-by: Andreas Sandberg Maintainer: Jason Lowe-Power --- diff --git a/src/sim/process.hh b/src/sim/process.hh index 9dc29dcb0..52a06bedd 100644 --- a/src/sim/process.hh +++ b/src/sim/process.hh @@ -62,15 +62,6 @@ class ThreadContext; class Process : public SimObject { public: - struct WaitRec - { - Addr waitChan; - ThreadContext *waitingContext; - - WaitRec(Addr chan, ThreadContext *ctx) - : waitChan(chan), waitingContext(ctx) - { } - }; struct MemState { @@ -206,9 +197,6 @@ class Process : public SimObject void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *new_p, TheISA::IntReg flags); - // list of all blocked contexts - std::list waitList; - // thread contexts associated with this process std::vector contextIds;