diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-03-19 06:35:04 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-03-19 06:35:04 -0400 |
commit | adb862103138caf11191da50d34eb4c93295633a (patch) | |
tree | 92002abd45eed9456400eafaad7d6b757d1297b9 /src/cpu/base.hh | |
parent | a444a6f8d666f7922460dc0fe75877680fd23546 (diff) | |
download | gem5-adb862103138caf11191da50d34eb4c93295633a.tar.xz |
clang: Fix recently introduced clang compilation errors
This patch makes the code compile with clang 2.9 and 3.0 again by
making two very minor changes. Firt, it maintains a strict typing in
the forward declaration of the BaseCPUParams. Second, it adds a
FullSystemInt flag of the type unsigned int next to the boolean
FullSystem flag. The FullSystemInt variable can be used in
decode-statements (expands to switch statements) in the instruction
decoder.
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 74bb8dc12..149d26aa3 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -58,7 +58,7 @@ #include "sim/full_system.hh" #include "sim/insttracer.hh" -class BaseCPUParams; +struct BaseCPUParams; class BranchPred; class CheckerCPU; class ThreadContext; |