s390 bits
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1530 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
db6e6ed77e
commit
90cb949352
17
cpu-exec.c
17
cpu-exec.c
|
@ -1280,6 +1280,23 @@ int cpu_signal_handler(int host_signum, struct siginfo *info, void *puc)
|
||||||
&uc->uc_sigmask, puc);
|
&uc->uc_sigmask, puc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#elif defined(__s390__)
|
||||||
|
|
||||||
|
int cpu_signal_handler(int host_signum, struct siginfo *info,
|
||||||
|
void *puc)
|
||||||
|
{
|
||||||
|
struct ucontext *uc = puc;
|
||||||
|
unsigned long pc;
|
||||||
|
int is_write;
|
||||||
|
|
||||||
|
pc = uc->uc_mcontext.psw.addr;
|
||||||
|
/* XXX: compute is_write */
|
||||||
|
is_write = 0;
|
||||||
|
return handle_cpu_signal(pc, (unsigned long)info->si_addr,
|
||||||
|
is_write,
|
||||||
|
&uc->uc_sigmask, puc);
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#error host CPU specific signal handler needed
|
#error host CPU specific signal handler needed
|
||||||
|
|
|
@ -218,6 +218,7 @@ extern int __op_jmp0, __op_jmp1, __op_jmp2, __op_jmp3;
|
||||||
#endif
|
#endif
|
||||||
#ifdef __s390__
|
#ifdef __s390__
|
||||||
#define EXIT_TB() asm volatile ("br %r14")
|
#define EXIT_TB() asm volatile ("br %r14")
|
||||||
|
#define GOTO_LABEL_PARAM(n) asm volatile ("b " ASM_NAME(__op_gen_label) #n)
|
||||||
#endif
|
#endif
|
||||||
#ifdef __alpha__
|
#ifdef __alpha__
|
||||||
#define EXIT_TB() asm volatile ("ret")
|
#define EXIT_TB() asm volatile ("ret")
|
||||||
|
|
9
vl.c
9
vl.c
|
@ -532,6 +532,15 @@ int64_t cpu_get_real_ticks(void)
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#elif defined(__s390__)
|
||||||
|
|
||||||
|
int64_t cpu_get_real_ticks(void)
|
||||||
|
{
|
||||||
|
int64_t val;
|
||||||
|
asm volatile("stck 0(%1)" : "=m" (val) : "a" (&val) : "cc");
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error unsupported CPU
|
#error unsupported CPU
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue