cpu: Make some compiler guards consistent with the other files.
Change-Id: I9dd007ad4ea0e1ff93677333a2f5e1f9b5d2a8fa Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45741 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -46,8 +46,8 @@
|
||||
* one that predicted when the prediction is incorrect.
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_LTAGE
|
||||
#define __CPU_PRED_LTAGE
|
||||
#ifndef __CPU_PRED_LTAGE_HH__
|
||||
#define __CPU_PRED_LTAGE_HH__
|
||||
|
||||
|
||||
#include <vector>
|
||||
@@ -109,4 +109,4 @@ class LTAGE : public TAGE
|
||||
ThreadID tid, Addr branch_pc, bool cond_branch, void* &b) override;
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_LTAGE
|
||||
#endif // __CPU_PRED_LTAGE_HH__
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
* Statistical corrector base class
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_STATISTICAL_CORRECTOR_HH
|
||||
#define __CPU_PRED_STATISTICAL_CORRECTOR_HH
|
||||
#ifndef __CPU_PRED_STATISTICAL_CORRECTOR_HH__
|
||||
#define __CPU_PRED_STATISTICAL_CORRECTOR_HH__
|
||||
|
||||
#include "base/statistics.hh"
|
||||
#include "base/types.hh"
|
||||
@@ -273,4 +273,4 @@ class StatisticalCorrector : public SimObject
|
||||
|
||||
virtual size_t getSizeInBits() const;
|
||||
};
|
||||
#endif//__CPU_PRED_STATISTICAL_CORRECTOR_HH
|
||||
#endif//__CPU_PRED_STATISTICAL_CORRECTOR_HH__
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
* one that predicted when the prediction is incorrect.
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_TAGE
|
||||
#define __CPU_PRED_TAGE
|
||||
#ifndef __CPU_PRED_TAGE_HH__
|
||||
#define __CPU_PRED_TAGE_HH__
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -90,4 +90,4 @@ class TAGE: public BPredUnit
|
||||
virtual void squash(ThreadID tid, void *bp_history) override;
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_TAGE
|
||||
#endif // __CPU_PRED_TAGE_HH__
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
* one that predicted when the prediction is incorrect.
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_TAGE_BASE
|
||||
#define __CPU_PRED_TAGE_BASE
|
||||
#ifndef __CPU_PRED_TAGE_BASE_HH__
|
||||
#define __CPU_PRED_TAGE_BASE_HH__
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -505,4 +505,4 @@ class TAGEBase : public SimObject
|
||||
} stats;
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_TAGE_BASE
|
||||
#endif // __CPU_PRED_TAGE_BASE_HH__
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
* It consits of a TAGE + a statistical corrector (SC) + a loop predictor (L)
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_TAGE_SC_L
|
||||
#define __CPU_PRED_TAGE_SC_L
|
||||
#ifndef __CPU_PRED_TAGE_SC_L_HH__
|
||||
#define __CPU_PRED_TAGE_SC_L_HH__
|
||||
|
||||
#include "cpu/pred/ltage.hh"
|
||||
#include "cpu/pred/statistical_corrector.hh"
|
||||
@@ -185,5 +185,4 @@ class TAGE_SC_L: public LTAGE
|
||||
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_TAGE_SC_L
|
||||
|
||||
#endif // __CPU_PRED_TAGE_SC_L_HH__
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
* http://www.jilp.org/cbp2016/code/AndreSeznecLimited.tar.gz
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_TAGE_SC_L_64KB
|
||||
#define __CPU_PRED_TAGE_SC_L_64KB
|
||||
#ifndef __CPU_PRED_TAGE_SC_L_64KB_HH__
|
||||
#define __CPU_PRED_TAGE_SC_L_64KB_HH__
|
||||
|
||||
#include "cpu/pred/tage_sc_l.hh"
|
||||
#include "params/TAGE_SC_L_64KB.hh"
|
||||
@@ -132,5 +132,4 @@ class TAGE_SC_L_64KB : public TAGE_SC_L
|
||||
TAGE_SC_L_64KB(const TAGE_SC_L_64KBParams ¶ms);
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_TAGE_SC_L_64KB
|
||||
|
||||
#endif // __CPU_PRED_TAGE_SC_L_64KB_HH__
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
* 8KB TAGE-SC-L branch predictor (devised by Andre Seznec)
|
||||
*/
|
||||
|
||||
#ifndef __CPU_PRED_TAGE_SC_L_8KB
|
||||
#define __CPU_PRED_TAGE_SC_L_8KB
|
||||
#ifndef __CPU_PRED_TAGE_SC_L_8KB_HH__
|
||||
#define __CPU_PRED_TAGE_SC_L_8KB_HH__
|
||||
|
||||
#include "cpu/pred/tage_sc_l.hh"
|
||||
#include "params/TAGE_SC_L_8KB.hh"
|
||||
@@ -112,5 +112,4 @@ class TAGE_SC_L_8KB : public TAGE_SC_L
|
||||
TAGE_SC_L_8KB(const TAGE_SC_L_8KBParams ¶ms);
|
||||
};
|
||||
|
||||
#endif // __CPU_PRED_TAGE_SC_L_8KB
|
||||
|
||||
#endif // __CPU_PRED_TAGE_SC_L_8KB_HH__
|
||||
|
||||
Reference in New Issue
Block a user