|
Message
From: =?unknown-8bit?Q?Gy=F6rgy?= 'nog' Jeney<nog@s...>
Date: Thu Mar 24 21:10:08 CET 2005
Subject: [openrisc] [or1ksim #53] Log the flag in the execution log
Hi,This logs the value of the SPR_SR_F in the execution log of instructions that read it. This was extremly usefull during debugging.
ChangeLog: * Log SPR_SR_F in the execution log.
nog. -------------- next part -------------- diff -urp --unidirectional-new-file /home/nog/or1ksim-split/cpu/or32/execute.c ./cpu/or32/execute.c --- /home/nog/or1ksim-split/cpu/or32/execute.c 2005-03-23 16:50:21.000000000 +0100 +++ ./cpu/or32/execute.c 2005-03-22 20:19:16.000000000 +0100 @@ -519,6 +519,11 @@ void dump_exe_log () break; opd++; } + if(or32_opcodes[iqueue[0].insn_index].flags & OR32_R_FLAG) { + fprintf (runtime.sim.fexe_log, "flag=%i ", + getsprbits(SPR_SR, SPR_SR_F)); + j++; + } while(j < 3) { fprintf (runtime.sim.fexe_log, " "); j++;
|
 |