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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [pic/] [pic.c] - Diff between revs 123 and 138

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

Rev 123 Rev 138
Line 56... Line 56...
                        except_handle(EXCEPT_HPINT, 0);
                        except_handle(EXCEPT_HPINT, 0);
        } else
        } else
                if ((mfspr(SPR_SR) & (SPR_SR_EIR | SPR_SR_EXR)) == (SPR_SR_EIR | SPR_SR_EXR))
                if ((mfspr(SPR_SR) & (SPR_SR_EIR | SPR_SR_EXR)) == (SPR_SR_EIR | SPR_SR_EXR))
                        except_handle(EXCEPT_LPINT, 0);
                        except_handle(EXCEPT_LPINT, 0);
*/
*/
        if ((mfspr(SPR_SR) & (SPR_SR_EIR | SPR_SR_EXR)) == (SPR_SR_EIR | SPR_SR_EXR)) {
  if ((picsr & (SPR_SR_EIR | SPR_SR_EXR)) == (SPR_SR_EIR | SPR_SR_EXR)) {
                picsr = mfspr(SPR_PICSR);
 
                picpr = mfspr(SPR_PICPR);
 
                if (picsr & picpr) {
                if (picsr & picpr) {
                        except_handle(EXCEPT_HPINT, 0);
                        except_handle(EXCEPT_HPINT, 0);
                } else if(picsr) {
                } else if(picsr) {
                        except_handle(EXCEPT_LPINT, 0);
                        except_handle(EXCEPT_LPINT, 0);
                }
                }

powered by: WebSVN 2.1.0

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