All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>, qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, leon.alrae@imgtec.com, agraf@suse.de,
	aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH v6 08/10] target-i386: exception handling for seg_helper functions
Date: Tue, 7 Jul 2015 15:44:53 +0100	[thread overview]
Message-ID: <559BE5E5.5090201@twiddle.net> (raw)
In-Reply-To: <20150707133142.11808.59059.stgit@PASHA-ISP.def.inno>

On 07/07/2015 02:31 PM, Pavel Dovgalyuk wrote:
> @@ -2301,9 +2294,6 @@ static inline void gen_op_movl_seg_T0_vm(int seg_reg)
>   static void gen_movl_seg_T0(DisasContext *s, int seg_reg, target_ulong cur_eip)
>   {
>       if (s->pe && !s->vm86) {
> -        /* XXX: optimize by finding processor state dynamically */
> -        gen_update_cc_op(s);
> -        gen_jmp_im(cur_eip);
>           tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
>           gen_helper_load_seg(cpu_env, tcg_const_i32(seg_reg), cpu_tmp2_i32);
>           /* abort translation because the addseg value may change or

The cur_eip parameter is now unused.

>          do_lcall:
>              if (s->pe && !s->vm86) {
> -                gen_update_cc_op(s);
>                  gen_jmp_im(pc_start - s->cs_base);
>                  tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
>                  gen_helper_lcall_protected(cpu_env, cpu_tmp2_i32, cpu_T[1],
> @@ -4971,7 +4960,6 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
>              gen_op_ld_v(s, MO_16, cpu_T[0], cpu_A0);
>          do_ljmp:
>              if (s->pe && !s->vm86) {
> -                gen_update_cc_op(s);
>                  gen_jmp_im(pc_start - s->cs_base);
>                  tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
>                  gen_helper_ljmp_protected(cpu_env, cpu_tmp2_i32, cpu_T[1],

You should be able to change the "int next_eip_addend" parameter so that it's 
just "target_ulong next_eip", and then you don't ahve to do the gen_jmp_im to 
save the current eip.


r~

  reply	other threads:[~2015-07-07 14:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 13:30 [Qemu-devel] [PATCH v6 00/10] Fix exceptions handling for MIPS, PowerPC, and i386 Pavel Dovgalyuk
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 01/10] softmmu: add helper function to pass through retaddr Pavel Dovgalyuk
2015-07-07 14:28   ` Richard Henderson
2015-07-09 15:28   ` Aurelien Jarno
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 02/10] cpu-exec: introduce loop exit with restore function Pavel Dovgalyuk
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 03/10] target-mips: improve exception handling Pavel Dovgalyuk
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 04/10] target-i386: introduce new raise_exception functions Pavel Dovgalyuk
2015-07-07 14:28   ` Richard Henderson
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 05/10] target-i386: exception handling for FPU instructions Pavel Dovgalyuk
2015-07-07 14:28   ` Richard Henderson
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 06/10] target-i386: exception handling for div instructions Pavel Dovgalyuk
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 07/10] target-i386: exception handling for memory helpers Pavel Dovgalyuk
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 08/10] target-i386: exception handling for seg_helper functions Pavel Dovgalyuk
2015-07-07 14:44   ` Richard Henderson [this message]
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 09/10] target-i386: exception handling for other helper functions Pavel Dovgalyuk
2015-07-07 15:08   ` Richard Henderson
2015-07-08  9:46     ` Pavel Dovgaluk
2015-07-09  6:54       ` Richard Henderson
2015-07-07 13:31 ` [Qemu-devel] [PATCH v6 10/10] target-ppc: exceptions handling in icount mode Pavel Dovgalyuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559BE5E5.5090201@twiddle.net \
    --to=rth@twiddle.net \
    --cc=Pavel.Dovgaluk@ispras.ru \
    --cc=agraf@suse.de \
    --cc=aurelien@aurel32.net \
    --cc=leon.alrae@imgtec.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.