From: Gabe Black Date: Fri, 9 Mar 2007 22:14:25 +0000 (+0000) Subject: Use the TheISA namespace in case we're coming from a file that doesn't do that for... X-Git-Tag: m5_2.0_beta3~123 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1e3e1c3053866f63f3826126260f43bf0c7d0c7;p=gem5.git Use the TheISA namespace in case we're coming from a file that doesn't do that for us. This should be contained in the scope of the function and not leak elsewhere. --HG-- extra : convert_revision : 0bb0e1457011505a99a871c443bc45f4365e9c7e --- diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 94ae8e3e6..a3d95b8ec 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -353,6 +353,8 @@ template static void convertStatBuf(target_stat &tgt, host_stat *host, bool fakeTTY = false) { + using namespace TheISA; + if (fakeTTY) tgt->st_dev = 0xA; else @@ -395,6 +397,8 @@ template static void convertStat64Buf(target_stat &tgt, host_stat64 *host, bool fakeTTY = false) { + using namespace TheISA; + convertStatBuf(tgt, host, fakeTTY); #if defined(STAT_HAVE_NSEC) tgt->st_atime_nsec = host->st_atime_nsec;