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 128 to Rev 129
    Reverse comparison

Rev 128 → Rev 129

/trunk/or1ksim/cpu/or32/execute.c
338,6 → 338,9
/* Modified by CZ 26/05/01 for new mode execution */
/* Fetch returns nonzero if instruction should NOT be executed. */
int fetch() {
struct iqueue_entry iq_entry;
char sTemp[256];
 
debug("fetch()\n");
 
/* MM: Check for breakpoint. This has to be done in fetch cycle,
355,6 → 358,20
return 0; /* We will fetch exception wrapper at new location. */
}
if(OverrideFetch(&iq_entry,sTemp))
{
iqueue[0].insn_index = iq_entry.insn_index;
strcpy(iqueue[0].op1, iq_entry.op1);
strcpy(iqueue[0].op2, iq_entry.op2);
strcpy(iqueue[0].op3, iq_entry.op3);
strcpy(iqueue[0].op4, iq_entry.op4);
iqueue[0].insn_addr = pc;
iqueue[0].dependdst = NULL;
iqueue[0].dependsrc1 = NULL;
iqueue[0].dependsrc2 = NULL;
return 0;
}
if(pc_phy > MEMORY_START + MEMORY_LEN)
pc_phy %= MEMORY_START + MEMORY_LEN;
 

powered by: WebSVN 2.1.0

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