[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] Jump instructions



Definetely manual mistake.

best regards,
Marko

On Friday 24 January 2003 18:26, Damjan Lampret wrote:
> Most likely a mistake in the manual, I'd say. Afterall I mentioned I need
> to update the manual.
>
> regards,
> Damjan
>
> ----- Original Message -----
> From: "Carlos Sanchez de La Lama" <csanchez@teisa.unican.es>
> To: <openrisc@opencores.org>
> Sent: Friday, January 24, 2003 4:59 PM
> Subject: [openrisc] Jump instructions
>
> > Hello!
> >
> > The OpenRISC 1000 Architecture Manual states that in "jump" and "jump and
> > link" instructions (l.j/l.jal) the immediate offset is added to the
>
> address
>
> > of the delay slot to obtain the jump destination adress. However, the
>
> or1ksim
>
> > simulator and or1200 verilog code seem to perform this addition to the
> > address of the jump instruction itself.
> >
> > GCC calculates jump addresses in the latter way, and code generated runs
> > correctly on or1ksim and or1200, so I think that is the right way and
> > what manual says is wrong. Please confirm that this is correct.
> >
> > Best regards,
> >
> > Carlos Sanchez de La Lama <csanchez@teisa.unican.es>
> > --
> > To unsubscribe from openrisc mailing list please visit
>
> http://www.opencores.org/mailinglists.shtml

--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml