diff --git a/src/ia64/regs.h b/src/ia64/regs.h index 49df753d..1e748bbe 100644 --- a/src/ia64/regs.h +++ b/src/ia64/regs.h @@ -1,5 +1,5 @@ /* libunwind - a platform-independent unwind library - Copyright (C) 2002-2004 Hewlett-Packard Co + Copyright (C) 2002-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang This file is part of libunwind. @@ -71,31 +71,3 @@ rotate_fr (struct cursor *c, int reg) Debug (15, "rrb.fr=%u, f%d -> f%d\n", rrb_fr, reg, preg); return preg; } - -/* Apply logical-to-physical rotation. */ - -static inline unw_word_t -pr_ltop (struct cursor *c, unw_word_t pr) -{ - unw_word_t rrb_pr, mask, rot; - - rrb_pr = (c->cfm >> 32) & 0x3f; - rot = pr >> 16; - mask = ((unw_word_t) 1 << rrb_pr) - 1; - rot = ((pr & mask) << (48 - rrb_pr)) | ((pr >> rrb_pr) & mask); - return (pr & 0xffff) | (rot << 16); -} - -/* Apply physical-to-logical rotation. */ - -static inline unw_word_t -pr_ptol (struct cursor *c, unw_word_t pr) -{ - unw_word_t rrb_pr, mask, rot; - - rrb_pr = 48 - ((c->cfm >> 32) & 0x3f); - rot = pr >> 16; - mask = ((unw_word_t) 1 << rrb_pr) - 1; - rot = ((pr & mask) << (48 - rrb_pr)) | ((pr >> rrb_pr) & mask); - return (pr & 0xffff) | (rot << 16); -}