summaryrefslogtreecommitdiff
path: root/kern/linux
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-03-12 15:51:48 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-03-12 15:51:48 -0500
commit84a6044f31b9e2209bd49ae1d184289a0fa947bd (patch)
treeee5b7334949b28bcb8fe0ea2560135ea78b5066f /kern/linux
parent71c2c962dbaf4e04d64a117b5b333a3c039423ad (diff)
downloadgem5-84a6044f31b9e2209bd49ae1d184289a0fa947bd.tar.xz
Add "using namespace TheISA" to syscall emulation functions so they pick up the right definitions of htog/gtoh etc.
--HG-- extra : convert_revision : 7ee949a2151f9a8d158815a7dffba6c19779f282
Diffstat (limited to 'kern/linux')
-rw-r--r--kern/linux/linux.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/linux/linux.hh b/kern/linux/linux.hh
index 4244eb369..9237084fc 100644
--- a/kern/linux/linux.hh
+++ b/kern/linux/linux.hh
@@ -244,6 +244,8 @@ class Linux {
static void
copyOutStatBuf(TranslatingPort *mem, Addr addr, hst_stat *host)
{
+ using namespace TheISA;
+
TypedBufferArg<Linux::tgt_stat> tgt(addr);
tgt->st_dev = htog(host->st_dev);
@@ -268,6 +270,8 @@ class Linux {
static void
copyOutStatBuf(TranslatingPort *mem, Addr addr, hst_stat64 *host)
{
+ using namespace TheISA;
+
TypedBufferArg<Linux::tgt_stat> tgt(addr);
tgt->st_dev = htog(host->st_dev);
@@ -293,6 +297,8 @@ class Linux {
static void
copyOutStat64Buf(TranslatingPort *mem, int fd, Addr addr, hst_stat64 *host)
{
+ using namespace TheISA;
+
TypedBufferArg<Linux::tgt_stat64> tgt(addr);
// fd == 1 checks are because libc does some checks