> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux 20:46:44 up 6:22, 2 users, load average: 0.45, 0.42, 0.45
This commit is contained in:
parent
3a604683b0
commit
3d280fbe0b
3 changed files with 85 additions and 70 deletions
|
@ -31,6 +31,7 @@ static uint64_t g_timer = 0; // unit: us
|
|||
static bool g_print_step = false;
|
||||
|
||||
void device_update();
|
||||
void wp_eval_all();
|
||||
|
||||
static void trace_and_difftest(Decode *_this, vaddr_t dnpc) {
|
||||
#ifdef CONFIG_ITRACE_COND
|
||||
|
@ -113,6 +114,8 @@ void cpu_exec(uint64_t n) {
|
|||
uint64_t timer_end = get_time();
|
||||
g_timer += timer_end - timer_start;
|
||||
|
||||
wp_eval_all();
|
||||
|
||||
switch (nemu_state.state) {
|
||||
case NEMU_RUNNING: nemu_state.state = NEMU_STOP; break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue