expected=None,
stop_at_pc=None,
fpregs=None,
+ initial_fpscr=None,
src_loc_at=0):
# name of caller of this function
stop_at_pc=stop_at_pc,
test_file=test_file,
subtest_args=self.__subtest_args.copy(),
- fpregs=fpregs)
+ fpregs=fpregs,
+ initial_fpscr=initial_fpscr)
self.test_data.append(tc)
stop_at_pc=None,
test_file=None,
subtest_args=None,
- fpregs=None):
+ fpregs=None,
+ initial_fpscr=None):
self.program = program
self.name = name
self.stop_at_pc = stop_at_pc # hard-stop address (do not attempt to run)
self.test_file = test_file
self.subtest_args = {} if subtest_args is None else dict(subtest_args)
+ if initial_fpscr is None:
+ initial_fpscr = 0
+ self.initial_fpscr = initial_fpscr
class ALUHelpers:
bigendian=bigendian,
initial_svstate=test.svstate,
mmu=self.mmu,
- fpregfile=test.fpregs)
+ fpregfile=test.fpregs,
+ initial_fpscr=test.initial_fpscr)
# run the loop of the instructions on the current test
index = sim.pc.CIA.value//4