From: malc <av1474@comtv.ru>
To: Hollis Blanchard <hollisb@us.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5973] Introduce and use cache-utils.[ch]
Date: Thu, 11 Dec 2008 21:52:00 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.64.0812112151110.3141@linmac.oyster.ru> (raw)
In-Reply-To: <1229019563.26586.19.camel@localhost.localdomain>
On Thu, 11 Dec 2008, Hollis Blanchard wrote:
> On Wed, 2008-12-10 at 19:18 +0000, malc wrote:
>> +#elif defined __linux__
>> +#include <linux/auxvec.h>
>> +
>> +static void ppc_init_cacheline_sizes(char **envp)
>> +{
>> + unsigned long *auxv;
>> +
>> + while (*envp++);
>> +
>> + for (auxv = (unsigned long *) envp; *auxv != AT_NULL; auxv += 2) {
>> + switch (*auxv) {
>> + case AT_DCACHEBSIZE: qemu_cache_conf.dcache_bsize = auxv[1]; break;
>> + case AT_ICACHEBSIZE: qemu_cache_conf.icache_bsize = auxv[1]; break;
>> + default: break;
>> + }
>> + }
>> +}
>
> I'm cross-compiling, and linux/auxvec.h was not installed with my glibc
> headers. How about this:
>
>
>
> Don't require linux/auxvec.h, which isn't always installed with libc.
>
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Funny you mention it.. My initial code was exactly like this only
the defines where called QAT_...
[..snip..]
--
mailto:av1474@comtv.ru
prev parent reply other threads:[~2008-12-11 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 19:18 [Qemu-devel] [5973] Introduce and use cache-utils.[ch] malc
2008-12-11 18:19 ` Hollis Blanchard
2008-12-11 18:52 ` malc [this message]
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=Pine.LNX.4.64.0812112151110.3141@linmac.oyster.ru \
--to=av1474@comtv.ru \
--cc=hollisb@us.ibm.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).