Revision 16415335
b/target-ppc/kvm.c | ||
---|---|---|
124 | 124 |
return 0; |
125 | 125 |
} |
126 | 126 |
|
127 |
#if defined(TARGET_PPCEMB) |
|
128 |
#define PPC_INPUT_INT PPC40x_INPUT_INT |
|
129 |
#elif defined(TARGET_PPC64) |
|
130 |
#define PPC_INPUT_INT PPC970_INPUT_INT |
|
131 |
#else |
|
132 |
#define PPC_INPUT_INT PPC6xx_INPUT_INT |
|
133 |
#endif |
|
134 |
|
|
127 | 135 |
int kvm_arch_pre_run(CPUState *env, struct kvm_run *run) |
128 | 136 |
{ |
129 | 137 |
int r; |
... | ... | |
133 | 141 |
* interrupt, reset, etc) in PPC-specific env->irq_input_state. */ |
134 | 142 |
if (run->ready_for_interrupt_injection && |
135 | 143 |
(env->interrupt_request & CPU_INTERRUPT_HARD) && |
136 |
(env->irq_input_state & (1<<PPC40x_INPUT_INT)))
|
|
144 |
(env->irq_input_state & (1<<PPC_INPUT_INT))) |
|
137 | 145 |
{ |
138 | 146 |
/* For now KVM disregards the 'irq' argument. However, in the |
139 | 147 |
* future KVM could cache it in-kernel to avoid a heavyweight exit |
Also available in: Unified diff