_nios2_read_sp: fix register read

We were reading et and not sp.

Change-Id: I064e8bebf2107f1900d31c213e7752e1aaead2ca
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-23 13:46:17 -07:00 committed by Inaky Perez-Gonzalez
commit 0b98056350

View file

@ -77,7 +77,7 @@ static inline uint32_t _nios2_read_sp(void)
{
uint32_t sp;
__asm__("mov %0, et" : "=r" (sp));
__asm__("mov %0, sp" : "=r" (sp));
return sp;
}