From: Luke Kenneth Casson Leighton Date: Fri, 23 Apr 2021 16:10:05 +0000 (+0100) Subject: move more files to openpower-isa X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65716665ddf5ffecdad44fbcfc135340aedc9d4c;p=soc.git move more files to openpower-isa --- diff --git a/src/soc/fu/branch/test/test_pipe_caller.py b/src/soc/fu/branch/test/test_pipe_caller.py index 53d27cc0..f68374d1 100644 --- a/src/soc/fu/branch/test/test_pipe_caller.py +++ b/src/soc/fu/branch/test/test_pipe_caller.py @@ -21,8 +21,6 @@ from soc.fu.branch.pipeline import BranchBasePipe from soc.fu.branch.pipe_data import BranchPipeSpec import random -from soc.regfile.util import fast_reg_to_spr # HACK! - def get_rec_width(rec): recwidth = 0 diff --git a/src/soc/fu/compunits/test/test_branch_compunit.py b/src/soc/fu/compunits/test/test_branch_compunit.py index 7c85050e..e7f8e981 100644 --- a/src/soc/fu/compunits/test/test_branch_compunit.py +++ b/src/soc/fu/compunits/test/test_branch_compunit.py @@ -7,8 +7,6 @@ from soc.fu.compunits.compunits import BranchFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner from soc.config.endian import bigendian -from soc.regfile.util import fast_reg_to_spr # HACK! - """ def assert_outputs(self, branch, dec2, sim, prev_nia, code): diff --git a/src/soc/fu/test/common.py b/src/soc/fu/test/common.py index 359c7d6d..c5b60697 100644 --- a/src/soc/fu/test/common.py +++ b/src/soc/fu/test/common.py @@ -1,558 +1,7 @@ -""" -Bugreports: -* https://bugs.libre-soc.org/show_bug.cgi?id=361 -""" +# moved to openpower-isa +# https://git.libre-soc.org/?p=openpower-isa.git;a=summary +# wildcard imports here ONLY to support migration -import inspect -import functools -import types -from openpower.decoder.power_enums import XER_bits, CryIn, spr_dict -from soc.regfile.util import fast_reg_to_spr, slow_reg_to_spr # HACK! -from soc.regfile.regfiles import XERRegs, FastRegs +from openpower.test.common import * +from openpower.util import mask_extend - -# TODO: make this a util routine (somewhere) -def mask_extend(x, nbits, repeat): - res = 0 - extended = (1<