target-i386: Rename optimize_flags_init()

Rename the function so that the reason for its existence is
clearer: it does x86-specific initialization of TCG structures.

Backports commit 63618b4ed48f0fc2a7a3fd1117e2f0b512248dab from qemu
This commit is contained in:
Eduardo Habkost 2018-02-18 22:55:52 -05:00 committed by Lioncash
parent 22dadac875
commit baf37a04ad
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
3 changed files with 5 additions and 4 deletions

View file

@ -2677,8 +2677,9 @@ static void x86_cpu_initfn(struct uc_struct *uc, Object *obj, void *opaque)
x86_cpu_load_def(cpu, xcc->cpu_def, &error_abort); x86_cpu_load_def(cpu, xcc->cpu_def, &error_abort);
/* init various static tables used in TCG mode */ /* init various static tables used in TCG mode */
if (tcg_enabled(env->uc)) if (tcg_enabled(env->uc)) {
optimize_flags_init(env->uc); tcg_x86_init(env->uc);
}
} }
static int64_t x86_cpu_get_arch_id(CPUState *cs) static int64_t x86_cpu_get_arch_id(CPUState *cs)

View file

@ -1219,7 +1219,7 @@ static inline target_long lshift(target_long x, int n)
#define ST1 ST(1) #define ST1 ST(1)
/* translate.c */ /* translate.c */
void optimize_flags_init(struct uc_struct *); void tcg_x86_init(struct uc_struct *);
#include "exec/cpu-all.h" #include "exec/cpu-all.h"
#include "svm.h" #include "svm.h"

View file

@ -8524,7 +8524,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
return s->pc; return s->pc;
} }
void optimize_flags_init(struct uc_struct *uc) void tcg_x86_init(struct uc_struct *uc)
{ {
static const char reg_names[CPU_NB_REGS][4] = { static const char reg_names[CPU_NB_REGS][4] = {
#ifdef TARGET_X86_64 #ifdef TARGET_X86_64