mirror of https://github.com/ARMmbed/mbed-os.git
Correct FPU setting for Cortex-M7FD
They had floating point turned off beforepull/4445/head
parent
64baee8ac7
commit
603ef3d75e
|
@ -209,8 +209,12 @@ class Uvision(Exporter):
|
||||||
}
|
}
|
||||||
core = ctx['device'].core
|
core = ctx['device'].core
|
||||||
ctx['cputype'] = core.rstrip("FD")
|
ctx['cputype'] = core.rstrip("FD")
|
||||||
# Turn on FPU optimizations if the core has an FPU
|
if core.endswith("FD"):
|
||||||
ctx['fpu_setting'] = 1 if 'F' not in core or 'D' in core else 2
|
ctx['fpu_setting'] = 3
|
||||||
|
elif core.endswith("F"):
|
||||||
|
ctx['fpu_setting'] = 2
|
||||||
|
else:
|
||||||
|
ctx['fpu_setting'] = 1
|
||||||
ctx['fputype'] = self.format_fpu(core)
|
ctx['fputype'] = self.format_fpu(core)
|
||||||
ctx.update(self.format_flags())
|
ctx.update(self.format_flags())
|
||||||
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
|
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
|
||||||
|
|
Loading…
Reference in New Issue