From eab9eabf98fda5d65e26c073e989abb80bcc10c9 Mon Sep 17 00:00:00 2001 From: Richard Yan Date: Wed, 15 May 2024 21:52:04 -0700 Subject: [PATCH] support for .out printf --- sims/parse_printf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sims/parse_printf.py b/sims/parse_printf.py index a8f10335..3f04fffa 100644 --- a/sims/parse_printf.py +++ b/sims/parse_printf.py @@ -68,7 +68,7 @@ def parse_out_file(out_file_path): if 'TRACEWR' in line: tokens = line.strip().split() addr, data, mask = int(tokens[2], 16), int(tokens[3], 16), int(tokens[4], 16) - assert((addr >> 16) == 0xff00) + assert((addr >> 20) == 0xff0) bytes_object = bytes.fromhex(tokens[3]) masked_bytes_list = [] assert(len(bytes_object) <= 4)