cornell-brg / pydgin

A (Py)thon (D)SL for (G)enerating (In)struction set simulators.
BSD 3-Clause "New" or "Revised" License
165 stars 29 forks source link

write syscall doesn't work on translated pisa-sim #1

Closed berkinilbeyi closed 10 years ago

berkinilbeyi commented 10 years ago

Works fine interpreted:

% pypy pisa-sim.py /work/bits0/dml257/maven-app-misc/build-maven/ubmark-vvadd --help

fails for translated (jit or nojit):

% ./pisa-sim-nojit /work/bits0/dml257/maven-app-misc/build-maven/ubmark-vvadd --help
WARNING: mtuts implemented as noop!
WARNING: xloop implemented as noop!
WARNING: mtuts implemented as noop!
RPython traceback:
  File "implement.c", line 135, in entry_point
  File "implement.c", line 4721, in run
  File "implement.c", line 13164, in execute_syscall
  File "implement.c", line 23957, in syscall_write
  File "rpython_rtyper_module_ll_os.c", line 237, in ll_os_ll_os_write
Fatal RPython error: OSError
Aborted