From: Mike Frysinger <vapier@gentoo.org>
To: "Hans-Peter Nilsson" <hans-peter.nilsson@axis.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Your sim configure commits broke mn10300-sim and m68hc11-sim
Date: Tue, 18 Oct 2011 04:11:00 -0000 [thread overview]
Message-ID: <201110172351.26470.vapier@gentoo.org> (raw)
In-Reply-To: <201110180245.p9I2jUfi022507@ignucius.se.axis.com>
On Monday 17 October 2011 22:45:30 Hans-Peter Nilsson wrote:
> In my most recent sim autotester log, I see a bunch of
> sim/*/configure* commits, and breakage. They somehow caused
> loss of -lm or something like that when linking mn10300-elf-sim
> and m68hc11-elf-sim. Can you please fix?
i think it's a matter of these sims didn't build dv-cfi.c before. the
regeneration pulled them in (by design). and now they fail ;).
the best fix is probably to not use log2() at all. but i'm not sure there is
an easy way to do that while maintaining the config format. the idea was to
have the device tree format be simple: user specifies the desired file size (in
bytes) of the device. the CFI spec requires the size to be available in power
of two to the simulated software. so the sim device init code reads the
requested size from the device tree, calculates the power of two value, and
then uses that when implementing the CFI spec. i could have the user specify
the power of two value instead, but it seemed less natural. they'd have to
enter like "20" if they wanted a 1MiB flash instead of "1048576" or 0x100000
(which is what they enter now).
so that leaves anyone who wants to use dv-cfi with linking against libm. i
could update common/acinclude.m4 to do AC_CHECK_LIB(m, log2) when "cfi" is in
the enabled hardware list. that way -lm would get added to @LIBS@ which gets
used in Make-common.in.
any preferences or other ideas ?
-mike
next prev parent reply other threads:[~2011-10-18 3:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 3:51 Hans-Peter Nilsson
2011-10-18 4:11 ` Mike Frysinger [this message]
2011-10-18 16:55 ` Hans-Peter Nilsson
2011-10-19 16:33 ` Mike Frysinger
2011-10-19 20:46 ` Hans-Peter Nilsson
2011-10-19 21:29 ` Mike Frysinger
2011-10-20 1:04 ` Mike Frysinger
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=201110172351.26470.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=hans-peter.nilsson@axis.com \
/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