/[qemu]/qemu/hw/apic.c
ViewVC logotype

Diff of /qemu/hw/apic.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by bellard, Mon Jan 3 23:27:31 2005 UTC revision 1.2 by bellard, Sun Jan 23 20:42:29 2005 UTC
# Line 100  uint64_t cpu_get_apic_base(CPUState *env Line 100  uint64_t cpu_get_apic_base(CPUState *env
100      return s->apicbase;      return s->apicbase;
101  }  }
102    
103    void cpu_set_apic_tpr(CPUX86State *env, uint8_t val)
104    {
105        APICState *s = env->apic_state;
106        s->tpr = (val & 0x0f) << 4;
107    }
108    
109    uint8_t cpu_get_apic_tpr(CPUX86State *env)
110    {
111        APICState *s = env->apic_state;
112        return s->tpr >> 4;
113    }
114    
115  /* return -1 if no bit is set */  /* return -1 if no bit is set */
116  static int get_highest_priority_int(uint32_t *tab)  static int get_highest_priority_int(uint32_t *tab)
117  {  {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26