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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or1k/] [sprs.c] - Diff between revs 98 and 226

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

Rev 98 Rev 226
Line 235... Line 235...
    break;
    break;
 
 
  case SPR_TTCR:
  case SPR_TTCR:
    ret = spr_read_ttcr();
    ret = spr_read_ttcr();
    break;
    break;
 
  case SPR_FPCSR:
 
    // If hard floating point is disabled - return 0
 
    if (!config.cpu.hardfloat)
 
      ret = 0;
 
    break;
  default:
  default:
    /* Links to GPRS */
    /* Links to GPRS */
    if(regno >= 0x0400 && regno < 0x0420)
    if(regno >= 0x0400 && regno < 0x0420)
      ret = cpu_state.reg[regno - 0x0400];
      ret = cpu_state.reg[regno - 0x0400];
  }
  }

powered by: WebSVN 2.1.0

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