[Libre-soc-bugs] [Bug 738] New: ISACaller modifies initial_sprs of test data

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Nov 4 13:54:04 GMT 2021


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

            Bug ID: 738
           Summary: ISACaller modifies initial_sprs of test data
           Product: Libre-SOC's first SoC
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: CONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Source Code
          Assignee: klehman9 at comcast.net
          Reporter: klehman9 at comcast.net
                CC: libre-soc-bugs at lists.libre-soc.org
        Depends on: 686
   NLnet milestone: ---

While working on qemu test_runner, an interesting yet frustrating problem
surfaced (and known earlier because hdl needs to be ran first before
IsaCaller).  IsaCaller modifies the initial_sprs of test data which throws
subsequent test runners off.

Apparently, copy isn't enough, but a deepcopy fixes the issue. One would think
a copy would suffice enough since it is basically just a dict, but apparently
not. 

https://git.libre-soc.org/?p=openpower-isa.git;a=commit;h=8973523be79e8b063cf87e266791c36f79c42a12


Referenced Bugs:

https://bugs.libre-soc.org/show_bug.cgi?id=686
[Bug 686] create Power ISA test API
-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list