Revision d569956e target-ppc/helper.c
b/target-ppc/helper.c | ||
---|---|---|
70 | 70 |
# define LOG_EXCP(...) do { } while (0) |
71 | 71 |
#endif |
72 | 72 |
|
73 |
/*****************************************************************************/ |
|
74 |
/* PowerPC Hypercall emulation */ |
|
75 |
|
|
76 |
void (*cpu_ppc_hypercall)(CPUState *); |
|
73 | 77 |
|
74 | 78 |
/*****************************************************************************/ |
75 | 79 |
/* PowerPC MMU emulation */ |
... | ... | |
2152 | 2156 |
case POWERPC_EXCP_SYSCALL: /* System call exception */ |
2153 | 2157 |
dump_syscall(env); |
2154 | 2158 |
lev = env->error_code; |
2159 |
if ((lev == 1) && cpu_ppc_hypercall) { |
|
2160 |
cpu_ppc_hypercall(env); |
|
2161 |
return; |
|
2162 |
} |
|
2155 | 2163 |
if (lev == 1 || (lpes0 == 0 && lpes1 == 0)) |
2156 | 2164 |
new_msr |= (target_ulong)MSR_HVB; |
2157 | 2165 |
goto store_next; |
Also available in: Unified diff