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
(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).