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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_44/] [or1ksim/] [cpu/] [dlx/] [execute.c] - Diff between revs 123 and 393

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

Rev 123 Rev 393
Line 70... Line 70...
        regno = atoi(regstr + 1);
        regno = atoi(regstr + 1);
 
 
        if (regno < MAX_GPRS)
        if (regno < MAX_GPRS)
                return reg[regno];
                return reg[regno];
        else {
        else {
                printf("\nEXCEPTION: read out of registers\n");
                printf("\nABORT: read out of registers\n");
                cont_run = 0;
                cont_run = 0;
                return 0;
                return 0;
        }
        }
}
}
 
 
Line 91... Line 91...
                value = 0;
                value = 0;
 
 
        if (regno < MAX_GPRS)
        if (regno < MAX_GPRS)
                reg[regno] = value;
                reg[regno] = value;
        else {
        else {
                printf("\nEXCEPTION: write out of registers\n");
                printf("\nABORT: write out of registers\n");
                cont_run = 0;
                cont_run = 0;
        }
        }
 
 
        return;
        return;
}
}
Line 640... Line 640...
 
 
                stackaddr = eval_reg(FRAME_REG);
                stackaddr = eval_reg(FRAME_REG);
                simprintf(stackaddr, 0);
                simprintf(stackaddr, 0);
                /* printf("simprintf %x %x %x\n", stackaddr, fmtaddr, args); */
                /* printf("simprintf %x %x %x\n", stackaddr, fmtaddr, args); */
        } else {
        } else {
                printf("\nEXCEPTION: illegal opcode %s ", cur->insn);
                printf("\nABORT: illegal opcode %s ", cur->insn);
                printf("at %.8lx\n", cur->insn_addr);
                printf("at %.8lx\n", cur->insn_addr);
                cont_run = 0;
                cont_run = 0;
        }
        }
 
 
        /* Dynamic, dependency stats. */
        /* Dynamic, dependency stats. */

powered by: WebSVN 2.1.0

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