blob: 9abe1a58fce6cc7223fa4e84c9cef2038c022fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function main () : unit -> unit = {
// initialize extensions
ext_init ();
// PC = __GetSlice_int(64, elf_entry(), 0);
PC = sail_zero_extend(0x1000, sizeof(xlen));
print_bits("PC = ", PC);
try {
init_model();
loop()
} catch {
Error_not_implemented(s) => print_string("Error: Not implemented: ", s),
Error_internal_error() => print("Error: internal error")
}
}
|