| View previous topic :: View next topic |
| Author |
Message |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Sat Jun 25, 2005 12:55 pm Post subject: Using the VFU? |
|
|
Does anyone know anything about accessing the VFU?
From what i know, its a similar coprocessor to the PS2's VU0, but way better. It supposedly has less latency, can perform operations from the general registers (saves on loads of qmtc2/qmfc2 instructions), and has a dot product!! :P
Does the inline assembler know aything about the coprocessor instructions? (i'm not really sure how GCC is put together, or how it knows about its architectures assembly.. sorry, i'm not really a linux dude :/) |
|
| Back to top |
|
 |
ReKleSS

Joined: 18 Jun 2005 Posts: 73 Location: Melbourne, Australia
|
Posted: Sat Jun 25, 2005 12:58 pm Post subject: |
|
|
The opcodes and stuff to control the vfu are in the toolchain. Take a look at the diffs for binutils/binutils-psp/opcodes/mips-opc.c.diff if you want to see them. The problem is, the compiler chokes on them and nobody knows how to initialise the vfu just yet. So... you can't do anything with it yet.
-ReK
(this is my understanding of the current situation, anyway) |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat Jun 25, 2005 3:25 pm Post subject: |
|
|
| Although the VFPU opcodes are listed in mips-opc.c, they aren't supported by the assembler yet (and are only partially supported by the disassembler). I'm still working on getting them supported, but it's a lot of work. |
|
| Back to top |
|
 |
|