From: Ali Saidi Date: Thu, 2 Aug 2007 18:34:58 +0000 (-0400) Subject: Linux Support: make sure that when we get the stack page for thread info we're doing... X-Git-Tag: m5_2.0_beta4~204^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acb91c2dfa19dadc4549b2e0fced42b2a8bce34f;p=gem5.git Linux Support: make sure that when we get the stack page for thread info we're doing a 64bit not --HG-- extra : convert_revision : c581921dd601fc72fd2d45b961c7440755b0331c --- diff --git a/src/arch/alpha/linux/threadinfo.hh b/src/arch/alpha/linux/threadinfo.hh index caeb69f15..b9ffe02ae 100644 --- a/src/arch/alpha/linux/threadinfo.hh +++ b/src/arch/alpha/linux/threadinfo.hh @@ -57,7 +57,7 @@ class ThreadInfo * thread_info struct. So we can get the address by masking off * the lower 14 bits. */ - current = tc->readIntReg(TheISA::StackPointerReg) & ~0x3fff; + current = tc->readIntReg(TheISA::StackPointerReg) & ~ULL(0x3fff); return VPtr(tc, current); }