This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [bfin] Add more cpu types
- From: Bernd Schmidt <bernds_cb1 at t-online dot de>
- To: Jie Zhang <jzhang918 at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Sep 2007 01:40:39 +0200
- Subject: Re: [bfin] Add more cpu types
- References: <46CF0CA2.90505@gmail.com>
Jie Zhang wrote:
This patch makes -mcpu accept the silicon revision of the processor. Now
-mcpu option has the form:
-mcpu=cpu[-sirevision]
Currently, cpu can be one of `bf522', `bf525', `bf527', `bf531',
`bf532', `bf533', `bf534', `bf536', `bf537', `bf538', `bf539', `bf542',
`bf544', `bf548', `bf549', and `bf561'. The optional sirevision
specifies the silicon revision of the target Blackfin processor. Any
workarounds available for the targeted silicon revision will be enabled.
If sirevision is `none', no workarounds are enabled. If sirevision is
`any', all workarounds for the targeted processor will be enabled. The
__SILICON_REVISION__ macro is defined to two hexadecimal digits
representing the major and minor numbers in the silicon revision. If
sirevision is `none', the __SILICON_REVISION__ is not defined. If
sirevision is `any', the __SILICON_REVISION__ is defined to be 0xffff.
If this optional sirevision is not used, GCC assumes the latest known
silicon revision of the targeted Blackfin processor. Without this
option, `bf532' is used as cpu by default.
OK to commit?
Not too happy about the excessive multilibs for a not very interesting
hardware workaround, but since this matches what we do in our tree, I
guess it's best to apply this for now.
Bernd
--
This footer brought to you by insane German lawmakers.
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif