base, sim, arch: Fix clang 5.0 warnings
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 18 May 2017 14:11:23 +0000 (15:11 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 19 May 2017 08:00:45 +0000 (08:00 +0000)
commitc4b85d5f9854abeee6d1dbe15ae65a7a1aada6b2
tree521b54e172ab547cd2147502bdb0015be924bb73
parent41ab3e6e7e9b5a5f4427949f9a981cdf2186c88a
base, sim, arch: Fix clang 5.0 warnings

Compiling gem5 with recent version of clang (4 and 5) triggers
warnings that are treated as errors:

  * Global templatized static functions result in a warning if they
    are not used. These should either be declared as static inline or
    without the static identifier to avoid the warning.

  * Some templatized classes contain static variables. The
    instantiated versions of these variables / templates need to be
    explicitly declared to avoid a compiler warning.

Change-Id: Ie8261144836e94ebab7ea04ccccb90927672c257
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3420
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/arch/arm/faults.hh
src/arch/arm/insts/vfp.hh
src/arch/arm/isa/insts/fp.isa
src/arch/hsail/insts/decl.hh
src/arch/mips/faults.hh
src/arch/sparc/faults.hh
src/base/circlebuf.hh
src/sim/syscall_emul.hh