From e196ffd7eb16ec29200c7d153e0e654a7270f684 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Sat, 9 Nov 2002 07:59:02 +0000 Subject: [PATCH] (struct ia64_script_cache): New structure (broken out from global unwind state). (Logical change 1.22) --- src/ia64/script.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ia64/script.h b/src/ia64/script.h index cf6b785e..92c8ef54 100644 --- a/src/ia64/script.h +++ b/src/ia64/script.h @@ -68,6 +68,20 @@ struct ia64_script struct ia64_script_insn insn[IA64_MAX_SCRIPT_LEN]; }; +struct ia64_script_cache + { + unsigned short lru_head; /* index of lead-recently used script */ + unsigned short lru_tail; /* index of most-recently used script */ + + /* hash table that maps instruction pointer to script index: */ + unsigned short hash[IA64_UNW_HASH_SIZE]; + + uint32_t generation; /* generation number */ + + /* script cache: */ + struct ia64_script buckets[IA64_UNW_CACHE_SIZE]; + }; + #define ia64_script_lookup UNW_OBJ(ia64_script_lookup) extern struct ia64_script *ia64_script_lookup (struct ia64_cursor *c);