OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1415 to Rev 1416
    Reverse comparison

Rev 1415 → Rev 1416

/trunk/or1ksim/mmu/immu.c
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);
}
 
/trunk/or1ksim/support/dbchs.h
20,6 → 20,7
 
/* 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)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.