From: Andreas Sandberg Date: Fri, 19 Jul 2013 09:52:07 +0000 (+0200) Subject: cpu: Remove unused getBranchPred() method from BaseCPU X-Git-Tag: stable_2014_02_15~186 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5bb2a25aa702ad3d1a173e9e86d2addc24d9c13;p=gem5.git cpu: Remove unused getBranchPred() method from BaseCPU Remove unused virtual getBranchPred() method from BaseCPU as it is not implemented by any of the CPU models. It used to always return NULL. --- diff --git a/src/cpu/base.hh b/src/cpu/base.hh index a91ba862d..9e7198763 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -60,7 +60,6 @@ #include "sim/system.hh" struct BaseCPUParams; -class BranchPred; class CheckerCPU; class ThreadContext; @@ -393,12 +392,6 @@ class BaseCPU : public MemObject virtual void unserializeThread(Checkpoint *cp, const std::string §ion, ThreadID tid) {}; - /** - * Return pointer to CPU's branch predictor (NULL if none). - * @return Branch predictor pointer. - */ - virtual BranchPred *getBranchPred() { return NULL; }; - virtual Counter totalInsts() const = 0; virtual Counter totalOps() const = 0;