[PowerPC] Clang powerpcspe build fixes
* Fix a couple of format errors. * Add some extra compiler flags needed to force clang to build SPE code. (These are temporary until the target triple is fixed)
This commit is contained in:
parent
6b45727338
commit
e99c4e4d64
@ -37,7 +37,9 @@ INCLUDES+= -I$S/contrib/libfdt
|
|||||||
|
|
||||||
.if "${MACHINE_ARCH}" == "powerpcspe"
|
.if "${MACHINE_ARCH}" == "powerpcspe"
|
||||||
# Force __SPE__, since the builtin will be removed later with -mno-spe
|
# Force __SPE__, since the builtin will be removed later with -mno-spe
|
||||||
CFLAGS+= -mabi=spe -D__SPE__
|
CFLAGS.gcc+= -mabi=spe -D__SPE__
|
||||||
|
CFLAGS.clang+= -mspe -D__SPE__ -m32
|
||||||
|
HACK_EXTRA_FLAGS= -shared -m32 -mspe -D__SPE__
|
||||||
.endif
|
.endif
|
||||||
CFLAGS+= -msoft-float
|
CFLAGS+= -msoft-float
|
||||||
CFLAGS.gcc+= -Wa,-many
|
CFLAGS.gcc+= -Wa,-many
|
||||||
|
@ -395,7 +395,7 @@ static __inline__ uint32_t BmBpidGet(t_Bm *p_Bm, bool force, uint32_t base)
|
|||||||
size,
|
size,
|
||||||
alignment,
|
alignment,
|
||||||
"BM BPID MEM");
|
"BM BPID MEM");
|
||||||
KASSERT(ans < UINT32_MAX, ("Oops, %lx > UINT32_MAX!\n", ans));
|
KASSERT(ans < UINT32_MAX, ("Oops, %jx > UINT32_MAX!\n", (uintmax_t)ans));
|
||||||
return (uint32_t)ans;
|
return (uint32_t)ans;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -560,7 +560,7 @@ uint32_t QmFqidGet(t_Qm *p_Qm, uint32_t size, uint32_t alignment, bool force, ui
|
|||||||
"QM FQID MEM");
|
"QM FQID MEM");
|
||||||
XX_UnlockIntrSpinlock(p_Qm->lock, intFlags);
|
XX_UnlockIntrSpinlock(p_Qm->lock, intFlags);
|
||||||
|
|
||||||
KASSERT(ans < UINT32_MAX, ("Oops, %lx > UINT32_MAX!\n", ans));
|
KASSERT(ans < UINT32_MAX, ("Oops, %jx > UINT32_MAX!\n", (uintmax_t)ans));
|
||||||
return (uint32_t)ans;
|
return (uint32_t)ans;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user