From 0651eabe18ae5f97114f4dfbc94a0a42d3b893e6 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Mon, 30 Aug 2021 15:09:31 +0200 Subject: [PATCH] fixed how ecalls are represented and handled --- .gitignore | 2 +- riscemu/IO/TextIO.py | 2 +- riscemu/priv/Exceptions.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9bccae6..57e5c62 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ venv __pycache__ -.mypy_cache \ No newline at end of file +.mypy_cache diff --git a/riscemu/IO/TextIO.py b/riscemu/IO/TextIO.py index 14312cc..b51813b 100644 --- a/riscemu/IO/TextIO.py +++ b/riscemu/IO/TextIO.py @@ -12,7 +12,7 @@ def _window_loop(textIO: 'TextIO'): import PySimpleGUI as sg logs = sg.Text(font="monospace") - col = sg.Column([[logs]], size=(1920, 1080), scrollable=True) + col = sg.Column([[logs]], size=(640, 400), scrollable=True) window = sg.Window("TextIO:{:x}".format(textIO.addr), [[col]]) lines = list() diff --git a/riscemu/priv/Exceptions.py b/riscemu/priv/Exceptions.py index 85503c3..fee6217 100644 --- a/riscemu/priv/Exceptions.py +++ b/riscemu/priv/Exceptions.py @@ -88,4 +88,4 @@ class TimerInterrupt(CpuTrap): class EcallTrap(CpuTrap): def __init__(self, mode: PrivModes): - super().__init__(mode.value + 8, 0, CpuTrapType.SOFTWARE) + super().__init__(mode.value + 8, 0, CpuTrapType.EXCEPTION)