util: Fix packet parser for Python3

Change-Id: Id5124135b0dd4049ce6531d7bdbc562d33f4d299
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40075
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Earl Ou
2021-01-29 16:11:25 +08:00
parent f840d13c78
commit f2c6e8bd13

View File

@@ -63,7 +63,7 @@ def main():
exit(-1)
# Read the magic number in 4-byte Little Endian
magic_number = proto_in.read(4)
magic_number = proto_in.read(4).decode()
if magic_number != "gem5":
print("Unrecognized file", sys.argv[1])