From: Luke Kenneth Casson Leighton Date: Sun, 26 Jun 2022 11:39:31 +0000 (+0100) Subject: add TrapTestCase for KAIVB X-Git-Tag: sv_maxu_works-initial~332 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06e56ef855c57bb7a8ffa5f4b03ba34bf43c1010;p=openpower-isa.git add TrapTestCase for KAIVB https://bugs.libre-soc.org/show_bug.cgi?id=859 --- 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