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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_34/] [or1ksim/] [cache/] [icache_model.c] - Diff between revs 167 and 261

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 167 Rev 261
Line 152... Line 152...
        if ((way >= 0) && (getsprbits(SPR_ICCR, SPR_ICCR_EW) & (1 << way))) { /* Yes, we did. */
        if ((way >= 0) && (getsprbits(SPR_ICCR, SPR_ICCR_EW) & (1 << way))) { /* Yes, we did. */
                ic[set].way[way].tagaddr = -1;
                ic[set].way[way].tagaddr = -1;
        }
        }
}
}
 
 
void ic_clock()
inline void ic_clock()
{
{
        unsigned long addr;
        unsigned long addr;
 
 
        if (addr = mfspr(SPR_ICBPR)) {
        if (addr = mfspr(SPR_ICBPR)) {
                ic_simulate_fetch(addr);
                ic_simulate_fetch(addr);

powered by: WebSVN 2.1.0

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