From: Dmitry Selyutin Date: Sun, 9 Jan 2022 15:24:49 +0000 (+0000) Subject: sv_binutils: print opcode as hexadecimal X-Git-Tag: sv_maxu_works-initial~577 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03d15dbd5047381640867a713e3526689b6ae821;p=openpower-isa.git sv_binutils: print opcode as hexadecimal --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 3bddd99b..f416d083 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -118,8 +118,8 @@ class Opcode(Field): def c_value(self, prefix="", suffix=""): yield f"{prefix}{{" yield from indent([ - f".value = {self.value},", - f".mask = {self.mask},", + f".value = UINT32_C(0x{self.value:08X}),", + f".mask = UINT32_C(0x{self.mask:08X}),", ]) yield f"}}{suffix}"