Message ID | COL130-W85FD54B46D5B8D1DC24867B9790@phx.gbl |
---|---|
State | New |
Headers | show |
diff --git a/user-exec.c b/user-exec.c index bc58056..27c0f3d 100644 --- a/user-exec.c +++ b/user-exec.c @@ -358,8 +358,8 @@ int cpu_signal_handler(int host_signum, void *pinfo, { siginfo_t *info = pinfo; struct ucontext *uc = puc; - uint32_t *pc = uc->uc_mcontext.sc_pc; - uint32_t insn = *pc; + unsigned long pc = uc->uc_mcontext.sc_pc; + uint32_t insn = *(uint32_t *)pc; int is_write = 0; /* XXX: need kernel patch to get write flag faster */