base: Move SatCounter to base directory
Saturating counters are used by many objects, not only the cpu predictors. Therefore, move the class to the base folder so that it can be more easily used. Change-Id: I26f799324bdd8720ab8834c72a2002149cee777c Signed-off-by: Daniel <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17993 Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
* Daniel Carvalho
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_SAT_COUNTER_HH__
|
||||
#define __CPU_PRED_SAT_COUNTER_HH__
|
||||
#ifndef __BASE_SAT_COUNTER_HH__
|
||||
#define __BASE_SAT_COUNTER_HH__
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -127,4 +127,4 @@ class SatCounter
|
||||
uint8_t counter;
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_SAT_COUNTER_HH__
|
||||
#endif // __BASE_SAT_COUNTER_HH__
|
||||
@@ -46,9 +46,9 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/sat_counter.hh"
|
||||
#include "base/types.hh"
|
||||
#include "cpu/pred/bpred_unit.hh"
|
||||
#include "cpu/pred/sat_counter.hh"
|
||||
#include "params/LocalBP.hh"
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#ifndef __CPU_PRED_BI_MODE_PRED_HH__
|
||||
#define __CPU_PRED_BI_MODE_PRED_HH__
|
||||
|
||||
#include "base/sat_counter.hh"
|
||||
#include "cpu/pred/bpred_unit.hh"
|
||||
#include "cpu/pred/sat_counter.hh"
|
||||
#include "params/BiModeBP.hh"
|
||||
|
||||
/**
|
||||
|
||||
@@ -47,9 +47,9 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/sat_counter.hh"
|
||||
#include "base/types.hh"
|
||||
#include "cpu/pred/bpred_unit.hh"
|
||||
#include "cpu/pred/sat_counter.hh"
|
||||
#include "params/TournamentBP.hh"
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user