initialize YAAM regs earl on.

This commit is contained in:
Vítor Santos Costa 2015-07-22 19:01:15 -05:00
parent 520ce938fd
commit 8dec7f6478

View File

@ -2421,6 +2421,8 @@ YAP_RunGoalOnce(Term t)
Int oldPrologMode = LOCAL_PrologMode; Int oldPrologMode = LOCAL_PrologMode;
BACKUP_MACHINE_REGS(); BACKUP_MACHINE_REGS();
Yap_InitYaamRegs( 0 );
LOCAL_PrologMode = UserMode; LOCAL_PrologMode = UserMode;
// Yap_heap_regs->yap_do_low_level_trace=true; // Yap_heap_regs->yap_do_low_level_trace=true;
out = Yap_RunTopGoal(t); out = Yap_RunTopGoal(t);