URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 805 |
Rev 884 |
Line 25... |
Line 25... |
#include "arch.h"
|
#include "arch.h"
|
#include "sprs.h"
|
#include "sprs.h"
|
#include "abstract.h"
|
#include "abstract.h"
|
#include "sim-config.h"
|
#include "sim-config.h"
|
|
|
extern int cont_run; /* defined in toplevel.c */
|
|
extern int flag;
|
extern int flag;
|
|
|
sprword sprs[MAX_SPRS];
|
sprword sprs[MAX_SPRS];
|
|
|
int audio_cnt = 0;
|
int audio_cnt = 0;
|
Line 90... |
Line 89... |
audio_cnt++;
|
audio_cnt++;
|
break;
|
break;
|
case 0xFFFF:
|
case 0xFFFF:
|
fclose(fo);
|
fclose(fo);
|
printf("Audio closed.\n");
|
printf("Audio closed.\n");
|
cont_run = 0;
|
runtime.sim.cont_run = 0;
|
break;
|
break;
|
case SPR_PMR:
|
case SPR_PMR:
|
/* PMR[SDF] and PMR[DCGE] are ignored completely. */
|
/* PMR[SDF] and PMR[DCGE] are ignored completely. */
|
if (value & SPR_PMR_SUME) {
|
if (value & SPR_PMR_SUME) {
|
printf ("SUSPEND: PMR[SUME] bit was set.\n");
|
printf ("SUSPEND: PMR[SUME] bit was set.\n");
|
cont_run = 0;
|
runtime.sim.cont_run = 0;
|
}
|
}
|
break;
|
break;
|
default:
|
default:
|
/* Links to GPRS */
|
/* Links to GPRS */
|
if(regno >= 0x0400 && regno < 0x0420) {
|
if(regno >= 0x0400 && regno < 0x0420) {
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.