Revision b45d63b6 target-ppc/kvm_ppc.h

b/target-ppc/kvm_ppc.h
18 18
int kvmppc_get_hypercall(CPUState *env, uint8_t *buf, int buf_len);
19 19
int kvmppc_set_interrupt(CPUState *env, int irq, int level);
20 20

  
21
#ifndef CONFIG_KVM
22
#define kvmppc_eieio() do { } while (0)
23
#else
24
#define kvmppc_eieio() \
25
    do {                                          \
26
        if (kvm_enabled()) {                          \
27
            asm volatile("eieio" : : : "memory"); \
28
        } \
29
    } while (0)
30
#endif
31

  
21 32
#ifndef KVM_INTERRUPT_SET
22 33
#define KVM_INTERRUPT_SET -1
23 34
#endif

Also available in: Unified diff