From e90d99358fca9abb2a51c3002c95de7398dd2c18 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 9 Jun 2020 11:49:07 +0100 Subject: [PATCH] correct local variable references --- src/soc/fu/trap/main_stage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/trap/main_stage.py b/src/soc/fu/trap/main_stage.py index 273b8e20..222da5dd 100644 --- a/src/soc/fu/trap/main_stage.py +++ b/src/soc/fu/trap/main_stage.py @@ -68,11 +68,11 @@ def msr_copy(msr_o, msr_i, zero_me=True): return l -def msr_check_pr(m, msr_o): +def msr_check_pr(m, msr): """msr_check_pr: checks "problem state" """ comb = m.d.comb - with m.If(msrdata[MSR_PR]): + with m.If(msr[MSR_PR]): comb += msr[MSR_EE].eq(1) # set external interrupt bit comb += msr[MSR_IR].eq(1) # set instruction relocation bit comb += msr[MSR_DR].eq(1) # set data relocation bit -- 2.30.2