From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <rth@twiddle.net>,
Peter Crosthwaite <crosthwaite.peter@gmail.com>
Subject: Re: [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic translation framework
Date: Fri, 27 Jan 2017 17:12:14 +0000 [thread overview]
Message-ID: <87inp08m1d.fsf@linaro.org> (raw)
In-Reply-To: <87vaxifx4y.fsf@fimbulvetr.bsc.es>
Lluís Vilanova <vilanova@ac.upc.edu> writes:
> Lluís Vilanova writes:
>
>> This series proposes a generic (target-agnostic) instruction translation
>> framework.
>
>> It basically provides a generic main loop for instruction disassembly, which
>> calls target-specific functions when necessary. This generalization makes
>> inserting new code in the main loop easier, and helps in keeping all targets in
>> synch as to the contents of it.
>
>> I've only ported i386 as an example to get some feedback, but I'm planning on
>> porting ARM next to see how well it fits into the current organization.
>
>> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
>> ---
>
>> Changes in v2
>> =============
>
>> * Port ARM and AARCH64 targets.
>> * Fold single-stepping checks into "max_insns" [Richard Henderson].
>> * Move instruction start marks to target code [Richard Henderson].
>> * Add target hook for TB start.
>> * Check for TCG temporary leaks.
>> * Move instruction disassembly into a target hook.
>> * Make breakpoint_hit() return an enum to accomodate target's needs (ARM).
> [...]
>
> I'm not sure if I CC'd the appropriate people, but I'd like to know if this
> seems like the proper approach to generalizing the main disassembly
> loop.
>
> Every time someone updates a target it becomes a little cumbersome to keep this
> type of patches in synch (for now, only in i386 and arm).
I'm sorry this has been in my review queue so long that it no longer
applies cleanly. However feel free to add me on the next iteration.
My only general comment is I think there is a bit too much churn in the
per-arch changes from re-names that aren't really needed. Aside from
that it would be useful to have an example of something that can be done
more easily in the generic run-loop as part of the series. Otherwise I
find the churn hard to justify.
>
>
> Thanks,
> Lluis
--
Alex Bennée
next prev parent reply other threads:[~2017-01-27 17:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 13:03 [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic translation framework Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 1/6] Pass generic CPUState to gen_intermediate_code() Lluís Vilanova
2016-09-16 23:01 ` Richard Henderson
2016-09-19 12:14 ` Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 2/6] queue: Add macro for incremental traversal Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 3/6] target: [tcg] Add generic translation framework Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 4/6] target: [tcg] Redefine DISAS_* onto the generic translation framework (DJ_*) Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 5/6] target: [tcg, i386] Port to generic translation framework Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 6/6] target: [tcg, arm] " Lluís Vilanova
2016-09-12 3:56 ` [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic " no-reply
2016-09-12 5:05 ` no-reply
2016-09-13 16:09 ` Lluís Vilanova
2016-09-26 16:23 ` Lluís Vilanova
2017-01-27 17:12 ` Alex Bennée [this message]
2017-01-29 12:27 ` Lluís Vilanova
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=87inp08m1d.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=crosthwaite.peter@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=vilanova@ac.upc.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).