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