Multiple undocumented instructions that exist in binutils

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Multiple undocumented instructions that exist in binutils

Postby alexrp » Tue Dec 10, 2013 9:29 am

These are:

* FEXT
* FDEP
* LFSR
* FRECIP
* FSQRT
* SWI

I might have missed others...
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: Multiple undocumented instructions that exist in binutil

Postby alexrp » Wed Dec 11, 2013 2:10 pm

For what it's worth: From what I've gathered, SWI is just an operand-less instruction that sets ILAT[9]=1, thus causing a user interrupt. Kind of a big deal that this one in particular isn't documented.
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: Multiple undocumented instructions that exist in binutil

Postby timpart » Wed Dec 11, 2013 8:34 pm

Looking at src/cpu/epiphany.cpu SWI is meant to take a 6 bit unsigned number, the same as TRAP. However e-as only seems to accept SWI 0.

Perhaps this opcode isn't properly tested or has been found to have bugs? It would be useful to have working if the hardware supports it correctly. This sort of instruction tends to be used to implement Operating System routines.

Tim
timpart
 
Posts: 302
Joined: Mon Dec 17, 2012 3:25 am
Location: UK

Re: Multiple undocumented instructions that exist in binutil

Postby aolofsson » Thu Dec 12, 2013 7:03 pm

Alex,
You can ignore those opcodes. SWI exists in hardware, but hasn't been properly tested yet...
The rest of the instructions are ghosts and should be removed from binutils.
Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: Multiple undocumented instructions that exist in binutil

Postby alexrp » Fri Dec 13, 2013 7:55 am

So the correct way to trigger a user interrupt today is to write to ILAT[9], right? Presumably that's what SWI will do if/when it becomes a supported instruction?
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: Multiple undocumented instructions that exist in binutil

Postby timpart » Fri Dec 13, 2013 1:31 pm

timpart
 
Posts: 302
Joined: Mon Dec 17, 2012 3:25 am
Location: UK

Re: Multiple undocumented instructions that exist in binutil

Postby alexrp » Fri Dec 20, 2013 10:18 am

Andreas, can you elaborate a bit on the encoding of SWI? I know it's not supported/documented yet, but it can't hurt to have the support there in my simulator.
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 19 guests