Re: [PATCH v4 24/24] openrisc: head: Init r0 to 0 on start

2017-02-24 Thread Stafford Horne
On Fri, Feb 24, 2017 at 10:21:50AM +0100, Jonas Bonn wrote: > On 02/24/2017 05:32 AM, Stafford Horne wrote: > > 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 u

Re: [PATCH v4 24/24] openrisc: head: Init r0 to 0 on start

2017-02-24 Thread Jonas Bonn
On 02/24/2017 05:32 AM, Stafford Horne wrote: 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. Ch