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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [cpu.c] - Diff between revs 180 and 182

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

Rev 180 Rev 182
Line 290... Line 290...
    return;
    return;
  }
  }
  if ((psw & PSW_PRIO_MASK) >> 16 == 21 &&
  if ((psw & PSW_PRIO_MASK) >> 16 == 21 &&
      (mmuGetEntryHi() & 0x80000000) == 0) {
      (mmuGetEntryHi() & 0x80000000) == 0) {
    /* TLB user miss */
    /* TLB user miss */
    if (umsrPtr == 0x00000000) {
 
      printf("unexpected TLB user miss exception occurred\n");
      printf("unexpected TLB user miss exception occurred\n");
      return;
      return;
    }
 
    pc = umsrPtr;
 
  } else {
  } else {
    /* any other exception */
    /* any other exception */
    if (isrPtr == 0x00000000) {
 
      printf("unexpected %s occurred\n",
      printf("unexpected %s occurred\n",
             exceptionToString((psw & PSW_PRIO_MASK) >> 16));
             exceptionToString((psw & PSW_PRIO_MASK) >> 16));
      return;
      return;
    }
    }
    pc = isrPtr;
 
  }
 
}
}
 
 
 
 
void cpuRun(void) {
void cpuRun(void) {
  Word instr;
  Word instr;
Line 357... Line 351...
      return;
      return;
    }
    }
    if ((psw & PSW_PRIO_MASK) >> 16 == 21 &&
    if ((psw & PSW_PRIO_MASK) >> 16 == 21 &&
        (mmuGetEntryHi() & 0x80000000) == 0) {
        (mmuGetEntryHi() & 0x80000000) == 0) {
      /* TLB user miss */
      /* TLB user miss */
      if (umsrPtr == 0x00000000) {
 
        printf("unexpected TLB user miss exception occurred\n");
        printf("unexpected TLB user miss exception occurred\n");
        return;
        return;
      }
 
      pc = umsrPtr;
 
    } else {
    } else {
      /* any other exception */
      /* any other exception */
      if (isrPtr == 0x00000000) {
 
        printf("unexpected %s occurred\n",
        printf("unexpected %s occurred\n",
               exceptionToString((psw & PSW_PRIO_MASK) >> 16));
               exceptionToString((psw & PSW_PRIO_MASK) >> 16));
        return;
        return;
      }
      }
      pc = isrPtr;
 
    }
 
  }
  }
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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