LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    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
    Top
    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++;

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.