aboutsummaryrefslogtreecommitdiff
path: root/debug/targets.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-11-22 11:38:02 -0800
committerGitHub <noreply@github.com>2019-11-22 11:38:02 -0800
commit053c956619ace234de7257f4503d921efd80074e (patch)
tree4b3c8ba48439697786a4082c11e73573fc0cde4e /debug/targets.py
parentc56451fc5ab672d2ec49663ff83d0dc51c61aa57 (diff)
downloadriscv-tests-053c956619ace234de7257f4503d921efd80074e.zip
riscv-tests-053c956619ace234de7257f4503d921efd80074e.tar.gz
riscv-tests-053c956619ace234de7257f4503d921efd80074e.tar.bz2
Move to Python 3. (#218)
The impetus for this was mostly that after my Ubuntu upgrade, pylint suddenly starting to apply python3 rules, and I suppose it's time to adopt python 3 now that it's been released for more than a decade.
Diffstat (limited to 'debug/targets.py')
-rw-r--r--debug/targets.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/debug/targets.py b/debug/targets.py
index d83e84b..d797f64 100644
--- a/debug/targets.py
+++ b/debug/targets.py
@@ -5,7 +5,7 @@ import tempfile
import testlib
-class Hart(object):
+class Hart:
# XLEN of the hart. May be overridden with --32 or --64 command line
# options.
xlen = 0
@@ -45,7 +45,7 @@ class Hart(object):
return self.misa & (1 << (ord(letter.upper()) - ord('A')))
return False
-class Target(object):
+class Target:
# pylint: disable=too-many-instance-attributes
# List of Hart object instances, one for each hart in the target.
@@ -117,7 +117,6 @@ class Target(object):
def create(self):
"""Create the target out of thin air, eg. start a simulator."""
- pass
def server(self):
"""Start the debug server that gdb connects to, eg. OpenOCD."""