Revision b6abf97d target-i386/exec.h
b/target-i386/exec.h | ||
---|---|---|
98 | 98 |
#include "cpu.h" |
99 | 99 |
#include "exec-all.h" |
100 | 100 |
|
101 |
typedef struct CCTable { |
|
102 |
int (*compute_all)(void); /* return all the flags */ |
|
103 |
int (*compute_c)(void); /* return the C flag */ |
|
104 |
} CCTable; |
|
105 |
|
|
106 |
extern CCTable cc_table[]; |
|
107 |
|
|
108 | 101 |
void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0); |
109 | 102 |
void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3); |
110 | 103 |
void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4); |
... | ... | |
129 | 122 |
void OPPROTO op_movl_eflags_T0(void); |
130 | 123 |
void OPPROTO op_movl_T0_eflags(void); |
131 | 124 |
|
125 |
/* n must be a constant to be efficient */ |
|
126 |
static inline target_long lshift(target_long x, int n) |
|
127 |
{ |
|
128 |
if (n >= 0) |
|
129 |
return x << n; |
|
130 |
else |
|
131 |
return x >> (-n); |
|
132 |
} |
|
133 |
|
|
132 | 134 |
#include "helper.h" |
133 | 135 |
|
134 | 136 |
static inline void svm_check_intercept(uint32_t type) |
Also available in: Unified diff