Stafford Horne a4d4426635 openrisc: head: Init r0 to 0 on start
Originally openrisc spec 0 specified that r0 would be wired to ground.
This is no longer the case.  r0 is not guaranteed to be 0 at init, so we
need to initialize it to 0 before using it.

Also, if we are clearing r0 we cant use r0 to clear itself. Change the
the CLEAR_GPR macro to use movhi for clearing.

Reported-by: Jakob Viketoft <jakob.viketoft@aacmicrotec.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
2017-02-25 05:08:47 +09:00
..
2017-02-25 04:14:36 +09:00
2017-02-25 05:08:47 +09:00
2014-09-03 13:11:02 +00:00
2013-04-08 17:39:27 +02:00
2017-02-25 04:14:35 +09:00
2011-07-22 18:46:34 +02:00
2017-02-06 21:50:43 +09:00