diff options
author | Chen Gang <chengang@emindsoft.com.cn> | 2016-03-29 22:13:45 +0800 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-05-27 14:50:40 +0300 |
commit | 166c97edd682878943f496f1a3cbed49e096d43b (patch) | |
tree | 5bdca32b4b6f5fd9445896cf46a6b188b11cbf6a /linux-user/signal.c | |
parent | f1d9d1071c01bc5852750b0a829cf45f32cde709 (diff) | |
download | qemu-166c97edd682878943f496f1a3cbed49e096d43b.zip qemu-166c97edd682878943f496f1a3cbed49e096d43b.tar.gz qemu-166c97edd682878943f496f1a3cbed49e096d43b.tar.bz2 |
linux-user/signal.c: Use target address instead of host address for microblaze restorer
The return address is in target space, so the restorer address needs to
be target space, too.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r-- | linux-user/signal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index a072fa6..c75fb48 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -3573,7 +3573,8 @@ static void setup_frame(int sig, struct target_sigaction *ka, /* Return from sighandler will jump to the tramp. Negative 8 offset because return is rtsd r15, 8 */ - env->regs[15] = ((unsigned long)frame->tramp) - 8; + env->regs[15] = frame_addr + offsetof(struct target_signal_frame, tramp) + - 8; } /* Set up registers for signal handler */ |