diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-31 23:31:02 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-31 23:31:02 +0000 |
commit | 1ef386870812993f6819e8ac6554d20ba532b383 (patch) | |
tree | 67a32e6d7b1371298b6854b120fab6f6ff86ca39 /target-i386/translate.c | |
parent | 99c475abf16b10923baac09682a9d801ae421ac6 (diff) |
x86_64 call Ev fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1259 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r-- | target-i386/translate.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index 46bf933c9c..482642aa9c 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -2216,6 +2216,19 @@ static void gen_movtl_T0_im(target_ulong val) #endif } +static void gen_movtl_T1_im(target_ulong val) +{ +#ifdef TARGET_X86_64 + if ((int32_t)val == val) { + gen_op_movl_T1_im(val); + } else { + gen_op_movq_T1_im64(val >> 32, val); + } +#else + gen_op_movl_T1_im(val); +#endif +} + static GenOpFunc1 *gen_ldq_env_A0[3] = { gen_op_ldq_raw_env_A0, #ifndef CONFIG_USER_ONLY @@ -3391,7 +3404,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) if (s->dflag == 0) gen_op_andl_T0_ffff(); next_eip = s->pc - s->cs_base; - gen_op_movl_T1_im(next_eip); + gen_movtl_T1_im(next_eip); gen_push_T1(s); gen_op_jmp_T0(); gen_eob(s); |