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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [or1k/] [except.c] - Diff between revs 437 and 450

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

Rev 437 Rev 450
Line 170... Line 170...
        /* Address translation is always disabled when starting exception. */
        /* Address translation is always disabled when starting exception. */
        mtspr(SPR_SR, mfspr(SPR_SR) & ~(SPR_SR_DME));
        mtspr(SPR_SR, mfspr(SPR_SR) & ~(SPR_SR_DME));
        mtspr(SPR_SR, mfspr(SPR_SR) & ~(SPR_SR_IME));
        mtspr(SPR_SR, mfspr(SPR_SR) & ~(SPR_SR_IME));
 
 
        mtspr(SPR_SR, mfspr(SPR_SR) | SPR_SR_SUPV);     /* SUPV mode */
        mtspr(SPR_SR, mfspr(SPR_SR) | SPR_SR_SUPV);     /* SUPV mode */
        mtspr(SPR_SR, mfspr(SPR_SR) & ~SPR_SR_EXR);     /* Disable except. */
        mtspr(SPR_SR, mfspr(SPR_SR) & ~SPR_SR_EIR);     /* Disable interrupts. */
 
 
        pc = (unsigned long)except;
        pc = (unsigned long)except;
 
 
        /* This has been removed. All exceptions (not just SYSCALL) suffer
        /* This has been removed. All exceptions (not just SYSCALL) suffer
           from the same problem. The solution is to continue just like
           from the same problem. The solution is to continue just like

powered by: WebSVN 2.1.0

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