From: David Hildenbrand <david@redhat.com>
To: Richard Henderson <rth@twiddle.net>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/4] target/s390x: Add ilen to unwind data
Date: Tue, 25 Jul 2017 09:15:55 +0200 [thread overview]
Message-ID: <cdb09afa-8d5e-1b01-ceaa-8075480be895@redhat.com> (raw)
In-Reply-To: <20170725023611.9169-2-rth@twiddle.net>
>
> @@ -5656,6 +5658,7 @@ static const DisasInsn *extract_insn(CPUS390XState *env, DisasContext *s,
> }
> s->next_pc = s->pc + ilen;
> s->ilen = ilen;
> + tcg_set_insn_param(s->insn_start_idx, 2, ilen);
Ah, that's a nice trick :)
>
> /* We can't actually determine the insn format until we've looked up
> the full insn opcode. Which we can't do without locating the
> @@ -5890,7 +5893,10 @@ void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)
> gen_tb_start(tb);
>
> do {
> - tcg_gen_insn_start(dc.pc, dc.cc_op);
> + /* ??? Alternately, delay emitting insn_start until after we
> + have computed the insn length in extract_insn. */
Think this is just fine for now and you can drop the comment.
> + dc.insn_start_idx = tcg_op_buf_count();
> + tcg_gen_insn_start(dc.pc, dc.cc_op, 0);
> num_insns++;
>
> if (unlikely(cpu_breakpoint_test(cs, dc.pc, BP_ANY))) {
> @@ -5984,4 +5990,5 @@ void restore_state_to_opc(CPUS390XState *env, TranslationBlock *tb,
> if ((cc_op != CC_OP_DYNAMIC) && (cc_op != CC_OP_STATIC)) {
> env->cc_op = cc_op;
> }
> + env->int_pgm_ilen = data[2];
> }
>
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David
next prev parent reply other threads:[~2017-07-25 7:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-25 2:36 [Qemu-devel] [PATCH 0/4] target/s390x ilen via unwinding Richard Henderson
2017-07-25 2:36 ` [Qemu-devel] [PATCH 1/4] target/s390x: Add ilen to unwind data Richard Henderson
2017-07-25 7:15 ` David Hildenbrand [this message]
2017-07-25 2:36 ` [Qemu-devel] [PATCH 2/4] target/s390x: Use ILEN_UNWIND in trivial cases Richard Henderson
2017-07-25 7:18 ` David Hildenbrand
2017-07-25 2:36 ` [Qemu-devel] [PATCH 3/4] target/s390x: Use unwind info in STSI Richard Henderson
2017-07-25 7:19 ` David Hildenbrand
2017-07-25 2:36 ` [Qemu-devel] [PATCH 4/4] target/s390x: Use ilen from unwind in tlb_fill Richard Henderson
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=cdb09afa-8d5e-1b01-ceaa-8075480be895@redhat.com \
--to=david@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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.