All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Renieris <makren67@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Richard Henderson <richard.henderson@linaro.org>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] AVX support for TCG
Date: Fri, 28 Dec 2018 16:28:07 +0200	[thread overview]
Message-ID: <CAObpvQ=WZ4APrRhCpF8BG1gAeFs3OrJ660kCvGEjNXmZJQj-aQ@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA-9McUUWsG2o_o6fm1S1k-PpMyo54=dmoN9vMwpxfsu0A@mail.gmail.com>

Right, thanks, that file looks better, though I still think splitting
to multiple files would absolutely be of value, if only for the
practicality of being able to have several parts of it open at the
same in a code editor (instead of having to jump back and forth or
find workarounds to open the same file multiple times). Of course
there are more important, code structure related reasons beyond that,
but let's not digress. I'm guessing current devs are so used to this
that they wouldn't accept splitting-up changes anyway.

Στις Παρ, 28 Δεκ 2018 στις 4:13 μ.μ., ο/η Peter Maydell
<peter.maydell@linaro.org> έγραψε:
>
> On Fri, 28 Dec 2018 at 13:45, Nick Renieris <makren67@gmail.com> wrote:
> > Also, I hope you meant four months for me, not for you - I'm
> > completely new to the QEMU codebase. I expect it will take me weeks
> > just to understand x86's 'translate.c' (who thought it'd be a good
> > idea to put all this stuff in _one_ file?).
>
> x86 suffers from being one of the first and oldest frontends,
> and on top of that from not having had a great deal of active
> attention. So it has a lot of remnants from older styles of
> implementation, as well as the kind of "one big function in
> one huge file" that organic growth of a codebase tends to give you.
> It doesn't make that much difference whether you have one file
> or several, though -- target/arm/translate-a64.c is pretty
> well structured and easy (IMHO) to comprehend, but it's
> 5000 lines longer than target/i386/translate.c. The comprehensibility
> improvements come from better breakdown into separate functions
> and much clearer commenting of the extent of the decode at any
> particular point (plus not having any legacy baggage to deal with).
>
> thanks
> -- PMM

  reply	other threads:[~2018-12-28 14:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-25 23:43 [Qemu-devel] AVX support for TCG Nick Renieris
2018-12-26  1:07 ` Richard Henderson
2018-12-26  1:28   ` Nick Renieris
2018-12-26  2:12     ` Richard Henderson
2018-12-28 13:43       ` Nick Renieris
2018-12-28 14:13         ` Peter Maydell
2018-12-28 14:28           ` Nick Renieris [this message]
2018-12-28 14:38             ` Peter Maydell
2018-12-28 17:19               ` Nick Renieris
2018-12-28 21:15         ` Alex Bennée
2018-12-29 20:24         ` Richard Henderson
2018-12-30 20:51           ` Nick Renieris
2018-12-31  1:58             ` Richard Henderson
2019-01-04 21:43               ` Nick Renieris
2019-01-04 21:51                 ` Richard Henderson
2019-01-04 22:09                   ` Nick Renieris
2019-01-04 22:14                     ` Richard Henderson
2019-01-04 22:33                       ` Nick Renieris
2019-01-04 22:38                         ` Richard Henderson
2019-01-04 22:42                           ` Nick Renieris
2019-01-17  9:29     ` Stefan Hajnoczi
2019-01-17 13:57       ` Nick Renieris
2019-01-18  9:57         ` Stefan Hajnoczi

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='CAObpvQ=WZ4APrRhCpF8BG1gAeFs3OrJ660kCvGEjNXmZJQj-aQ@mail.gmail.com' \
    --to=makren67@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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.