target/i386: fetch code with translator_ld

Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
Emilio G. Cota 2018-11-27 19:13:42 -05:00 committed by Alex Bennée
parent da94123fe1
commit aaf4b62e19

View File

@ -1925,28 +1925,28 @@ static uint64_t advance_pc(CPUX86State *env, DisasContext *s, int num_bytes)
static inline uint8_t x86_ldub_code(CPUX86State *env, DisasContext *s) static inline uint8_t x86_ldub_code(CPUX86State *env, DisasContext *s)
{ {
return cpu_ldub_code(env, advance_pc(env, s, 1)); return translator_ldub(env, advance_pc(env, s, 1));
} }
static inline int16_t x86_ldsw_code(CPUX86State *env, DisasContext *s) static inline int16_t x86_ldsw_code(CPUX86State *env, DisasContext *s)
{ {
return cpu_ldsw_code(env, advance_pc(env, s, 2)); return translator_ldsw(env, advance_pc(env, s, 2));
} }
static inline uint16_t x86_lduw_code(CPUX86State *env, DisasContext *s) static inline uint16_t x86_lduw_code(CPUX86State *env, DisasContext *s)
{ {
return cpu_lduw_code(env, advance_pc(env, s, 2)); return translator_lduw(env, advance_pc(env, s, 2));
} }
static inline uint32_t x86_ldl_code(CPUX86State *env, DisasContext *s) static inline uint32_t x86_ldl_code(CPUX86State *env, DisasContext *s)
{ {
return cpu_ldl_code(env, advance_pc(env, s, 4)); return translator_ldl(env, advance_pc(env, s, 4));
} }
#ifdef TARGET_X86_64 #ifdef TARGET_X86_64
static inline uint64_t x86_ldq_code(CPUX86State *env, DisasContext *s) static inline uint64_t x86_ldq_code(CPUX86State *env, DisasContext *s)
{ {
return cpu_ldq_code(env, advance_pc(env, s, 8)); return translator_ldq(env, advance_pc(env, s, 8));
} }
#endif #endif