summaryrefslogtreecommitdiff
path: root/kern/linux/thread_info.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-08-18 23:06:51 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-08-18 23:06:51 -0400
commit9d4ee7acaa930811bbb8e28894a96fd371702ef4 (patch)
tree15b67b1fbd88afb34dbf4860adc340408b3da149 /kern/linux/thread_info.hh
parent239183cfe675684aeca1a2b24362ca5e0a82809d (diff)
downloadgem5-9d4ee7acaa930811bbb8e28894a96fd371702ef4.tar.xz
Added code using VPtr to be able to extract info from linux thread
structures. Added event to print out currently running task base/traceflags.py: Added Thread trace flag kern/linux/linux_system.cc: kern/linux/linux_system.hh: Added event to print out currently running task --HG-- extra : convert_revision : 94347dbaf90f39eb40467b2a43b4628a3deafc6c
Diffstat (limited to 'kern/linux/thread_info.hh')
-rw-r--r--kern/linux/thread_info.hh27
1 files changed, 27 insertions, 0 deletions
diff --git a/kern/linux/thread_info.hh b/kern/linux/thread_info.hh
new file mode 100644
index 000000000..1b4053a78
--- /dev/null
+++ b/kern/linux/thread_info.hh
@@ -0,0 +1,27 @@
+#ifndef __ALPHA_THREAD_INFO_H__
+#define __ALPHA_THREAD_INFO_H__
+
+#include "kern/linux/hwrpb.hh"
+#include "kern/linux/aligned.hh"
+
+namespace Linux {
+ struct thread_info {
+ struct pcb_struct pcb; /* palcode state */
+
+ Addr_a task; /* main task structure */
+ uint32_t flags; /* low level flags */
+ uint32_t ieee_state; /* see fpu.h */
+
+ Addr_a exec_domain; /* execution domain */
+ uint64_ta addr_limit; /* thread address space */
+ int64_ta cpu; /* current CPU */
+ int32_t preempt_count; /* 0 => preemptable, <0 => BUG */
+
+ int32_t bpt_nsaved;
+ uint64_ta bpt_addr[2]; /* breakpoint handling */
+ uint32_t bpt_insn[2];
+
+ /*restart_block;*/
+ };
+}
+#endif /* __ALPHA_THREAD_INFO_H__ */