aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-12-07 18:32:15 -0800
committerTim Newsome <tim@sifive.com>2016-12-07 18:32:15 -0800
commit78d282890b61022f1576524d7daf87f4c65cd9c5 (patch)
tree6dd2834027c4e9d64f6958117c90c5187933e301 /debug
parent5202a2bc1aa46f1c0c4a4f4a84daf8fc11bd15cf (diff)
downloadriscv-tests-78d282890b61022f1576524d7daf87f4c65cd9c5.zip
riscv-tests-78d282890b61022f1576524d7daf87f4c65cd9c5.tar.gz
riscv-tests-78d282890b61022f1576524d7daf87f4c65cd9c5.tar.bz2
Don't compile with FPU support for now.
It's not Just Working, and none of the tests so far actually care.
Diffstat (limited to 'debug')
-rw-r--r--debug/targets.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug/targets.py b/debug/targets.py
index 7496b48..538caaf 100644
--- a/debug/targets.py
+++ b/debug/targets.py
@@ -11,6 +11,7 @@ class Target(object):
temporary_files = []
temporary_binary = None
openocd_config = []
+ use_fpu = False
def __init__(self, cmd, run, isolate):
self.cmd = cmd
@@ -38,10 +39,13 @@ class Target(object):
prefix=binary_name + "_")
binary_name = self.temporary_binary.name
Target.temporary_files.append(self.temporary_binary)
+ march = "RV%dIMA" % self.xlen
+ if self.use_fpu:
+ march += "FD"
testlib.compile(sources +
("programs/entry.S", "programs/init.c",
"-I", "../env",
- "-march=RV%dIMAFD" % self.xlen,
+ "-march=%s" % march,
"-T", "targets/%s/link.lds" % (self.directory or self.name),
"-nostartfiles",
"-mcmodel=medany",