+2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
+
+ * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
+ (xtensa_fill_gregset): Call collect_register_by_name for
+ threadptr register.
+ (xtensa_store_gregset): Call supply_register_by_name for
+ threadptr register.
+
2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
* linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
R_LBEG, R_LEND, R_LCOUNT,
R_SAR,
R_WS, R_WB,
+ R_THREADPTR,
R_A0 = 64
};
collect_register_by_name (regcache, "ps", (char*)&rset[R_PS]);
collect_register_by_name (regcache, "windowbase", (char*)&rset[R_WB]);
collect_register_by_name (regcache, "windowstart", (char*)&rset[R_WS]);
+
+#if XCHAL_HAVE_THREADPTR
+ collect_register_by_name (regcache, "threadptr",
+ (char *) &rset[R_THREADPTR]);
+#endif
}
static void
supply_register_by_name (regcache, "ps", (char*)&rset[R_PS]);
supply_register_by_name (regcache, "windowbase", (char*)&rset[R_WB]);
supply_register_by_name (regcache, "windowstart", (char*)&rset[R_WS]);
+
+#if XCHAL_HAVE_THREADPTR
+ supply_register_by_name (regcache, "threadptr",
+ (char *) &rset[R_THREADPTR]);
+#endif
}
/* Xtensa GNU/Linux PTRACE interface includes extended register set. */