From 440cac9f7737438d72905c12dd0e3b7583058a42 Mon Sep 17 00:00:00 2001 From: bbracker Date: Wed, 9 Feb 2022 02:56:39 +0000 Subject: [PATCH] minor interrupt syntax fix --- linux/testvector-generation/parseGDBtoTrace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/testvector-generation/parseGDBtoTrace.py b/linux/testvector-generation/parseGDBtoTrace.py index 69bdfceb9..db444f696 100755 --- a/linux/testvector-generation/parseGDBtoTrace.py +++ b/linux/testvector-generation/parseGDBtoTrace.py @@ -164,7 +164,8 @@ for line in fileinput.input('-'): interrupts.write(str(numInstrs)+'\n') # Convert line to rows of info for easier Verilog parsing vals=line.strip('riscv_cpu_do_interrupt: ').strip('\n').split(',') - vals=[val.split(':')[-1].strip(' ').strip('desc=') for val in vals] + vals=[val.split(':')[-1].strip(' ') for val in vals] + vals=[val.split('=')[-1].strip(' ') for val in vals] for val in vals: interrupts.write(val+'\n') continue