From 06e56ef855c57bb7a8ffa5f4b03ba34bf43c1010 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 26 Jun 2022 12:39:31 +0100 Subject: [PATCH] add TrapTestCase for KAIVB https://bugs.libre-soc.org/show_bug.cgi?id=859 --- src/openpower/test/trap/trap_cases.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/openpower/test/trap/trap_cases.py b/src/openpower/test/trap/trap_cases.py index 069b980d..41d34348 100644 --- a/src/openpower/test/trap/trap_cases.py +++ b/src/openpower/test/trap/trap_cases.py @@ -9,6 +9,19 @@ import random class TrapTestCase(TestAccumulatorBase): + def case_1_kaivb(self): + lst = ["mtspr 850, 1", # KAIVB + "mfspr 2, 850", + ] + initial_regs = [0] * 32 + initial_regs[1] = 0x129518230011feed + initial_sprs = {'KAIVB': 0x12345678, + } + msr = 0xa000000000000003 + self.add_case(Program(lst, bigendian), + initial_regs, initial_sprs, + initial_msr=msr) + def case_0_hrfid(self): lst = ["hrfid"] initial_regs = [0] * 32 -- 2.30.2