mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 16:40:59 +00:00
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:
parent
22dadac875
commit
baf37a04ad
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue