Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing various Sail primitives #61

Open
cfbolz opened this issue Aug 16, 2023 · 2 comments
Open

Missing various Sail primitives #61

cfbolz opened this issue Aug 16, 2023 · 2 comments

Comments

@cfbolz
Copy link
Collaborator

cfbolz commented Aug 16, 2023

The ARM model contains calls to a number of extra primitives that we don't implement yet:

arith_shiftr: (%bv, %i) ->  %bv
set_slice_int: (%i, %i, %i, %bv) ->  %i

undefined_int: (%unit) ->  %i
undefined_range: (%i, %i) ->  %i

prerr_int: (%string, %i) ->  %unit
sail_putchar: (%i) ->  %unit

you can look at the C code in Sail what they are supposed to do.

The implementations go into pydrofoil/supportcode.py, pydrofoil/bitvector.py and the tests into pydrofoil/test/test_supportcode.py.

cfbolz added a commit that referenced this issue Aug 24, 2023
@cfbolz cfbolz added this to the Booting Linux on Arm milestone Aug 24, 2023
cfbolz added a commit that referenced this issue Aug 24, 2023
@cfbolz
Copy link
Collaborator Author

cfbolz commented Aug 24, 2023

I have just done sail_putchar

@cfbolz
Copy link
Collaborator Author

cfbolz commented Aug 24, 2023

also arith_shiftr

cfbolz added a commit that referenced this issue Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant