From: Luke Kenneth Casson Leighton Date: Fri, 23 Apr 2021 17:42:37 +0000 (+0100) Subject: import from openpower.endian X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1789f0e7cab5d4eca6df99e6dd495c0c6e5844fe;p=soc.git import from openpower.endian --- diff --git a/src/soc/fu/alu/test/test_pipe_caller.py b/src/soc/fu/alu/test/test_pipe_caller.py index 51aa0e5d..620452f0 100644 --- a/src/soc/fu/alu/test/test_pipe_caller.py +++ b/src/soc/fu/alu/test/test_pipe_caller.py @@ -2,7 +2,7 @@ import random from soc.fu.alu.pipe_data import ALUPipeSpec from soc.fu.alu.pipeline import ALUBasePipe from openpower.test.common import (TestCase, TestAccumulatorBase, ALUHelpers) -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.decoder.isa.all import ISA from openpower.simulator.program import Program from openpower.decoder.selectable_int import SelectableInt diff --git a/src/soc/fu/branch/test/test_pipe_caller.py b/src/soc/fu/branch/test/test_pipe_caller.py index 221661f5..427b280f 100644 --- a/src/soc/fu/branch/test/test_pipe_caller.py +++ b/src/soc/fu/branch/test/test_pipe_caller.py @@ -14,7 +14,7 @@ from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA from soc.regfile.regfiles import FastRegs -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import TestAccumulatorBase, TestCase, ALUHelpers from soc.fu.branch.pipeline import BranchBasePipe diff --git a/src/soc/fu/compunits/test/test_alu_compunit.py b/src/soc/fu/compunits/test/test_alu_compunit.py index 5b00d324..2e6227ba 100644 --- a/src/soc/fu/compunits/test/test_alu_compunit.py +++ b/src/soc/fu/compunits/test/test_alu_compunit.py @@ -7,7 +7,7 @@ from soc.fu.alu.test.test_pipe_caller import ALUTestCase # creates the tests from openpower.test.common import ALUHelpers from soc.fu.compunits.compunits import ALUFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner -from soc.config.endian import bigendian +from openpower.endian import bigendian class ALUTestRunner(TestRunner): diff --git a/src/soc/fu/compunits/test/test_branch_compunit.py b/src/soc/fu/compunits/test/test_branch_compunit.py index e7f8e981..627b4329 100644 --- a/src/soc/fu/compunits/test/test_branch_compunit.py +++ b/src/soc/fu/compunits/test/test_branch_compunit.py @@ -5,7 +5,7 @@ from soc.fu.branch.test.test_pipe_caller import BranchTestCase, get_cu_inputs from soc.fu.compunits.compunits import BranchFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner -from soc.config.endian import bigendian +from openpower.endian import bigendian """ diff --git a/src/soc/fu/compunits/test/test_cr_compunit.py b/src/soc/fu/compunits/test/test_cr_compunit.py index b03ecd49..cbf7a673 100644 --- a/src/soc/fu/compunits/test/test_cr_compunit.py +++ b/src/soc/fu/compunits/test/test_cr_compunit.py @@ -8,7 +8,7 @@ from soc.fu.cr.test.test_pipe_caller import CRTestCase from soc.fu.compunits.compunits import CRFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner from openpower.util import mask_extend -from soc.config.endian import bigendian +from openpower.endian import bigendian class CRTestRunner(TestRunner): diff --git a/src/soc/fu/compunits/test/test_div_compunit.py b/src/soc/fu/compunits/test/test_div_compunit.py index 3c7145e1..ab6da5a0 100644 --- a/src/soc/fu/compunits/test/test_div_compunit.py +++ b/src/soc/fu/compunits/test/test_div_compunit.py @@ -7,7 +7,7 @@ from soc.fu.div.test.test_pipe_caller import DivTestCases # creates the tests from openpower.test.common import ALUHelpers from soc.fu.compunits.compunits import DivFSMFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner -from soc.config.endian import bigendian +from openpower.endian import bigendian class DivTestRunner(TestRunner): diff --git a/src/soc/fu/compunits/test/test_ldst_compunit.py b/src/soc/fu/compunits/test/test_ldst_compunit.py index 357ce983..24fbbd98 100644 --- a/src/soc/fu/compunits/test/test_ldst_compunit.py +++ b/src/soc/fu/compunits/test/test_ldst_compunit.py @@ -6,7 +6,7 @@ from soc.fu.ldst.test.test_pipe_caller import LDSTTestCase, get_cu_inputs from soc.fu.compunits.compunits import LDSTFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner from openpower.test.common import ALUHelpers -from soc.config.endian import bigendian +from openpower.endian import bigendian class LDSTTestRunner(TestRunner): diff --git a/src/soc/fu/compunits/test/test_logical_compunit.py b/src/soc/fu/compunits/test/test_logical_compunit.py index 6a4c3cb7..7a0b9893 100644 --- a/src/soc/fu/compunits/test/test_logical_compunit.py +++ b/src/soc/fu/compunits/test/test_logical_compunit.py @@ -7,7 +7,7 @@ from soc.fu.logical.test.test_pipe_caller import (LogicalTestCase, from soc.fu.compunits.compunits import LogicalFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner from openpower.test.common import ALUHelpers -from soc.config.endian import bigendian +from openpower.endian import bigendian class LogicalTestRunner(TestRunner): diff --git a/src/soc/fu/compunits/test/test_shiftrot_compunit.py b/src/soc/fu/compunits/test/test_shiftrot_compunit.py index 7db830b0..cb759bdd 100644 --- a/src/soc/fu/compunits/test/test_shiftrot_compunit.py +++ b/src/soc/fu/compunits/test/test_shiftrot_compunit.py @@ -4,7 +4,7 @@ from openpower.decoder.power_enums import (XER_bits, Function) # XXX bad practice: use of global variables from soc.fu.shift_rot.test.test_pipe_caller import get_cu_inputs from soc.fu.shift_rot.test.test_pipe_caller import ShiftRotTestCase -from soc.config.endian import bigendian +from openpower.endian import bigendian from soc.fu.compunits.compunits import ShiftRotFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner diff --git a/src/soc/fu/compunits/test/test_spr_compunit.py b/src/soc/fu/compunits/test/test_spr_compunit.py index bfc8a50d..86047f8e 100644 --- a/src/soc/fu/compunits/test/test_spr_compunit.py +++ b/src/soc/fu/compunits/test/test_spr_compunit.py @@ -7,7 +7,7 @@ from soc.fu.spr.test.test_pipe_caller import SPRTestCase # creates the tests from openpower.test.common import ALUHelpers from soc.fu.compunits.compunits import SPRFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner -from soc.config.endian import bigendian +from openpower.endian import bigendian class SPRTestRunner(TestRunner): diff --git a/src/soc/fu/compunits/test/test_trap_compunit.py b/src/soc/fu/compunits/test/test_trap_compunit.py index 89f4ef66..77fdfeaf 100644 --- a/src/soc/fu/compunits/test/test_trap_compunit.py +++ b/src/soc/fu/compunits/test/test_trap_compunit.py @@ -7,7 +7,7 @@ from soc.fu.trap.test.test_pipe_caller import TrapTestCase # creates the tests from openpower.test.common import ALUHelpers from soc.fu.compunits.compunits import TrapFunctionUnit from soc.fu.compunits.test.test_compunit import TestRunner -from soc.config.endian import bigendian +from openpower.endian import bigendian class TrapTestRunner(TestRunner): diff --git a/src/soc/fu/cr/test/test_pipe_caller.py b/src/soc/fu/cr/test/test_pipe_caller.py index 4501d281..6cc441fc 100644 --- a/src/soc/fu/cr/test/test_pipe_caller.py +++ b/src/soc/fu/cr/test/test_pipe_caller.py @@ -13,7 +13,7 @@ from openpower.decoder.power_enums import (XER_bits, Function) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import TestAccumulatorBase, TestCase, ALUHelpers from openpower.util import mask_extend diff --git a/src/soc/fu/div/test/helper.py b/src/soc/fu/div/test/helper.py index 97da3f36..15f9d826 100644 --- a/src/soc/fu/div/test/helper.py +++ b/src/soc/fu/div/test/helper.py @@ -11,7 +11,7 @@ from openpower.decoder.power_decoder import (create_pdecode) from openpower.decoder.power_decoder2 import (PowerDecode2) from openpower.decoder.power_enums import XER_bits, Function from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import ALUHelpers from soc.fu.test.pia import pia_res_to_output diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index e6cebc50..4c7a10f7 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -1,7 +1,7 @@ import random import unittest from openpower.simulator.program import Program -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import (TestCase, TestAccumulatorBase, skip_case) from soc.fu.div.pipe_data import DivPipeKind diff --git a/src/soc/fu/div/test/test_pipe_caller_long.py b/src/soc/fu/div/test/test_pipe_caller_long.py index c91d4d96..4739842f 100644 --- a/src/soc/fu/div/test/test_pipe_caller_long.py +++ b/src/soc/fu/div/test/test_pipe_caller_long.py @@ -1,6 +1,6 @@ import unittest from openpower.simulator.program import Program -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import TestAccumulatorBase from soc.fu.div.test.helper import DivTestHelper diff --git a/src/soc/fu/ldst/test/test_pipe_caller.py b/src/soc/fu/ldst/test/test_pipe_caller.py index d738fcb4..b55db740 100644 --- a/src/soc/fu/ldst/test/test_pipe_caller.py +++ b/src/soc/fu/ldst/test/test_pipe_caller.py @@ -9,7 +9,7 @@ from openpower.decoder.power_enums import (XER_bits, Function, MicrOp, CryIn) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import TestAccumulatorBase, TestCase diff --git a/src/soc/fu/logical/test/test_pipe_caller.py b/src/soc/fu/logical/test/test_pipe_caller.py index b11e182a..ebab8cef 100644 --- a/src/soc/fu/logical/test/test_pipe_caller.py +++ b/src/soc/fu/logical/test/test_pipe_caller.py @@ -14,7 +14,7 @@ from openpower.decoder.power_enums import (XER_bits, Function) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import TestAccumulatorBase, TestCase, ALUHelpers diff --git a/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py b/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py index 095f465b..0bb6ecad 100644 --- a/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py +++ b/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py @@ -1,7 +1,7 @@ from nmigen import Module, Signal from soc.simple.test.test_issuer import TestRunner from openpower.simulator.program import Program -from soc.config.endian import bigendian +from openpower.endian import bigendian import unittest from openpower.test.common import ( diff --git a/src/soc/fu/mmu/test/test_issuer_mmu_rom.py b/src/soc/fu/mmu/test/test_issuer_mmu_rom.py index 6044ad46..a3e9ff1f 100644 --- a/src/soc/fu/mmu/test/test_issuer_mmu_rom.py +++ b/src/soc/fu/mmu/test/test_issuer_mmu_rom.py @@ -1,7 +1,7 @@ from nmigen import Module, Signal from soc.simple.test.test_runner import TestRunner from openpower.simulator.program import Program -from soc.config.endian import bigendian +from openpower.endian import bigendian import unittest from openpower.test.common import (TestAccumulatorBase, skip_case, TestCase, diff --git a/src/soc/fu/mmu/test/test_non_production_core.py b/src/soc/fu/mmu/test/test_non_production_core.py index 7c00c161..5a77a455 100644 --- a/src/soc/fu/mmu/test/test_non_production_core.py +++ b/src/soc/fu/mmu/test/test_non_production_core.py @@ -11,7 +11,7 @@ from openpower.decoder.power_enums import (XER_bits, Function, MicrOp, CryIn) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.consts import MSR diff --git a/src/soc/fu/mmu/test/test_pipe_caller.py b/src/soc/fu/mmu/test/test_pipe_caller.py index d62c8ae7..eacbd447 100644 --- a/src/soc/fu/mmu/test/test_pipe_caller.py +++ b/src/soc/fu/mmu/test/test_pipe_caller.py @@ -13,7 +13,7 @@ from openpower.decoder.power_enums import (XER_bits, Function, MicrOp, CryIn) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.consts import MSR diff --git a/src/soc/fu/mul/test/helper.py b/src/soc/fu/mul/test/helper.py index b7401828..06f1a56f 100644 --- a/src/soc/fu/mul/test/helper.py +++ b/src/soc/fu/mul/test/helper.py @@ -15,7 +15,7 @@ from openpower.decoder.power_enums import (XER_bits, Function, MicrOp, CryIn) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import (TestAccumulatorBase, TestCase, ALUHelpers) from soc.fu.test.pia import pia_res_to_output diff --git a/src/soc/fu/mul/test/test_pipe_caller.py b/src/soc/fu/mul/test/test_pipe_caller.py index d57313b0..c1725fbd 100644 --- a/src/soc/fu/mul/test/test_pipe_caller.py +++ b/src/soc/fu/mul/test/test_pipe_caller.py @@ -1,7 +1,7 @@ import unittest from soc.fu.mul.test.helper import MulTestHelper from openpower.simulator.program import Program -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import TestAccumulatorBase, skip_case import random diff --git a/src/soc/fu/mul/test/test_pipe_caller_long.py b/src/soc/fu/mul/test/test_pipe_caller_long.py index 6a507c38..35368176 100644 --- a/src/soc/fu/mul/test/test_pipe_caller_long.py +++ b/src/soc/fu/mul/test/test_pipe_caller_long.py @@ -1,7 +1,7 @@ import unittest from soc.fu.mul.test.helper import MulTestHelper from openpower.simulator.program import Program -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.test.common import (TestAccumulatorBase) import random diff --git a/src/soc/fu/shift_rot/test/test_pipe_caller.py b/src/soc/fu/shift_rot/test/test_pipe_caller.py index e54179ed..68e87e76 100644 --- a/src/soc/fu/shift_rot/test/test_pipe_caller.py +++ b/src/soc/fu/shift_rot/test/test_pipe_caller.py @@ -3,7 +3,7 @@ from soc.fu.shift_rot.pipe_data import ShiftRotPipeSpec from soc.fu.alu.alu_input_record import CompALUOpSubset from soc.fu.shift_rot.pipeline import ShiftRotBasePipe from openpower.test.common import TestAccumulatorBase, TestCase, ALUHelpers -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.decoder.isa.all import ISA from openpower.simulator.program import Program from openpower.decoder.selectable_int import SelectableInt diff --git a/src/soc/fu/spr/test/test_pipe_caller.py b/src/soc/fu/spr/test/test_pipe_caller.py index 7b7290b1..266079f6 100644 --- a/src/soc/fu/spr/test/test_pipe_caller.py +++ b/src/soc/fu/spr/test/test_pipe_caller.py @@ -13,7 +13,7 @@ from openpower.decoder.power_enums import (XER_bits, Function, MicrOp, CryIn) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.consts import MSR diff --git a/src/soc/fu/trap/test/test_pipe_caller.py b/src/soc/fu/trap/test/test_pipe_caller.py index 994bdf50..b2d63da0 100644 --- a/src/soc/fu/trap/test/test_pipe_caller.py +++ b/src/soc/fu/trap/test/test_pipe_caller.py @@ -14,7 +14,7 @@ from openpower.decoder.power_enums import (XER_bits, Function, MicrOp, CryIn) from openpower.decoder.selectable_int import SelectableInt from openpower.simulator.program import Program from openpower.decoder.isa.all import ISA -from soc.config.endian import bigendian +from openpower.endian import bigendian from openpower.consts import MSR from openpower.test.common import (TestAccumulatorBase, TestCase, ALUHelpers)