summaryrefslogtreecommitdiff
path: root/src/sim/arguments.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/arguments.hh')
-rw-r--r--src/sim/arguments.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sim/arguments.hh b/src/sim/arguments.hh
index 498527ca2..977e3ffc0 100644
--- a/src/sim/arguments.hh
+++ b/src/sim/arguments.hh
@@ -34,10 +34,9 @@
#include <cassert>
#include <memory>
+#include "cpu/thread_context.hh"
#include "mem/fs_translating_port_proxy.hh"
-class ThreadContext;
-
class Arguments
{
protected:
@@ -137,13 +136,13 @@ class Arguments
template <class T>
operator T *() {
T *buf = (T *)data->alloc(sizeof(T));
- CopyOut(tc, buf, getArg(sizeof(T)), sizeof(T));
+ tc->getVirtProxy().readBlob(getArg(sizeof(T)), buf, sizeof(T));
return buf;
}
operator char *() {
char *buf = data->alloc(2048);
- CopyStringOut(tc, buf, getArg(), 2048);
+ tc->getVirtProxy().readString(buf, getArg(), 2048);
return buf;
}
};