URL
https://opencores.org/ocsvn/aemb/aemb/trunk
[/] [aemb/] [trunk/] [sw/] [cc/] [aemb/] [msr.hh] - Diff between revs 121 and 137
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 121 |
Rev 137 |
Line 1... |
Line 1... |
/* $Id: msr.hh,v 1.5 2008-04-20 16:35:53 sybreon Exp $
|
/* $Id: msr.hh,v 1.6 2008-04-26 18:05:22 sybreon Exp $
|
**
|
**
|
** AEMB2 HI-PERFORMANCE CPU
|
** AEMB2 HI-PERFORMANCE CPU
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap
|
**
|
**
|
** This file is part of AEMB.
|
** This file is part of AEMB.
|
Line 28... |
Line 28... |
*/
|
*/
|
|
|
#ifndef AEMB_MSR_HH
|
#ifndef AEMB_MSR_HH
|
#define AEMB_MSR_HH
|
#define AEMB_MSR_HH
|
|
|
#ifdef __cplusplus
|
|
namespace aemb {
|
namespace aemb {
|
#endif
|
|
|
|
const int MSR_BE = 0x00000001; ///< Buslock Enable
|
const int MSR_BE = 0x00000001; ///< Buslock Enable
|
const int MSR_IE = 0x00000002; ///< Interrupt Enable
|
const int MSR_IE = 0x00000002; ///< Interrupt Enable
|
const int MSR_C = 0x00000004; ///< Arithmetic Carry
|
const int MSR_C = 0x00000004; ///< Arithmetic Carry
|
const int MSR_BIP = 0x00000008; ///< Break in Progress
|
const int MSR_BIP = 0x00000008; ///< Break in Progress
|
Line 130... |
Line 128... |
inline void disableInstCache()
|
inline void disableInstCache()
|
{
|
{
|
putMSR(getMSR() & ~MSR_ICE);
|
putMSR(getMSR() & ~MSR_ICE);
|
}
|
}
|
|
|
#ifdef __cplusplus
|
|
}
|
}
|
#endif
|
|
|
|
#endif
|
#endif
|
|
|
/*
|
/*
|
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
|
Revision 1.5 2008/04/20 16:35:53 sybreon
|
|
Added C/C++ compatible #ifdef statements
|
|
|
Revision 1.4 2008/04/11 15:53:03 sybreon
|
Revision 1.4 2008/04/11 15:53:03 sybreon
|
changed MSR bits
|
changed MSR bits
|
|
|
Revision 1.3 2008/04/11 12:24:12 sybreon
|
Revision 1.3 2008/04/11 12:24:12 sybreon
|
added cache controls
|
added cache controls
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.