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 |
{ |
{ |