From 3067c5708016d19c770008620b329cc0d748f4a6 Mon Sep 17 00:00:00 2001 From: Stafford Horne Date: Tue, 22 Dec 2020 07:14:59 +0900 Subject: [PATCH] mor1kx: Enable gcc compiler flag for cmov We enable this instruction so use it. --- litex/soc/cores/cpu/mor1kx/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/soc/cores/cpu/mor1kx/core.py b/litex/soc/cores/cpu/mor1kx/core.py index fd663d607..03f8641d6 100644 --- a/litex/soc/cores/cpu/mor1kx/core.py +++ b/litex/soc/cores/cpu/mor1kx/core.py @@ -50,6 +50,7 @@ class MOR1KX(CPU): def gcc_flags(self): flags = "-mhard-mul " flags += "-mhard-div " + flags += "-mcmov " flags += "-D__mor1kx__ " if "linux" in self.variant: