From: Richard Henderson <rth@twiddle.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>,
"claudio.fontana" <claudio.fontana@gmail.com>,
Peter Crosthwaite <crosthwaite.peter@gmail.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Alexander Graf <agraf@suse.de>,
Peter Crosthwaite <crosthwaitepeter@gmail.com>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics
Date: Wed, 06 May 2015 11:24:15 -0700 [thread overview]
Message-ID: <554A5C4F.4080707@twiddle.net> (raw)
In-Reply-To: <CAFEAcA90bjHUcsticS=0HqB8AQ-Bdg9e--y8GZ5ECHHEn4nEsg@mail.gmail.com>
On 05/06/2015 08:44 AM, Peter Maydell wrote:
> On 6 May 2015 at 15:12, Richard Henderson <rth@twiddle.net> wrote:
>> On 05/06/2015 12:06 AM, Peter Crosthwaite wrote:
>>> Can
>>> we rely on the env/CPUState always being up to date during
>>> target_disas (which happens at translate time?) or will we need to go
>>> field by field to make sure any env updates explicitly occur before
>>> target_disas?
>>
>> I *think* so, but it's a near thing. The path goes
>>
>> tb_find_fast:
>> cpu_get_tb_cpu_state, fill fill in flags for TB from current ENV state.
>> tb_find_slow,
>> tb_gen_code, using those same flags.
>>
>> There's the edge case of re-translation, but I'm going to assert that cpu mode
>> changes ought not happen in that context. Doing otherwise means that the
>> kernel has just switched modes, the translator has failed to end the TB, and
>> the new code has faulted immediately.
>
> This is making the assumption that what the disassembler sees as
> a "different mode" is the same as what the translator sees as a
> "different mode" for which it needs to end the TB... This happens
> to be true for ARM, at least, but I don't see any particular
> reason why it is necessarily so for everything.
I'm pretty sure it is, though. Certainly true for x86 and mips.
I might call it a translator bug not to end the TB at a mode change.
r~
next prev parent reply other threads:[~2015-05-06 18:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 4:44 [Qemu-devel] [PATCH 0/7] disas: Unify target_disas and monitor_disas Peter Crosthwaite
2015-05-05 4:44 ` [Qemu-devel] [PATCH 1/7] disas: Create factored out fn for monitor and target disas Peter Crosthwaite
2015-05-05 14:45 ` Claudio Fontana
2015-05-05 4:44 ` [Qemu-devel] [PATCH 2/7] disas: microblaze: Migrate setup to common code Peter Crosthwaite
2015-05-05 4:45 ` [Qemu-devel] [PATCH 3/7] disas: cris: Fix 0 buffer length case Peter Crosthwaite
2015-05-05 4:45 ` [Qemu-devel] [PATCH 4/7] disas: cris: Migrate setup to common code Peter Crosthwaite
2015-05-05 4:45 ` [Qemu-devel] [PATCH 5/7] disas: arm-a64: Make printfer and stream variable Peter Crosthwaite
2015-05-05 14:41 ` Claudio Fontana
2015-05-05 17:22 ` Richard Henderson
2015-05-05 4:45 ` [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics Peter Crosthwaite
2015-05-05 14:40 ` Claudio Fontana
2015-05-05 17:19 ` Peter Maydell
2015-05-05 17:43 ` Richard Henderson
2015-05-06 6:57 ` Peter Crosthwaite
2015-05-06 13:57 ` Richard Henderson
2015-05-06 7:06 ` Peter Crosthwaite
2015-05-06 14:12 ` Richard Henderson
2015-05-06 14:17 ` Paolo Bonzini
2015-05-06 14:32 ` Stefano Stabellini
2015-05-06 15:44 ` Peter Maydell
2015-05-06 18:24 ` Richard Henderson [this message]
2015-05-06 18:39 ` Peter Maydell
2015-05-05 4:45 ` [Qemu-devel] [PATCH 7/7] disas: arm: Use target_disas impl for monitor Peter Crosthwaite
2015-05-05 14:38 ` Claudio Fontana
2015-05-05 16:48 ` Peter Crosthwaite
2015-05-05 17:18 ` [Qemu-devel] [PATCH 0/7] disas: Unify target_disas and monitor_disas 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=554A5C4F.4080707@twiddle.net \
--to=rth@twiddle.net \
--cc=agraf@suse.de \
--cc=claudio.fontana@gmail.com \
--cc=crosthwaite.peter@gmail.com \
--cc=crosthwaitepeter@gmail.com \
--cc=edgar.iglesias@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--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.