diff options
author | Tim Newsome <tim@sifive.com> | 2019-11-19 14:23:41 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2019-11-19 14:23:41 -0800 |
commit | a1037f74c9cd828e11f662ad279fff452b195c17 (patch) | |
tree | 4b3c8ba48439697786a4082c11e73573fc0cde4e /debug/targets.py | |
parent | c56451fc5ab672d2ec49663ff83d0dc51c61aa57 (diff) | |
download | riscv-tests-python3.zip riscv-tests-python3.tar.gz riscv-tests-python3.tar.bz2 |
Move to Python 3.python3
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.py | 5 |
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.""" |