All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Emilio G. Cota" <cota@braap.org>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	qemu-devel@nongnu.org,
	"Peter Crosthwaite" <crosthwaite.peter@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v6 3/6] target: [tcg] Add generic translation framework
Date: Thu, 15 Jun 2017 19:25:07 -0400	[thread overview]
Message-ID: <20170615232507.GA15332@flamenco> (raw)
In-Reply-To: <20170615221911.GB26408@flamenco>

On Thu, Jun 15, 2017 at 18:19:11 -0400, Emilio G. Cota wrote:
> (snip)
> > +/**
> > + * DisasContextBase:
> > + * @tb: Translation block for this disassembly.
> > + * @pc_first: Address of first guest instruction in this TB.
> > + * @pc_next: Address of next guest instruction in this TB (current during
> > + *           disassembly).
> > + * @num_insns: Number of translated instructions (including current).
> > + * @singlestep_enabled: "Hardware" single stepping enabled.
> > + *
> > + * Architecture-agnostic disassembly context.
> > + */
> > +typedef struct DisasContextBase {
> > +    TranslationBlock *tb;
> > +    target_ulong pc_first;
> > +    target_ulong pc_next;
> > +    DisasJumpType jmp_type;
> > +    unsigned int num_insns;
> > +    bool singlestep_enabled;
> > +} DisasContextBase;
> 
> - @pc_next: I'd stick with @pc, it's shorter, it's everywhere already, and
>   with the documentation it's very clear what it is for.
> - @jmp_type: missing doc :-)

Also, consider keeping the @is_jmp name instead of renaming it to
@jmp_type. (@jmp would be shorter but it would be confusing though,
e.g. cris has both dc->jmp and dc->is_jmp.)

		E.

  reply	other threads:[~2017-06-15 23:25 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-12 14:53 [Qemu-devel] [RFC PATCH v6 0/6] translate: [tcg] Generic translation framework Lluís Vilanova
2017-06-12 14:53 ` [PATCH v6 1/6] Pass generic CPUState to gen_intermediate_code() Lluís Vilanova
2017-06-12 14:53   ` [Qemu-devel] " Lluís Vilanova
2017-06-13  1:40   ` David Gibson
2017-06-13  1:40     ` [Qemu-devel] " David Gibson
2017-06-14 21:35   ` Eduardo Habkost
2017-06-14 21:35     ` [Qemu-devel] " Eduardo Habkost
2017-06-14 22:30   ` Laurent Vivier
2017-06-16 14:07   ` Alex Bennée
2017-06-16 14:07     ` [Qemu-devel] " Alex Bennée
2017-06-12 14:54 ` [Qemu-devel] [PATCH v6 2/6] queue: Add macro for incremental traversal Lluís Vilanova
2017-06-19 23:20   ` Richard Henderson
2017-06-26 12:33     ` Lluís Vilanova
2017-06-27  1:10       ` Richard Henderson
2017-06-27  9:13         ` Lluís Vilanova
2017-06-12 14:54 ` [Qemu-devel] [PATCH v6 3/6] target: [tcg] Add generic translation framework Lluís Vilanova
2017-06-15 22:05   ` [Qemu-devel] [PATCH] translator mega-patch Emilio G. Cota
2017-06-18 14:37     ` Lluís Vilanova
2017-06-18 18:26       ` Peter Maydell
2017-06-19  4:08       ` Emilio G. Cota
2017-06-19  7:15         ` Peter Maydell
2017-06-15 22:19   ` [Qemu-devel] [PATCH v6 3/6] target: [tcg] Add generic translation framework Emilio G. Cota
2017-06-15 23:25     ` Emilio G. Cota [this message]
2017-06-17  1:09       ` Emilio G. Cota
2017-06-18 14:24         ` Lluís Vilanova
2017-06-18 14:22       ` Lluís Vilanova
2017-06-18 15:47         ` Lluís Vilanova
2017-06-18 21:54           ` Lluís Vilanova
2017-06-19  4:10             ` Emilio G. Cota
2017-06-19  8:37               ` Lluís Vilanova
2017-06-18 14:20     ` Lluís Vilanova
2017-06-12 14:54 ` [PATCH v6 4/6] target: [tcg] Redefine DISAS_* onto the generic translation framework (DJ_*) Lluís Vilanova
2017-06-12 14:54   ` [Qemu-devel] " Lluís Vilanova
2017-06-12 14:54 ` [PATCH v6 6/6] target: [tcg, arm] Port to generic translation framework Lluís Vilanova
2017-06-12 14:54   ` [Qemu-devel] " Lluís Vilanova
2017-06-16  0:18   ` Emilio G. Cota
2017-06-18 14:41     ` Lluís Vilanova
2017-06-19  4:22       ` Emilio G. Cota
2017-06-15 18:02 ` [Qemu-devel] [RFC PATCH v6 0/6] translate: [tcg] Generic " Emilio G. Cota
2017-06-18 14:41   ` 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=20170615232507.GA15332@flamenco \
    --to=cota@braap.org \
    --cc=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 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.