From: Alexander Graf Date: Fri, 17 Jul 2009 11:51:46 +0000 (+0200) Subject: Use correct input constant X-Git-Tag: qemu-xen-4.2.0~6423 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=16415335bea79c0226f92aec82197ab07b55ba65;p=qemu-xen.git Use correct input constant 440 and desktop codes use different input constants for interrupt indication. Let's use the respective ones for KVM. Signed-off-by: Alexander Graf Signed-off-by: Anthony Liguori --- diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 04bb305a37..b53d6e99ae 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -124,6 +124,14 @@ int kvm_arch_get_registers(CPUState *env) return 0; } +#if defined(TARGET_PPCEMB) +#define PPC_INPUT_INT PPC40x_INPUT_INT +#elif defined(TARGET_PPC64) +#define PPC_INPUT_INT PPC970_INPUT_INT +#else +#define PPC_INPUT_INT PPC6xx_INPUT_INT +#endif + int kvm_arch_pre_run(CPUState *env, struct kvm_run *run) { int r; @@ -133,7 +141,7 @@ int kvm_arch_pre_run(CPUState *env, struct kvm_run *run) * interrupt, reset, etc) in PPC-specific env->irq_input_state. */ if (run->ready_for_interrupt_injection && (env->interrupt_request & CPU_INTERRUPT_HARD) && - (env->irq_input_state & (1<irq_input_state & (1<