[Libre-soc-isa] [Bug 686] create Power ISA test API

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Sep 21 20:45:40 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=686

--- Comment #56 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to klehman9 from comment #55)
> Changes committed for using compare_mem in teststate in runner and core
> 
> https://git.libre-soc.org/?p=openpower-isa.git;a=commit;
> h=9c4cbf72541f8f8ff7e9ec5191d1ed321a4f89d5

ah, since converting to a dict, it is important to also
check the keys.  or, hm, that those entries *not* in mem1
but are in mem2 are zero, and vice-versa.

this may need the use of sets, to check.

addrs1 = set(mem1.keys()
addrs2 = same

then there will be something in python sets where you can
get "those things of set1 that are NOT in set2"

and go from there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libre-SOC-ISA mailing list