changeset 88fa4031a9e3 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=88fa4031a9e3
description:
arch: Fix broken M5VarArgsFault initialization
At least gcc 4.4.3 seems to get confused by the use of func both as a
template parameter and a member variable in the M5VarArgsFault
class. This causes the value of the member variable func to be
unpredictable in M5VarArgsFault objects. This changeset renames the
template parameter to remove this ambiguity.
diffstat:
src/arch/generic/debugfaults.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0937a00d3f68 -r 88fa4031a9e3 src/arch/generic/debugfaults.hh
--- a/src/arch/generic/debugfaults.hh Mon Jan 07 13:05:38 2013 -0500
+++ b/src/arch/generic/debugfaults.hh Mon Jan 07 13:05:38 2013 -0500
@@ -108,12 +108,12 @@
}
};
-template <int func>
+template <int Func>
class M5VarArgsFault : public M5DebugFault
{
public:
M5VarArgsFault(const std::string &format, CPRINTF_DECLARATION) :
- M5DebugFault((DebugFunc)func, csprintf(format, VARARGS_ALLARGS))
+ M5DebugFault((DebugFunc)Func, csprintf(format, VARARGS_ALLARGS))
{}
};
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev