2 * Emulation of Linux signals
4 * Copyright (c) 2003 Fabrice Bellard
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
19 #include "qemu/osdep.h"
21 #include "signal-common.h"
22 #include "linux-user/trace.h"
24 /* Size of dummy stack frame allocated when calling signal handler.
25 See arch/powerpc/include/asm/ptrace.h. */
26 #if defined(TARGET_PPC64)
27 #define SIGNAL_FRAMESIZE 128
29 #define SIGNAL_FRAMESIZE 64
32 /* See arch/powerpc/include/asm/ucontext.h. Only used for 32-bit PPC;
33 on 64-bit PPC, sigcontext and mcontext are one and the same. */
34 struct target_mcontext
{
35 target_ulong mc_gregs
[48];
37 uint64_t mc_fregs
[33];
39 #if defined(TARGET_PPC64)
40 /* Pointer to the vector regs */
43 * On ppc64, this mcontext structure is naturally *unaligned*,
44 * or rather it is aligned on a 8 bytes boundary but not on
45 * a 16 byte boundary. This pad fixes it up. This is why we
46 * cannot use ppc_avr_t, which would force alignment. This is
47 * also why the vector regs are referenced in the ABI by the
48 * v_regs pointer above so any amount of padding can be added here.
51 /* VSCR and VRSAVE are saved separately. Also reserve space for VSX. */
53 uint64_t altivec
[34 + 16][2];
56 target_ulong mc_pad
[2];
58 /* We need to handle Altivec and SPE at the same time, which no
59 kernel needs to do. Fortunately, the kernel defines this bit to
60 be Altivec-register-large all the time, rather than trying to
61 twiddle it based on the specific platform. */
63 /* SPE vector registers. One extra for SPEFSCR. */
66 * Altivec vector registers. One extra for VRSAVE.
67 * On ppc32, we are already aligned to 16 bytes. We could
68 * use ppc_avr_t, but choose to share the same type as ppc64.
70 uint64_t altivec
[33][2];
75 /* See arch/powerpc/include/asm/sigcontext.h. */
76 struct target_sigcontext
{
77 target_ulong _unused
[4];
79 #if defined(TARGET_PPC64)
84 target_ulong regs
; /* struct pt_regs __user * */
85 #if defined(TARGET_PPC64)
86 struct target_mcontext mcontext
;
90 /* Indices for target_mcontext.mc_gregs, below.
91 See arch/powerpc/include/asm/ptrace.h for details. */
127 TARGET_PT_ORIG_R3
= 34,
132 /* Yes, there are two registers with #39. One is 64-bit only. */
134 TARGET_PT_SOFTE
= 39,
137 TARGET_PT_DSISR
= 42,
138 TARGET_PT_RESULT
= 43,
139 TARGET_PT_REGS_COUNT
= 44
143 struct target_ucontext
{
144 target_ulong tuc_flags
;
145 target_ulong tuc_link
; /* ucontext_t __user * */
146 struct target_sigaltstack tuc_stack
;
147 #if !defined(TARGET_PPC64)
149 target_ulong tuc_regs
; /* struct mcontext __user *
150 points to uc_mcontext field */
152 target_sigset_t tuc_sigmask
;
153 #if defined(TARGET_PPC64)
154 target_sigset_t unused
[15]; /* Allow for uc_sigmask growth */
155 struct target_sigcontext tuc_sigcontext
;
157 int32_t tuc_maskext
[30];
159 struct target_mcontext tuc_mcontext
;
163 /* See arch/powerpc/kernel/signal_32.c. */
164 struct target_sigframe
{
165 struct target_sigcontext sctx
;
166 struct target_mcontext mctx
;
170 #if defined(TARGET_PPC64)
172 #define TARGET_TRAMP_SIZE 6
174 struct target_rt_sigframe
{
175 /* sys_rt_sigreturn requires the ucontext be the first field */
176 struct target_ucontext uc
;
177 target_ulong _unused
[2];
178 uint32_t trampoline
[TARGET_TRAMP_SIZE
];
179 target_ulong pinfo
; /* struct siginfo __user * */
180 target_ulong puc
; /* void __user * */
181 struct target_siginfo info
;
182 /* 64 bit ABI allows for 288 bytes below sp before decrementing it. */
184 } __attribute__((aligned(16)));
188 struct target_rt_sigframe
{
189 struct target_siginfo info
;
190 struct target_ucontext uc
;
196 #if defined(TARGET_PPC64)
198 struct target_func_ptr
{
205 /* We use the mc_pad field for the signal return trampoline. */
208 /* See arch/powerpc/kernel/signal.c. */
209 static target_ulong
get_sigframe(struct target_sigaction
*ka
,
215 oldsp
= target_sigsp(get_sp_from_cpustate(env
), ka
);
217 return (oldsp
- frame_size
) & ~0xFUL
;
220 #if ((defined(TARGET_WORDS_BIGENDIAN) && defined(HOST_WORDS_BIGENDIAN)) || \
221 (!defined(HOST_WORDS_BIGENDIAN) && !defined(TARGET_WORDS_BIGENDIAN)))
230 static void save_user_regs(CPUPPCState
*env
, struct target_mcontext
*frame
)
232 target_ulong msr
= env
->msr
;
234 target_ulong ccr
= 0;
236 /* In general, the kernel attempts to be intelligent about what it
237 needs to save for Altivec/FP/SPE registers. We don't care that
238 much, so we just go ahead and save everything. */
240 /* Save general registers. */
241 for (i
= 0; i
< ARRAY_SIZE(env
->gpr
); i
++) {
242 __put_user(env
->gpr
[i
], &frame
->mc_gregs
[i
]);
244 __put_user(env
->nip
, &frame
->mc_gregs
[TARGET_PT_NIP
]);
245 __put_user(env
->ctr
, &frame
->mc_gregs
[TARGET_PT_CTR
]);
246 __put_user(env
->lr
, &frame
->mc_gregs
[TARGET_PT_LNK
]);
247 __put_user(env
->xer
, &frame
->mc_gregs
[TARGET_PT_XER
]);
249 for (i
= 0; i
< ARRAY_SIZE(env
->crf
); i
++) {
250 ccr
|= env
->crf
[i
] << (32 - ((i
+ 1) * 4));
252 __put_user(ccr
, &frame
->mc_gregs
[TARGET_PT_CCR
]);
254 /* Save Altivec registers if necessary. */
255 if (env
->insns_flags
& PPC_ALTIVEC
) {
257 for (i
= 0; i
< 32; i
++) {
258 ppc_avr_t
*avr
= cpu_avr_ptr(env
, i
);
259 ppc_avr_t
*vreg
= (ppc_avr_t
*)&frame
->mc_vregs
.altivec
[i
];
261 __put_user(avr
->u64
[PPC_VEC_HI
], &vreg
->u64
[0]);
262 __put_user(avr
->u64
[PPC_VEC_LO
], &vreg
->u64
[1]);
264 /* Set MSR_VR in the saved MSR value to indicate that
265 frame->mc_vregs contains valid data. */
267 #if defined(TARGET_PPC64)
268 vrsave
= (uint32_t *)&frame
->mc_vregs
.altivec
[33];
269 /* 64-bit needs to put a pointer to the vectors in the frame */
270 __put_user(h2g(frame
->mc_vregs
.altivec
), &frame
->v_regs
);
272 vrsave
= (uint32_t *)&frame
->mc_vregs
.altivec
[32];
274 __put_user((uint32_t)env
->spr
[SPR_VRSAVE
], vrsave
);
277 #if defined(TARGET_PPC64)
278 /* Save VSX second halves */
279 if (env
->insns_flags2
& PPC2_VSX
) {
280 uint64_t *vsregs
= (uint64_t *)&frame
->mc_vregs
.altivec
[34];
281 for (i
= 0; i
< 32; i
++) {
282 uint64_t *vsrl
= cpu_vsrl_ptr(env
, i
);
283 __put_user(*vsrl
, &vsregs
[i
]);
288 /* Save floating point registers. */
289 if (env
->insns_flags
& PPC_FLOAT
) {
290 for (i
= 0; i
< 32; i
++) {
291 uint64_t *fpr
= cpu_fpr_ptr(env
, i
);
292 __put_user(*fpr
, &frame
->mc_fregs
[i
]);
294 __put_user((uint64_t) env
->fpscr
, &frame
->mc_fregs
[32]);
297 #if !defined(TARGET_PPC64)
298 /* Save SPE registers. The kernel only saves the high half. */
299 if (env
->insns_flags
& PPC_SPE
) {
300 for (i
= 0; i
< ARRAY_SIZE(env
->gprh
); i
++) {
301 __put_user(env
->gprh
[i
], &frame
->mc_vregs
.spe
[i
]);
303 /* Set MSR_SPE in the saved MSR value to indicate that
304 frame->mc_vregs contains valid data. */
306 __put_user(env
->spe_fscr
, &frame
->mc_vregs
.spe
[32]);
311 __put_user(msr
, &frame
->mc_gregs
[TARGET_PT_MSR
]);
314 static void encode_trampoline(int sigret
, uint32_t *tramp
)
316 /* Set up the sigreturn trampoline: li r0,sigret; sc. */
318 __put_user(0x38000000 | sigret
, &tramp
[0]);
319 __put_user(0x44000002, &tramp
[1]);
323 static void restore_user_regs(CPUPPCState
*env
,
324 struct target_mcontext
*frame
, int sig
)
326 target_ulong save_r2
= 0;
333 save_r2
= env
->gpr
[2];
336 /* Restore general registers. */
337 for (i
= 0; i
< ARRAY_SIZE(env
->gpr
); i
++) {
338 __get_user(env
->gpr
[i
], &frame
->mc_gregs
[i
]);
340 __get_user(env
->nip
, &frame
->mc_gregs
[TARGET_PT_NIP
]);
341 __get_user(env
->ctr
, &frame
->mc_gregs
[TARGET_PT_CTR
]);
342 __get_user(env
->lr
, &frame
->mc_gregs
[TARGET_PT_LNK
]);
343 __get_user(env
->xer
, &frame
->mc_gregs
[TARGET_PT_XER
]);
344 __get_user(ccr
, &frame
->mc_gregs
[TARGET_PT_CCR
]);
346 for (i
= 0; i
< ARRAY_SIZE(env
->crf
); i
++) {
347 env
->crf
[i
] = (ccr
>> (32 - ((i
+ 1) * 4))) & 0xf;
351 env
->gpr
[2] = save_r2
;
354 __get_user(msr
, &frame
->mc_gregs
[TARGET_PT_MSR
]);
356 /* If doing signal return, restore the previous little-endian mode. */
358 env
->msr
= (env
->msr
& ~(1ull << MSR_LE
)) | (msr
& (1ull << MSR_LE
));
360 /* Restore Altivec registers if necessary. */
361 if (env
->insns_flags
& PPC_ALTIVEC
) {
364 #if defined(TARGET_PPC64)
366 /* 64-bit needs to recover the pointer to the vectors from the frame */
367 __get_user(v_addr
, &frame
->v_regs
);
368 v_regs
= g2h(v_addr
);
370 v_regs
= (ppc_avr_t
*)frame
->mc_vregs
.altivec
;
372 for (i
= 0; i
< 32; i
++) {
373 ppc_avr_t
*avr
= cpu_avr_ptr(env
, i
);
374 ppc_avr_t
*vreg
= &v_regs
[i
];
376 __get_user(avr
->u64
[PPC_VEC_HI
], &vreg
->u64
[0]);
377 __get_user(avr
->u64
[PPC_VEC_LO
], &vreg
->u64
[1]);
379 /* Set MSR_VEC in the saved MSR value to indicate that
380 frame->mc_vregs contains valid data. */
381 #if defined(TARGET_PPC64)
382 vrsave
= (uint32_t *)&v_regs
[33];
384 vrsave
= (uint32_t *)&v_regs
[32];
386 __get_user(env
->spr
[SPR_VRSAVE
], vrsave
);
389 #if defined(TARGET_PPC64)
390 /* Restore VSX second halves */
391 if (env
->insns_flags2
& PPC2_VSX
) {
392 uint64_t *vsregs
= (uint64_t *)&frame
->mc_vregs
.altivec
[34];
393 for (i
= 0; i
< 32; i
++) {
394 uint64_t *vsrl
= cpu_vsrl_ptr(env
, i
);
395 __get_user(*vsrl
, &vsregs
[i
]);
400 /* Restore floating point registers. */
401 if (env
->insns_flags
& PPC_FLOAT
) {
403 for (i
= 0; i
< 32; i
++) {
404 uint64_t *fpr
= cpu_fpr_ptr(env
, i
);
405 __get_user(*fpr
, &frame
->mc_fregs
[i
]);
407 __get_user(fpscr
, &frame
->mc_fregs
[32]);
408 env
->fpscr
= (uint32_t) fpscr
;
411 #if !defined(TARGET_PPC64)
412 /* Save SPE registers. The kernel only saves the high half. */
413 if (env
->insns_flags
& PPC_SPE
) {
414 for (i
= 0; i
< ARRAY_SIZE(env
->gprh
); i
++) {
415 __get_user(env
->gprh
[i
], &frame
->mc_vregs
.spe
[i
]);
417 __get_user(env
->spe_fscr
, &frame
->mc_vregs
.spe
[32]);
422 #if !defined(TARGET_PPC64)
423 void setup_frame(int sig
, struct target_sigaction
*ka
,
424 target_sigset_t
*set
, CPUPPCState
*env
)
426 struct target_sigframe
*frame
;
427 struct target_sigcontext
*sc
;
428 target_ulong frame_addr
, newsp
;
431 frame_addr
= get_sigframe(ka
, env
, sizeof(*frame
));
432 trace_user_setup_frame(env
, frame_addr
);
433 if (!lock_user_struct(VERIFY_WRITE
, frame
, frame_addr
, 1))
437 __put_user(ka
->_sa_handler
, &sc
->handler
);
438 __put_user(set
->sig
[0], &sc
->oldmask
);
439 __put_user(set
->sig
[1], &sc
->_unused
[3]);
440 __put_user(h2g(&frame
->mctx
), &sc
->regs
);
441 __put_user(sig
, &sc
->signal
);
443 /* Save user regs. */
444 save_user_regs(env
, &frame
->mctx
);
446 /* Construct the trampoline code on the stack. */
447 encode_trampoline(TARGET_NR_sigreturn
, (uint32_t *)&frame
->mctx
.tramp
);
449 /* The kernel checks for the presence of a VDSO here. We don't
450 emulate a vdso, so use a sigreturn system call. */
451 env
->lr
= (target_ulong
) h2g(frame
->mctx
.tramp
);
453 /* Turn off all fp exceptions. */
456 /* Create a stack frame for the caller of the handler. */
457 newsp
= frame_addr
- SIGNAL_FRAMESIZE
;
458 err
|= put_user(env
->gpr
[1], newsp
, target_ulong
);
463 /* Set up registers for signal handler. */
466 env
->gpr
[4] = frame_addr
+ offsetof(struct target_sigframe
, sctx
);
468 env
->nip
= (target_ulong
) ka
->_sa_handler
;
470 /* Signal handlers are entered in big-endian mode. */
471 env
->msr
&= ~(1ull << MSR_LE
);
473 unlock_user_struct(frame
, frame_addr
, 1);
477 unlock_user_struct(frame
, frame_addr
, 1);
480 #endif /* !defined(TARGET_PPC64) */
482 void setup_rt_frame(int sig
, struct target_sigaction
*ka
,
483 target_siginfo_t
*info
,
484 target_sigset_t
*set
, CPUPPCState
*env
)
486 struct target_rt_sigframe
*rt_sf
;
487 uint32_t *trampptr
= 0;
488 struct target_mcontext
*mctx
= 0;
489 target_ulong rt_sf_addr
, newsp
= 0;
491 #if defined(TARGET_PPC64)
492 struct target_sigcontext
*sc
= 0;
493 #if !defined(TARGET_ABI32)
494 struct image_info
*image
= ((TaskState
*)thread_cpu
->opaque
)->info
;
498 rt_sf_addr
= get_sigframe(ka
, env
, sizeof(*rt_sf
));
499 if (!lock_user_struct(VERIFY_WRITE
, rt_sf
, rt_sf_addr
, 1))
502 tswap_siginfo(&rt_sf
->info
, info
);
504 __put_user(0, &rt_sf
->uc
.tuc_flags
);
505 __put_user(0, &rt_sf
->uc
.tuc_link
);
506 target_save_altstack(&rt_sf
->uc
.tuc_stack
, env
);
507 #if !defined(TARGET_PPC64)
508 __put_user(h2g (&rt_sf
->uc
.tuc_mcontext
),
509 &rt_sf
->uc
.tuc_regs
);
511 for(i
= 0; i
< TARGET_NSIG_WORDS
; i
++) {
512 __put_user(set
->sig
[i
], &rt_sf
->uc
.tuc_sigmask
.sig
[i
]);
515 #if defined(TARGET_PPC64)
516 mctx
= &rt_sf
->uc
.tuc_sigcontext
.mcontext
;
517 trampptr
= &rt_sf
->trampoline
[0];
519 sc
= &rt_sf
->uc
.tuc_sigcontext
;
520 __put_user(h2g(mctx
), &sc
->regs
);
521 __put_user(sig
, &sc
->signal
);
523 mctx
= &rt_sf
->uc
.tuc_mcontext
;
524 trampptr
= (uint32_t *)&rt_sf
->uc
.tuc_mcontext
.tramp
;
527 save_user_regs(env
, mctx
);
528 encode_trampoline(TARGET_NR_rt_sigreturn
, trampptr
);
530 /* The kernel checks for the presence of a VDSO here. We don't
531 emulate a vdso, so use a sigreturn system call. */
532 env
->lr
= (target_ulong
) h2g(trampptr
);
534 /* Turn off all fp exceptions. */
537 /* Create a stack frame for the caller of the handler. */
538 newsp
= rt_sf_addr
- (SIGNAL_FRAMESIZE
+ 16);
539 err
|= put_user(env
->gpr
[1], newsp
, target_ulong
);
544 /* Set up registers for signal handler. */
546 env
->gpr
[3] = (target_ulong
) sig
;
547 env
->gpr
[4] = (target_ulong
) h2g(&rt_sf
->info
);
548 env
->gpr
[5] = (target_ulong
) h2g(&rt_sf
->uc
);
549 env
->gpr
[6] = (target_ulong
) h2g(rt_sf
);
551 #if defined(TARGET_PPC64) && !defined(TARGET_ABI32)
552 if (get_ppc64_abi(image
) < 2) {
553 /* ELFv1 PPC64 function pointers are pointers to OPD entries. */
554 struct target_func_ptr
*handler
=
555 (struct target_func_ptr
*)g2h(ka
->_sa_handler
);
556 env
->nip
= tswapl(handler
->entry
);
557 env
->gpr
[2] = tswapl(handler
->toc
);
559 /* ELFv2 PPC64 function pointers are entry points. R12 must also be set. */
560 env
->gpr
[12] = env
->nip
= ka
->_sa_handler
;
563 env
->nip
= (target_ulong
) ka
->_sa_handler
;
566 /* Signal handlers are entered in big-endian mode. */
567 env
->msr
&= ~(1ull << MSR_LE
);
569 unlock_user_struct(rt_sf
, rt_sf_addr
, 1);
573 unlock_user_struct(rt_sf
, rt_sf_addr
, 1);
578 #if !defined(TARGET_PPC64) || defined(TARGET_ABI32)
579 long do_sigreturn(CPUPPCState
*env
)
581 struct target_sigcontext
*sc
= NULL
;
582 struct target_mcontext
*sr
= NULL
;
583 target_ulong sr_addr
= 0, sc_addr
;
587 sc_addr
= env
->gpr
[1] + SIGNAL_FRAMESIZE
;
588 if (!lock_user_struct(VERIFY_READ
, sc
, sc_addr
, 1))
591 #if defined(TARGET_PPC64)
592 set
.sig
[0] = sc
->oldmask
+ ((uint64_t)(sc
->_unused
[3]) << 32);
594 __get_user(set
.sig
[0], &sc
->oldmask
);
595 __get_user(set
.sig
[1], &sc
->_unused
[3]);
597 target_to_host_sigset_internal(&blocked
, &set
);
598 set_sigmask(&blocked
);
600 __get_user(sr_addr
, &sc
->regs
);
601 if (!lock_user_struct(VERIFY_READ
, sr
, sr_addr
, 1))
603 restore_user_regs(env
, sr
, 1);
605 unlock_user_struct(sr
, sr_addr
, 1);
606 unlock_user_struct(sc
, sc_addr
, 1);
607 return -TARGET_QEMU_ESIGRETURN
;
610 unlock_user_struct(sr
, sr_addr
, 1);
611 unlock_user_struct(sc
, sc_addr
, 1);
612 force_sig(TARGET_SIGSEGV
);
613 return -TARGET_QEMU_ESIGRETURN
;
615 #endif /* !defined(TARGET_PPC64) */
617 /* See arch/powerpc/kernel/signal_32.c. */
618 static int do_setcontext(struct target_ucontext
*ucp
, CPUPPCState
*env
, int sig
)
620 struct target_mcontext
*mcp
;
621 target_ulong mcp_addr
;
625 if (copy_from_user(&set
, h2g(ucp
) + offsetof(struct target_ucontext
, tuc_sigmask
),
629 #if defined(TARGET_PPC64)
630 mcp_addr
= h2g(ucp
) +
631 offsetof(struct target_ucontext
, tuc_sigcontext
.mcontext
);
633 __get_user(mcp_addr
, &ucp
->tuc_regs
);
636 if (!lock_user_struct(VERIFY_READ
, mcp
, mcp_addr
, 1))
639 target_to_host_sigset_internal(&blocked
, &set
);
640 set_sigmask(&blocked
);
641 restore_user_regs(env
, mcp
, sig
);
643 unlock_user_struct(mcp
, mcp_addr
, 1);
647 long do_rt_sigreturn(CPUPPCState
*env
)
649 struct target_rt_sigframe
*rt_sf
= NULL
;
650 target_ulong rt_sf_addr
;
652 rt_sf_addr
= env
->gpr
[1] + SIGNAL_FRAMESIZE
+ 16;
653 if (!lock_user_struct(VERIFY_READ
, rt_sf
, rt_sf_addr
, 1))
656 if (do_setcontext(&rt_sf
->uc
, env
, 1))
659 do_sigaltstack(rt_sf_addr
660 + offsetof(struct target_rt_sigframe
, uc
.tuc_stack
),
663 unlock_user_struct(rt_sf
, rt_sf_addr
, 1);
664 return -TARGET_QEMU_ESIGRETURN
;
667 unlock_user_struct(rt_sf
, rt_sf_addr
, 1);
668 force_sig(TARGET_SIGSEGV
);
669 return -TARGET_QEMU_ESIGRETURN
;
672 /* This syscall implements {get,set,swap}context for userland. */
673 abi_long
do_swapcontext(CPUArchState
*env
, abi_ulong uold_ctx
,
674 abi_ulong unew_ctx
, abi_long ctx_size
)
676 struct target_ucontext
*uctx
;
677 struct target_mcontext
*mctx
;
679 /* For ppc32, ctx_size is "reserved for future use".
680 * For ppc64, we do not yet support the VSX extension.
682 if (ctx_size
< sizeof(struct target_ucontext
)) {
683 return -TARGET_EINVAL
;
687 TaskState
*ts
= (TaskState
*)thread_cpu
->opaque
;
689 if (!lock_user_struct(VERIFY_WRITE
, uctx
, uold_ctx
, 1)) {
690 return -TARGET_EFAULT
;
694 mctx
= &uctx
->tuc_sigcontext
.mcontext
;
696 /* ??? The kernel aligns the pointer down here into padding, but
697 * in setup_rt_frame we don't. Be self-compatible for now.
699 mctx
= &uctx
->tuc_mcontext
;
700 __put_user(h2g(mctx
), &uctx
->tuc_regs
);
703 save_user_regs(env
, mctx
);
704 host_to_target_sigset(&uctx
->tuc_sigmask
, &ts
->signal_mask
);
706 unlock_user_struct(uctx
, uold_ctx
, 1);
712 if (!lock_user_struct(VERIFY_READ
, uctx
, unew_ctx
, 1)) {
713 return -TARGET_EFAULT
;
715 err
= do_setcontext(uctx
, env
, 0);
716 unlock_user_struct(uctx
, unew_ctx
, 1);
719 /* We cannot return to a partially updated context. */
720 force_sig(TARGET_SIGSEGV
);
722 return -TARGET_QEMU_ESIGRETURN
;