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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Nov 4 14:40:43 GMT 2021


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

Luke Kenneth Casson Leighton <lkcl at lkcl.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lkcl at lkcl.net

--- Comment #1 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to klehman9 from comment #0)

> 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

yes that makes sense, copy only hits "shallow" levels, deepcopy
actually copies the objects themselves pointed to *by* the keys
(the actual values).

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


More information about the libre-soc-bugs mailing list