From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Thu, 26 Apr 2012 07:54:55 -0500 Subject: [U-Boot] Undefined results when building highbank board In-Reply-To: <20120426120301.55C2D200246@gemini.denx.de> References: <20120426120301.55C2D200246@gemini.denx.de> Message-ID: <4F99459F.4060500@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/26/2012 07:03 AM, Wolfgang Denk wrote: > Dear Rob, > > arch/arm/cpu/armv7/highbank/config.mk contains this setting: > > PLATFORM_CPPFLAGS += -march=armv7-a > > This results in code bueing built with the follwoing compiler options: > > ... -march=armv5 -march=armv7-a ... > > This is a bad idea - dependign on tool chain used, this may result in > compiler errors ("error: bad value (armv7-a) for -march= switch"), or > undefined behaviour, as it is not clear which option is used by the > compiler. > > Can you please provide a fix? Thanks! The issue is I require a wfi assembly instruction for reset, so I would have to hard code the machine code to work on all compilers. Rob > > Best regards, > > Wolfgang Denk >