diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:13 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:13 +0100 |
commit | d6037472b4bbff809092f3ec2c9328b663956224 (patch) | |
tree | 54d5bf370222ca6a2a00f4c59369bfd3d4df5760 | |
parent | ca118555214a176728b9aab87849391344306d6d (diff) |
Bug fixed on cursor's process selection process.
[#1] Cursor process selection loop was searching for processes under
the cursor by iterating based on process count, instead of process
queue capacity.
-rw-r--r-- | bin/printer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/printer.py b/bin/printer.py index 135e220..04c9865 100644 --- a/bin/printer.py +++ b/bin/printer.py @@ -814,7 +814,7 @@ class Printer: # Now, iterate all living processes and try to find one that owns the # calculated address. if self._sim.lib.sal_mem_is_address_valid(address): - for proc_id in range(self._sim.lib.sal_proc_get_count()): + for proc_id in range(self._sim.lib.sal_proc_get_capacity()): if not self._sim.lib.sal_proc_is_free(proc_id): proc_data = (c_uint32 * len(self._proc_elements))() self._sim.lib.sal_proc_get_proc_data(proc_id, cast( |