[Libre-soc-isa] [Bug 686] create Power ISA test API
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Wed Sep 15 21:12:21 BST 2021
https://bugs.libre-soc.org/show_bug.cgi?id=686
--- Comment #46 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to klehman9 from comment #45)
> https://git.libre-soc.org/?p=openpower-isa.git;a=commit;
> h=96d9e1f949c6b6d0a9a9cee75075cf0361853d67
>
> Added basic expected class
e = yield from ExpectedState()
ah no.
just
e = ExpectedState(int_regs = [list, of, regs],
pc = NNNN,
cr = [list, of, CR, Fields]
)
the calling of yield is *not* the responsibility of the unit
test.
the *check_regs* function has that responsibility.
however for the get_intregs() etc. of ExpectedState they should
be entirely blank.
everything created from ExpectedState()'s *constructor*.
real brutally simple.
if there was a way to get rid of get_intregs() etc. even needing
to exist in ExpectedState i would recommend doing it.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libre-SOC-ISA
mailing list