From 4135ffdb32d6f03a37a8c4c9591b5618024e15aa Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 18 Apr 2021 19:30:25 +0200 Subject: [PATCH] syscall symbols now work as global symbols --- riscemu/Syscall.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscemu/Syscall.py b/riscemu/Syscall.py index 60a889e..5fa2332 100644 --- a/riscemu/Syscall.py +++ b/riscemu/Syscall.py @@ -167,6 +167,6 @@ class SyscallInterface: scall.cpu.exit_code = scall.registers.get('a0') def get_syscall_symbols(self): - symbols = dict() - for num, name in SYSCALLS.items(): - symbols['SCALL_' + name.upper()] = num \ No newline at end of file + return { + ('SCALL_' + name.upper()): num for num, name in SYSCALLS.items() + } \ No newline at end of file