qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Toni Nedialkov <farmdve@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Question about the source code.
Date: Fri, 6 Nov 2015 03:27:07 +0200	[thread overview]
Message-ID: <CAHGme8uokTWv8OFVOp7m50A3y-oD3T3ou97rfs31O12L8VQ7MQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 418 bytes --]

Hello, I have a question pertaining the source code, wondering if I've
discovered a bug or am just simply confused.

It's about this function in translate-all.c

static void page_flush_tb(void)
{
    int i;

    for (i = 0; i < V_L1_SIZE; i++) {
        page_flush_tb_1(V_L1_SHIFT / V_L2_BITS - 1, l1_map + i);
    }
}

Was wondering if l1_map + i is correct, or whether it should be l1_map +
i*sizeof(i).

Thank you.

[-- Attachment #2: Type: text/html, Size: 3263 bytes --]

             reply	other threads:[~2015-11-06  1:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06  1:27 Toni Nedialkov [this message]
2015-11-06 10:08 ` [Qemu-devel] Question about the source code Peter Maydell

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=CAHGme8uokTWv8OFVOp7m50A3y-oD3T3ou97rfs31O12L8VQ7MQ@mail.gmail.com \
    --to=farmdve@gmail.com \
    --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 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).