|
Lines 1-6
Link Here
|
| 1 |
|
1 |
|
| 2 |
#include "config.h" |
2 |
#include "config.h" |
| 3 |
#include "config-host.h" |
3 |
#include "config-host.h" |
|
|
4 |
#include "stdlib.h" |
| 4 |
|
5 |
|
| 5 |
#ifdef USE_KVM |
6 |
#ifdef USE_KVM |
| 6 |
#define KVM_ALLOWED_DEFAULT 1 |
7 |
#define KVM_ALLOWED_DEFAULT 1 |
|
Lines 932-935
Link Here
|
| 932 |
out: |
933 |
out: |
| 933 |
return r; |
934 |
return r; |
| 934 |
} |
935 |
} |
|
|
936 |
#ifdef CONFIG_KVM |
| 937 |
CCTable cc_table[CC_OP_NB]; |
| 938 |
int code_copy_enabled; |
| 939 |
|
| 940 |
static int nop_flags(void) |
| 941 |
{ |
| 942 |
return 0; |
| 943 |
} |
| 944 |
|
| 945 |
int cpu_gen_code(CPUState *env, TranslationBlock *tb, |
| 946 |
int max_code_size, int *gen_code_size_ptr) |
| 947 |
{ |
| 948 |
return -1; |
| 949 |
} |
| 950 |
|
| 951 |
int cpu_restore_state(TranslationBlock *tb, |
| 952 |
CPUState *env, unsigned long searched_pc, |
| 953 |
void *puc) |
| 954 |
{ |
| 955 |
return -1; |
| 956 |
} |
| 957 |
|
| 958 |
void optimize_flags_init(void) |
| 959 |
{ |
| 960 |
int i; |
| 961 |
|
| 962 |
for (i = 0; i < CC_OP_NB; i++) { |
| 963 |
cc_table[i].compute_c = nop_flags; |
| 964 |
cc_table[i].compute_all = nop_flags; |
| 965 |
} |
| 966 |
} |
| 967 |
|
| 968 |
#endif |
| 935 |
#endif |
969 |
#endif |