mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
initial x86-64 host support (Gwenole Beauchesne)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@670 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5069146392
commit
bc51c5c989
17 changed files with 3623 additions and 1323 deletions
15
cpu-exec.c
15
cpu-exec.c
|
@ -785,6 +785,21 @@ int cpu_signal_handler(int host_signum, struct siginfo *info,
|
|||
&uc->uc_sigmask, puc);
|
||||
}
|
||||
|
||||
#elif defined(__x86_64__)
|
||||
|
||||
int cpu_signal_handler(int host_signum, struct siginfo *info,
|
||||
void *puc)
|
||||
{
|
||||
struct ucontext *uc = puc;
|
||||
unsigned long pc;
|
||||
|
||||
pc = uc->uc_mcontext.gregs[REG_RIP];
|
||||
return handle_cpu_signal(pc, (unsigned long)info->si_addr,
|
||||
uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe ?
|
||||
(uc->uc_mcontext.gregs[REG_ERR] >> 1) & 1 : 0,
|
||||
&uc->uc_sigmask, puc);
|
||||
}
|
||||
|
||||
#elif defined(__powerpc)
|
||||
|
||||
int cpu_signal_handler(int host_signum, struct siginfo *info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue