URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [or1ksim/] [cpu/] [or1k/] [sprs.h] - Diff between revs 1350 and 1354
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1350 |
Rev 1354 |
Line 37... |
Line 37... |
/* Ugly, but fast */
|
/* Ugly, but fast */
|
/* Get a specific SPR. */
|
/* Get a specific SPR. */
|
static inline sprword
|
static inline sprword
|
mfspr_(const uint16_t regno)
|
mfspr_(const uint16_t regno)
|
{
|
{
|
extern unsigned long reg[32];
|
extern uorreg_t reg[32];
|
extern unsigned long pcprev;
|
extern oraddr_t pcprev;
|
extern sprword sprs[MAX_SPRS];
|
extern sprword sprs[MAX_SPRS];
|
|
|
switch (regno) {
|
switch (regno) {
|
case SPR_NPC:
|
case SPR_NPC:
|
return pc;
|
return pc;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.