py/asmarm: Use __builtin___clear_cache instead of __clear_cache.
__clear_cache causes a compile error when using clang. Instead use __builtin___clear_cache which is available under both gcc and clang. Also replace tabs with spaces in this section of code (introduced by a previous commit).
This commit is contained in:
parent
d6e3038a08
commit
82dc9856b0
|
@ -41,9 +41,9 @@
|
||||||
void asm_arm_end_pass(asm_arm_t *as) {
|
void asm_arm_end_pass(asm_arm_t *as) {
|
||||||
if (as->base.pass == MP_ASM_PASS_EMIT) {
|
if (as->base.pass == MP_ASM_PASS_EMIT) {
|
||||||
#if defined(__linux__) && defined(__GNUC__)
|
#if defined(__linux__) && defined(__GNUC__)
|
||||||
char *start = mp_asm_base_get_code(&as->base);
|
char *start = mp_asm_base_get_code(&as->base);
|
||||||
char *end = start + mp_asm_base_get_code_size(&as->base);
|
char *end = start + mp_asm_base_get_code_size(&as->base);
|
||||||
__clear_cache(start, end);
|
__builtin___clear_cache(start, end);
|
||||||
#elif defined(__arm__)
|
#elif defined(__arm__)
|
||||||
// flush I- and D-cache
|
// flush I- and D-cache
|
||||||
asm volatile(
|
asm volatile(
|
||||||
|
|
Loading…
Reference in New Issue