aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-04-09 13:52:11 +0200
committerLaurent Vivier <laurent@vivier.eu>2018-04-10 17:41:55 +0200
commita31e7605dda326d8d42d5dadfa665838c2a9397f (patch)
tree6d51499882d991ff9dc941eac6f478f7c4987dac
parentdf6378eb0e6cfd58a22a1c3ff8fa4a9039f1eaa8 (diff)
downloadqemu-arm-a31e7605dda326d8d42d5dadfa665838c2a9397f.tar.gz
linux-user: fix microblaze get_sp_from_cpustate()
get_sigframe() uses regs[1] and this is actual SP. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180409115212.875-1-laurent@vivier.eu>
-rw-r--r--linux-user/microblaze/target_signal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/microblaze/target_signal.h b/linux-user/microblaze/target_signal.h
index de2b0f49d5..642865f12e 100644
--- a/linux-user/microblaze/target_signal.h
+++ b/linux-user/microblaze/target_signal.h
@@ -23,7 +23,7 @@ typedef struct target_sigaltstack {
static inline abi_ulong get_sp_from_cpustate(CPUMBState *state)
{
- return state->regs[14];
+ return state->regs[1];
}