The __riscv__ form is deprecated [1].
[1] - https://github.com/riscv/riscv-toolchain-conventions#cc-preprocessor-definitions
printf("\e[1mLM32\e[0m\n");
#elif __or1k__
printf("\e[1mOR1K\e[0m\n");
-#elif __riscv__
+#elif __riscv
printf("\e[1mRISC-V\n");
#else
printf("\e[1mUnknown\e[0m\n");
__asm__ volatile("nop");
#elif defined (__or1k__)
__asm__ volatile("l.nop");
-#elif defined (__riscv__)
+#elif defined (__riscv)
__asm__ volatile("nop");
#else
#error Unsupported architecture
TARGET_PREFIX=$(TRIPLE)-
RM ?= rm -f
-PYTHON ?= python3
+PYTHON ?= python
ifeq ($(CLANG),1)
CC_normal := clang -target $(TRIPLE) -integrated-as
for (i = 0; i < cache_size; i += cache_block_size)
mtspr(SPR_ICBIR, i);
-#elif defined (__riscv__)
+#elif defined (__riscv)
/* no instruction cache */
asm volatile("nop");
#else
for (i = 0; i < cache_size; i += cache_block_size)
mtspr(SPR_DCBIR, i);
-#elif defined (__riscv__)
+#elif defined (__riscv)
/* no data cache */
asm volatile("nop");
#else
__asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr));
#elif defined (__or1k__)
__asm__ volatile("l.lwz %0, 0(%1)\n":"=r"(dummy):"r"(addr));
-#elif defined (__riscv__)
+#elif defined (__riscv)
/* FIXME */
asm volatile("nop");
#else