summaryrefslogtreecommitdiff
path: root/src/arch/alpha/isa_traits.hh
diff options
context:
space:
mode:
authorDam Sunwoo <dam.sunwoo@arm.com>2012-11-02 11:32:00 -0500
committerDam Sunwoo <dam.sunwoo@arm.com>2012-11-02 11:32:00 -0500
commitac161c1d7294fc755b6c06e23f719f577d926695 (patch)
tree356f6fca7b368a34e68687ac02bef6f543207022 /src/arch/alpha/isa_traits.hh
parentd0678d1c31bbb0c08e58762a36d5d2382b0a537f (diff)
downloadgem5-ac161c1d7294fc755b6c06e23f719f577d926695.tar.xz
ISA: generic Linux thread info support
This patch takes the Linux thread info support scattered across different ISA implementations (currently in ARM, ALPHA, and MIPS), and unifies them into a single file. Adds a few more helper functions to read out TGID, mm, etc. ISA-specific information (e.g., ALPHA PCBB register) is now moved to the corresponding isa_traits.hh files.
Diffstat (limited to 'src/arch/alpha/isa_traits.hh')
-rw-r--r--src/arch/alpha/isa_traits.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/alpha/isa_traits.hh b/src/arch/alpha/isa_traits.hh
index 5738ccdb1..41b63ec5a 100644
--- a/src/arch/alpha/isa_traits.hh
+++ b/src/arch/alpha/isa_traits.hh
@@ -34,6 +34,7 @@
namespace LittleEndianGuest {}
+#include "arch/alpha/ipr.hh"
#include "arch/alpha/types.hh"
#include "base/types.hh"
#include "cpu/static_inst_fwd.hh"
@@ -129,6 +130,9 @@ const ExtMachInst NoopMachInst = 0x2ffe0000;
// Memory accesses cannot be unaligned
const bool HasUnalignedMemAcc = false;
+const bool CurThreadInfoImplemented = true;
+const int CurThreadInfoReg = AlphaISA::IPR_PALtemp23;
+
} // namespace AlphaISA
#endif // __ARCH_ALPHA_ISA_TRAITS_HH__