URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1432 |
Rev 1508 |
Line 37... |
Line 37... |
#include "pm.h"
|
#include "pm.h"
|
#include "opcode/or32.h"
|
#include "opcode/or32.h"
|
#include "spr_defs.h"
|
#include "spr_defs.h"
|
#include "execute.h"
|
#include "execute.h"
|
#include "sprs.h"
|
#include "sprs.h"
|
|
#include "sim-config.h"
|
extern int cont_run;
|
|
|
|
/* Reset. It initializes PMR register. */
|
/* Reset. It initializes PMR register. */
|
void pm_reset()
|
void pm_reset(void)
|
{
|
{
|
if (config.sim.verbose) PRINTF("Resetting Power Management.\n");
|
if (config.sim.verbose) PRINTF("Resetting Power Management.\n");
|
mtspr(SPR_PMR, 0);
|
cpu_state.sprs[SPR_PMR] = 0;
|
}
|
}
|
|
|
/*-----------------------------------------------------[ PM Configuration ]---*/
|
/*-----------------------------------------------------[ PM Configuration ]---*/
|
void pm_enabled(union param_val val, void *dat)
|
void pm_enabled(union param_val val, void *dat)
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.