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

aarch64_small model does not build #465

Open
zyedidia opened this issue Mar 5, 2024 · 1 comment
Open

aarch64_small model does not build #465

zyedidia opened this issue Mar 5, 2024 · 1 comment

Comments

@zyedidia
Copy link

zyedidia commented Mar 5, 2024

I tried the aarch64_small model because I'd like to test out using Sail with a small AArch64 model that is restricted to user-mode, but it doesn't appear to build with the latest version.

$ cd aarch64_small
$ make
sail -Ofast_undefined  -lem -lem_lib ArmV8_extras_embed -o armV8 prelude.sail armV8.h.sail armV8_A64_sys_regs.sail armV8_A64_special_purpose_regs.sail armV8_A32_sys_regs.sail armV8_pstate.sail armV8_lib.h.sail armV8_common_lib.sail armV8_A64_lib.sail armV8.sail ../lib/regfp.sail aarch64_regfp.sail
Warning: Deprecated prelude.sail:6.57-70:
6 |val "reg_deref" : forall ('a : Type). register('a) -> 'a effect {rreg}
  |                                                         ^-----------^
  | 
Explicit effect annotations are deprecated. They are no longer used and can be removed.

Warning: Deprecated prelude.sail:8.15-28:
8 |val _reg_deref = "reg_deref" : forall ('a : Type). register('a) -> 'a
  |               ^-----------^
  | 
All external bindings should be marked as either monadic or pure

Warning: Deprecated prelude.sail:65.4-8:
65 |val cast cast_bool_bit : bool -> bit
   |    ^--^
   | 
Cast annotations are deprecated. They will be removed in a future version of the language.

Syntax error:
armV8_A64_sys_regs.sail:179.9-9:
179 |val cast "SCTLR_EL1_type_to_SCTLR_type" : SCTLR_EL1_type -> SCTLR_type
    |         ^
    | current token: "
make: *** [Makefile:28: armV8.lem] Error 1

Thanks for any help you can provide!

@Alasdair
Copy link
Collaborator

Alasdair commented Mar 5, 2024

It's written for an older version of the language. I don't think we have any plans to update it. We have a directory for older specifications that are no-longer maintained but still have some value as a reference, I'll probably move it there.

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

2 participants