From: "Edgar E. Iglesias" <edgar.iglesias@axis.com>
To: Paul Brook <paul@codesourcery.com>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [4351] Make the paged properties of the tb-jmp-cache hash function work for TARGET_PAGE_BITS ! = 12.
Date: Tue, 6 May 2008 16:03:10 +0200 [thread overview]
Message-ID: <20080506140310.GG26816@edgar.se.axis.com> (raw)
In-Reply-To: <200805061331.03281.paul@codesourcery.com>
On Tue, May 06, 2008 at 01:31:02PM +0100, Paul Brook wrote:
> > {
> > target_ulong tmp;
> > tmp = pc ^ (pc >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS));
> > - return (tmp >> TB_JMP_PAGE_BITS) & TB_JMP_PAGE_MASK;
> > + return (tmp >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS)) &
> > TB_JMP_PAGE_MASK; }
>
>
> I'm not sure what you're trying to achieve here, but this is definitely wrong.
> TARGET_PAGE_BITS may be less than TB_JMP_PAGE_BITS.
Hi Paul,
Thanks for the comment.
I didn't find any page bits under 10 in the tree. Please note that the constant beeing used is not TB_JMP_CACHE_BITS but TB_JMP_PAGE_BITS. Also that same right shift constant was already used in the initial shift of pc in that same routine.
Before committing I ran tests with target page bits 10, 11, 12, and 13 and the modified hash function behaved ok here. Are there more setups I should test ?
Best regards
--
Edgar E. Iglesias
Axis Communications AB
next prev parent reply other threads:[~2008-05-06 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 8:38 [Qemu-devel] [4351] Make the paged properties of the tb-jmp-cache hash function work for TARGET_PAGE_BITS ! = 12 Edgar E. Iglesias
2008-05-06 12:31 ` Paul Brook
2008-05-06 14:03 ` Edgar E. Iglesias [this message]
2008-05-06 14:18 ` Paul Brook
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=20080506140310.GG26816@edgar.se.axis.com \
--to=edgar.iglesias@axis.com \
--cc=edgar.iglesias@gmail.com \
--cc=paul@codesourcery.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).