Revision c227f099 target-i386/op_helper.c

b/target-i386/op_helper.c
106 106

  
107 107
/* broken thread support */
108 108

  
109
static a_spinlock global_cpu_lock = SPIN_LOCK_UNLOCKED;
109
static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
110 110

  
111 111
void helper_lock(void)
112 112
{
......
4855 4855
}
4856 4856
#else
4857 4857

  
4858
static inline void svm_save_seg(a_target_phys_addr addr,
4858
static inline void svm_save_seg(target_phys_addr_t addr,
4859 4859
                                const SegmentCache *sc)
4860 4860
{
4861 4861
    stw_phys(addr + offsetof(struct vmcb_seg, selector), 
......
4868 4868
             ((sc->flags >> 8) & 0xff) | ((sc->flags >> 12) & 0x0f00));
4869 4869
}
4870 4870
                                
4871
static inline void svm_load_seg(a_target_phys_addr addr, SegmentCache *sc)
4871
static inline void svm_load_seg(target_phys_addr_t addr, SegmentCache *sc)
4872 4872
{
4873 4873
    unsigned int flags;
4874 4874

  
......
4879 4879
    sc->flags = ((flags & 0xff) << 8) | ((flags & 0x0f00) << 12);
4880 4880
}
4881 4881

  
4882
static inline void svm_load_seg_cache(a_target_phys_addr addr,
4882
static inline void svm_load_seg_cache(target_phys_addr_t addr, 
4883 4883
                                      CPUState *env, int seg_reg)
4884 4884
{
4885 4885
    SegmentCache sc1, *sc = &sc1;

Also available in: Unified diff