qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v2 1/6] linux-user: Add host_signal_set_pc to set pc in mcontex


From: Richard Henderson
Subject: Re: [RFC v2 1/6] linux-user: Add host_signal_set_pc to set pc in mcontext
Date: Wed, 10 Nov 2021 17:42:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 11/10/21 5:31 PM, Warner Losh wrote:
+static inline void host_signal_set_pc(ucontext_t *uc, uintptr_t pc)
+{
+#ifdef __arch64__
+    uc->uc_mcontext.mc_gregs[MC_PC] = pc;
+#else
+    &uc->uc_mcontext.gregs[REG_PC] = pc;

Stray & here.  Not that I have a sparc32 host on which to compile this...


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]