Use our own XLEN macro.
[riscv-tests.git] / debug / targets.py
index d1ba96430d845bcd2195454da7dce1fa5957d98e..8c725c4ebdec6bbb749e23b924d32fedde7b5a11 100644 (file)
@@ -49,6 +49,7 @@ class Target(object):
                     "-T", "targets/%s/link.lds" % (self.directory or self.name),
                     "-nostartfiles",
                     "-mcmodel=medany",
+                    "-DXLEN=%d" % self.xlen,
                     "-o", binary_name),
                 xlen=self.xlen)
         return binary_name