from openpower.test.state import ExpectedState
from openpower.test.elf import compile_elf
from openpower.consts import MSR, DEFAULT_MSR
from openpower.test.state import ExpectedState
from openpower.test.elf import compile_elf
from openpower.consts import MSR, DEFAULT_MSR
class SimpleCases(TestAccumulatorBase):
def case_hello_world(self):
prog = compile_elf(SYSCALL_DEF + hello_world)
class SimpleCases(TestAccumulatorBase):
def case_hello_world(self):
prog = compile_elf(SYSCALL_DEF + hello_world)
initial_msr=DEFAULT_USER_MSR)
def case_hello_world_with_data_and_bss(self):
prog = compile_elf(SYSCALL_DEF + hello_word_data_bss)
initial_msr=DEFAULT_USER_MSR)
def case_hello_world_with_data_and_bss(self):
prog = compile_elf(SYSCALL_DEF + hello_word_data_bss)
initial_msr=DEFAULT_USER_MSR)
def case_just_exit(self):
prog = compile_elf(SYSCALL_DEF + just_exit)
initial_msr=DEFAULT_USER_MSR)
def case_just_exit(self):
prog = compile_elf(SYSCALL_DEF + just_exit)