blob: 16219137c753cc29b6c40f158ed0197564768d0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "riscv_prelude.h"
#include "riscv_config.h"
unit print_string(sail_string prefix, sail_string msg)
{
printf("%s%s\n", prefix, msg);
return UNIT;
}
unit print_instr(sail_string s)
{
if (config_print_instr) printf("%s\n", s);
return UNIT;
}
unit print_reg(sail_string s)
{
if (config_print_reg) printf("%s\n", s);
return UNIT;
}
unit print_mem_access(sail_string s)
{
if (config_print_mem_access) printf("%s\n", s);
return UNIT;
}
unit print_platform(sail_string s)
{
if (config_print_platform) printf("%s\n", s);
return UNIT;
}
|