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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [or1200/] [sim/] [or1200-dctest.c] - Diff between revs 393 and 425

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

Rev 393 Rev 425
Line 27... Line 27...
int
int
main()
main()
{
{
 
 
  // Check data cache is present and enabled
  // Check data cache is present and enabled
  if (!(mfspr(SPR_UPR)& SPR_UPR_DCP))
  if (!(mfspr(SPR_UPR)& SPR_UPR_DCP) | !(mfspr(SPR_SR) & SPR_SR_DCE))
    return 0x8000000d;
    {
 
      // Not really a pass, but not really a fail, either.
  if (!(mfspr(SPR_SR) & SPR_SR_DCE))
      report(0x8000000d);
    return 0x8000000d;
      return 0;
 
    }
 
 
  volatile char* ptr = (volatile char*) 0xe00000;
  volatile char* ptr = (volatile char*) 0xe00000;
  int i;
  int i;
 
 
  ptr[0] = 0xab;
  ptr[0] = 0xab;
Line 148... Line 149...
        }
        }
    }
    }
 
 
  report(next_rand());
  report(next_rand());
 
 
  return 0x8000000d;
  report(0x8000000d);
 
 
 
  exit(0);
}
}
 
 
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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