提交 a31e7605 编写于 作者: L Laurent Vivier

linux-user: fix microblaze get_sp_from_cpustate()

get_sigframe() uses regs[1] and this is actual SP.
Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
Message-Id: <20180409115212.875-1-laurent@vivier.eu>
上级 df6378eb
...@@ -23,7 +23,7 @@ typedef struct target_sigaltstack { ...@@ -23,7 +23,7 @@ typedef struct target_sigaltstack {
static inline abi_ulong get_sp_from_cpustate(CPUMBState *state) static inline abi_ulong get_sp_from_cpustate(CPUMBState *state)
{ {
return state->regs[14]; return state->regs[1];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册