diff options
author | Tim Newsome <tim@sifive.com> | 2019-07-15 10:31:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 10:31:23 -0700 |
commit | 419dcecc7a9eb0b8efc2e8c82d37364a724e2227 (patch) | |
tree | 04854a0e0f6381cd4dbdb20e63a297265be77e3f /debug/testlib.py | |
parent | 92862bcb27a53f246126c95203b44153d324bbd7 (diff) | |
download | riscv-tests-419dcecc7a9eb0b8efc2e8c82d37364a724e2227.zip riscv-tests-419dcecc7a9eb0b8efc2e8c82d37364a724e2227.tar.gz riscv-tests-419dcecc7a9eb0b8efc2e8c82d37364a724e2227.tar.bz2 |
Make tests work with RV32E targets. (#196)
Diffstat (limited to 'debug/testlib.py')
-rw-r--r-- | debug/testlib.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index cd20bdd..5c2366a 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -29,15 +29,9 @@ def find_file(path): return relpath return None -def compile(args, xlen=32): # pylint: disable=redefined-builtin +def compile(args): # pylint: disable=redefined-builtin cc = os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gcc") cmd = [cc, "-g"] - if xlen == 32: - cmd.append("-march=rv32imac") - cmd.append("-mabi=ilp32") - else: - cmd.append("-march=rv64imac") - cmd.append("-mabi=lp64") for arg in args: found = find_file(arg) if found: |