/* Note: here we depend on the fact that general registers are
expected to start with register number 0! */
unw_set_reg (&context->cursor, index, val);
+#ifdef UNW_TARGET_IA64
+ if (index >= UNW_IA64_GR && index <= UNW_IA64_GR + 127)
+ /* Clear the NaT bit. */
+ unw_set_reg (&context->cursor, UNW_IA64_NAT + (index - UNW_IA64_GR), 0);
+#endif
}
/* Retrieve the return address for CONTEXT. */