From 95edca7a8ff7393bf59a1e0f3fc130ef114d25d0 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 19 Oct 2023 17:49:04 -0700 Subject: [PATCH] fill in manually verified expected state for TrapTestCase.case_2_kaivb_test based on the Programming Note on left side of PowerISA v3.1B page 1289 (1315) --- src/openpower/test/trap/trap_cases.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/trap/trap_cases.py b/src/openpower/test/trap/trap_cases.py index dcab94f9..b90bf693 100644 --- a/src/openpower/test/trap/trap_cases.py +++ b/src/openpower/test/trap/trap_cases.py @@ -36,7 +36,10 @@ class TrapTestCase(TestAccumulatorBase): msr = 0xa000000000000003 e = ExpectedState(pc=0x2700) e.intregs[1] = 1 << 13 - e.msr = 0xa000000000000003 # TODO, not actually checked + e.sprs['SRR0'] = 0x4 + e.sprs['SRR1'] = 0xa000000000080003 + e.sprs['KAIVB'] = 0x2000 + e.msr = 0xa000000000000001 self.add_case(Program(lst, bigendian), initial_regs, initial_sprs, initial_msr=msr, -- 2.30.2