Re: Modules and CONFIG_ALTIVEC

2 messages, 2 authors, 2001-08-06 · open the first message on its own page

Re: Modules and CONFIG_ALTIVEC

From: Daniel Jacobowitz <hidden>
Date: 2001-08-06 06:38:29

On Sun, Aug 05, 2001 at 06:08:21PM -0500, Hollis wrote:
On Sunday 05 August 2001 04:49, Samuel Rydh wrote:
quoted
On ppc, the size of thread_struct depends on the CONFIG_ALTIVEC setting.
Thus, the offset of various task_struct fields are dependent upon this
config option.
[snip]
quoted
        unsigned long   fpscr;          /* Floating point status */
-#ifdef CONFIG_ALTIVEC
-       vector128       vr[32];         /* Complete AltiVec set */
-       vector128       vscr;           /* AltiVec status */
-       unsigned long   vrsave;
-#endif /* CONFIG_ALTIVEC */
+	altivec_t	*vregs;
This also affects gdb. When gdb reads a core file, it gets upset if the size
of a regset isn't what it thinks it should be. Currently it's a bit too easy
to change that size...
Yup.  Expect GDB patches to deal with that (and with altivec) from me
in the next month, if no one beats me to it.  It's approaching the top
of my TODO list.

--
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Modules and CONFIG_ALTIVEC

From: Franz Sirl <hidden>
Date: 2001-08-06 08:09:09

At 08:38 06.08.2001, Daniel Jacobowitz wrote:
On Sun, Aug 05, 2001 at 06:08:21PM -0500, Hollis wrote:
quoted
On Sunday 05 August 2001 04:49, Samuel Rydh wrote:
quoted
On ppc, the size of thread_struct depends on the CONFIG_ALTIVEC setting.
Thus, the offset of various task_struct fields are dependent upon this
config option.
[snip]
quoted
        unsigned long   fpscr;          /* Floating point status */
-#ifdef CONFIG_ALTIVEC
-       vector128       vr[32];         /* Complete AltiVec set */
-       vector128       vscr;           /* AltiVec status */
-       unsigned long   vrsave;
-#endif /* CONFIG_ALTIVEC */
+   altivec_t       *vregs;
This also affects gdb. When gdb reads a core file, it gets upset if the
size
quoted
of a regset isn't what it thinks it should be. Currently it's a bit too
easy
quoted
to change that size...
Yup.  Expect GDB patches to deal with that (and with altivec) from me
in the next month, if no one beats me to it.  It's approaching the top
of my TODO list.
Uhm, I sent a patch to Daniel Berlin a while ago for commenting, but
haven't heard back yet. I can send it to you if you want to take a look.

Franz.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help