Skip to content

Commit

Permalink
WIP sail header
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Oct 8, 2024
1 parent bff6ba2 commit 8b5b827
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.bloop
.metals/
.ccls-cache
.vscode/
.bsp/
.idea/
Expand Down
15 changes: 15 additions & 0 deletions sail-riscv/include/sail-riscv/generated.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <sail.h>
#include <stdint.h>

typedef uint64_t mach_bits;

struct zMisa {
mach_bits zMisa_chunk_0;
};

extern struct zMisa zmisa;

// init riscv-sail model
unit zinit_model(unit);
bool zstep(sail_int);
unit ztick_clock(unit);
5 changes: 5 additions & 0 deletions sail-riscv/include/sail/generated.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Functions generated from sail

// init sail model
void model_init(void);
void model_fini(void);
1 change: 1 addition & 0 deletions sail-riscv/todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [ ] load_elf: (define in sail, replace with our impl)

0 comments on commit 8b5b827

Please sign in to comment.