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

[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