pa2.2: add ITRACE buffer

This commit is contained in:
xinyangli 2024-03-13 16:54:00 +08:00
parent d67fb1138a
commit c917083554
No known key found for this signature in database
7 changed files with 39 additions and 10 deletions

View file

@ -23,7 +23,6 @@ typedef struct Decode {
vaddr_t snpc; // static next pc
vaddr_t dnpc; // dynamic next pc
ISADecodeInfo isa;
IFDEF(CONFIG_ITRACE, char logbuf[128]);
} Decode;
// --- pattern matching mechanism ---

View file

@ -38,6 +38,7 @@
MUXDEF(CONFIG_TARGET_AM, printf(ANSI_FMT(format, ANSI_FG_RED) "\n", ## __VA_ARGS__), \
(fflush(stdout), fprintf(stderr, ANSI_FMT(format, ANSI_FG_RED) "\n", ## __VA_ARGS__))); \
IFNDEF(CONFIG_TARGET_AM, extern FILE* log_fp; fflush(log_fp)); \
IFDEF(CONFIG_ITRACE, log_itrace_print()); \
extern void assert_fail_msg(); \
assert_fail_msg(); \
assert(cond); \

View file

@ -74,4 +74,7 @@ uint64_t get_time();
} while (0)
IFDEF(CONFIG_ITRACE, void log_itrace_print());
#endif