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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc2/] [or1ksim/] [cpu/] [or32/] [op-mftspr-op.h] - Diff between revs 1748 and 1751

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

Rev 1748 Rev 1751
Line 22... Line 22...
 
 
/* This program is commented throughout in a fashion suitable for processing
/* This program is commented throughout in a fashion suitable for processing
   with Doxygen. */
   with Doxygen. */
 
 
 
 
#ifndef OP_MFTSPR_OP__H
 
#define OP_MFTSPR_OP__H
 
 
 
 
 
#ifdef OP_2T
#ifdef OP_2T
__or_dynop void glue (op_mfspr, T) (void)
__or_dynop void glue (op_mfspr, T) (void)
{
{
  /* FIXME: NPC/PPC Handling is br0ke */
  /* FIXME: NPC/PPC Handling is br0ke */
  if (env->sprs[SPR_SR] & SPR_SR_SM)
  if (env->sprs[SPR_SR] & SPR_SR_SM)
Line 77... Line 73...
{
{
  /* FIXME: NPC handling DOES NOT WORK like this */
  /* FIXME: NPC handling DOES NOT WORK like this */
  if (env->sprs[SPR_SR] & SPR_SR_SM)
  if (env->sprs[SPR_SR] & SPR_SR_SM)
    mtspr (OP_PARAM1, 0);
    mtspr (OP_PARAM1, 0);
}
}
#endif /* OP_MFTSPR_OP__H */
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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