未验证 提交 49251b07 编写于 作者: L ljw 提交者: GitHub

Merge pull request #136 from RISCVERS/log-buffer

Log buffer
......@@ -22,7 +22,7 @@
#define ANSI_COLOR_CYAN "\x1b[36m"
#define ANSI_COLOR_RESET "\x1b[0m"
#define eprintf(...) fprintf(stderr, ## __VA_ARGS__)
#define eprintf(...) fprintf(stdout, ## __VA_ARGS__)
#define demand(cond,str,...) \
do { if(!(cond)) { \
......
......@@ -15,6 +15,8 @@
#define DIFFTEST_WIDTH 6
static char mybuf[BUFSIZ];
class Emulator {
const char *image;
const char *mainargs;
......@@ -76,6 +78,8 @@ class Emulator {
// init emu
auto args = parse_args(argc, argv);
setbuf(stderr, mybuf);
// srand
srand(seed);
srand48(seed);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册