summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-05-30 05:31:48 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-05-30 05:31:48 -0400
commit1d520cda808704c98dea14f2cfd563b43f73c8d6 (patch)
tree27d9ed779b49983e3639296c2d547eece606b625 /src/sim
parentb8cf48accc611a09314454d1573ee531f2770264 (diff)
downloadgem5-1d520cda808704c98dea14f2cfd563b43f73c8d6.tar.xz
gcc: Small fixes to compile with gcc 4.7
This patch makes two very minor changes to please gcc 4.7. The CopyData function no longer exists and this has been replaced. For some reason previous versions of gcc did not complain on the const char casting not having an implementation, but this is now addressed.
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/arguments.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/arguments.hh b/src/sim/arguments.hh
index 5c7941562..f28f6635a 100644
--- a/src/sim/arguments.hh
+++ b/src/sim/arguments.hh
@@ -137,7 +137,7 @@ class Arguments
template <class T>
operator T *() {
T *buf = (T *)data->alloc(sizeof(T));
- CopyData(tc, buf, getArg(sizeof(T)), sizeof(T));
+ CopyOut(tc, buf, getArg(sizeof(T)), sizeof(T));
return buf;
}