cavatools: initialize repository
[cavatools.git] / caveat / fast_sim.c
1 /*
2 Copyright (c) 2020 Peter Hsu. All Rights Reserved. See LICENCE file for details.
3 */
4
5 #include <stdint.h>
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <assert.h>
9 #include <string.h>
10 #include <math.h>
11
12 #include "caveat.h"
13 #include "caveat_fp.h"
14 #include "arith.h"
15 #include "opcodes.h"
16 #include "insn.h"
17 #include "shmfifo.h"
18 #include "core.h"
19
20
21 #define trace_mem(code, a) 0
22 #define trace_bbk(code, v)
23 #define advance(sz)
24 #define restart()
25 #define on_every_insn(p)
26 #define update_regfile(rd, val)
27
28 #define amo_lock_begin
29 #define amo_lock_end
30
31
32 void fast_sim( struct core_t* cpu, long max_count )
33 {
34 assert(max_count > 0);
35 register long countdown = max_count;
36 register Addr_t PC = cpu->pc;
37
38 #include "sim_body.h"
39
40 }