check_sim_memory)
# test with ALU data and Logical data
-from soc.fu.alu.test.test_pipe_caller import ALUTestCase
+#from soc.fu.alu.test.test_pipe_caller import ALUTestCase
#from soc.fu.logical.test.test_pipe_caller import LogicalTestCase
#from soc.fu.shift_rot.test.test_pipe_caller import ShiftRotTestCase
#from soc.fu.cr.test.test_pipe_caller import CRTestCase
#from soc.fu.branch.test.test_pipe_caller import BranchTestCase
-from soc.fu.spr.test.test_pipe_caller import SPRTestCase
+#from soc.fu.spr.test.test_pipe_caller import SPRTestCase
#from soc.fu.ldst.test.test_pipe_caller import LDSTTestCase
#from soc.simulator.test_sim import (GeneralTestCases, AttnTestCase)
-#from soc.simulator.test_helloworld_sim import HelloTestCases
+from soc.simulator.test_helloworld_sim import HelloTestCases
def setup_i_memory(imem, startaddr, instructions):
if __name__ == "__main__":
unittest.main(exit=False)
suite = unittest.TestSuite()
- #suite.addTest(TestRunner(HelloTestCases.test_data))
+ suite.addTest(TestRunner(HelloTestCases.test_data))
#suite.addTest(TestRunner(AttnTestCase.test_data))
#suite.addTest(TestRunner(GeneralTestCases.test_data))
#suite.addTest(TestRunner(LDSTTestCase.test_data))
#suite.addTest(TestRunner(CRTestCase.test_data))
#suite.addTest(TestRunner(ShiftRotTestCase.test_data))
#suite.addTest(TestRunner(LogicalTestCase.test_data))
- suite.addTest(TestRunner(ALUTestCase.test_data))
+ #suite.addTest(TestRunner(ALUTestCase.test_data))
#suite.addTest(TestRunner(BranchTestCase.test_data))
- suite.addTest(TestRunner(SPRTestCase.test_data))
+ #suite.addTest(TestRunner(SPRTestCase.test_data))
runner = unittest.TextTestRunner()
runner.run(suite)
from pygdbmi.gdbcontroller import GdbController
import subprocess
-launch_args = ['qemu-system-ppc64',
+launch_args_be = ['qemu-system-ppc64',
+ '-machine', 'powernv9',
+ '-nographic',
+ '-s', '-S']
+
+launch_args_le = ['qemu-system-ppc64le',
'-machine', 'powernv9',
'-nographic',
'-s', '-S']
class QemuController:
- def __init__(self, kernel):
- args = launch_args + ['-kernel', kernel]
+ def __init__(self, kernel, bigendian=True):
+ if bigendian:
+ args = launch_args_be + ['-kernel', kernel]
+ else:
+ args = launch_args_le + ['-kernel', kernel]
self.qemu_popen = subprocess.Popen(args,
stdout=subprocess.PIPE,
stdin=subprocess.PIPE)