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:09:33 CET 2005
    Subject: [openrisc] [or1ksim #46] Make the immu use the new debug functions
    Top
    Hi,

    This makes the immu use the new debug functions.

    ChangeLog:
    * Make the immu use the new debug functions.

    nog.
    -------------- next part --------------
    diff -urp --unidirectional-new-file /home/nog/or1ksim-split/support/dbchs.h ./support/dbchs.h
    --- /home/nog/or1ksim-split/support/dbchs.h 2005-03-22 18:31:28.000000000 +0100
    +++ ./support/dbchs.h 2005-03-17 18:07:52.000000000 +0100
    @@ -20,6 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridg

    /* Declatrations of all debug channels */
    DECLARE_DEBUG_CHANNEL(sched)
    +DECLARE_DEBUG_CHANNEL(immu)
    DECLARE_DEBUG_CHANNEL(dmmu)
    DECLARE_DEBUG_CHANNEL(tick)
    DECLARE_DEBUG_CHANNEL(uart)
    --- mmu/immu.c 2005-03-16 12:36:32.000000000 +0100
    +++ /home/nog/or1ksim-split/mmu/immu.c 2005-03-22 18:36:30.000000000 +0100
    @@ -36,6 +36,8 @@
    #include "sim-config.h"
    #include "debug.h"

    +DEFAULT_DEBUG_CHANNEL(immu);
    +
    extern int cont_run;

    /* Insn MMU */
    @@ -52,6 +54,8 @@
    return virtaddr;
    }

    + TRACE("IMMU enabled, checking mmu ways\n");
    +
    /* Which set to check out? */
    set = (virtaddr / config.immu.pagesize) % config.immu.nsets;
    tagaddr = (virtaddr / config.immu.pagesize) / config.immu.nsets;
    @@ -66,7 +70,7 @@
    /* Did we find our tlb entry? */
    if (way >= 0) { /* Yes, we did. */
    immu_stats.fetch_tlbhit++;
    - debug(5, "ITLB hit (virtaddr=%"PRIxADDR").\n", virtaddr);
    + TRACE("ITLB hit (virtaddr=%"PRIxADDR").\n", virtaddr);

    /* Test for page fault */
    if (mfspr (SPR_SR) & SPR_SR_SM) {
    @@ -168,7 +172,7 @@
    return(0);
    }

    - PRINTF("ERR, should never have happened\n");
    + ERR("should never have happened\n");
    return(0);
    }

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