OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1ksim/] [peripheral/] [mc.c] - Diff between revs 98 and 104

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

Rev 98 Rev 104
Line 92... Line 92...
    {
    {
      if (cur->cs == cs)
      if (cur->cs == cs)
        {
        {
          /* FIXME: No peripheral should _ever_ acess a dev_memarea structure
          /* FIXME: No peripheral should _ever_ acess a dev_memarea structure
           * directly */
           * directly */
          printf ("mem->addr_mask 0x%08lx, ba_mask 0x%08lx\n",
 
                  (unsigned long int) cur->mem->addr_mask,
 
                  (unsigned long int) mc->ba_mask);
 
 
 
          cur->mem->addr_mask = mc->ba_mask << 22;
          cur->mem->addr_mask = mc->ba_mask << 22;
          cur->mem->addr_compare =
          cur->mem->addr_compare =
            ((csc >> MC_CSC_SEL_OFFSET) /* & 0xff */ ) << 22;
            ((csc >> MC_CSC_SEL_OFFSET) /* & 0xff */ ) << 22;
          set_mem_valid (cur->mem, (csc >> MC_CSC_EN_OFFSET) & 0x01);
          set_mem_valid (cur->mem, (csc >> MC_CSC_EN_OFFSET) & 0x01);
 
 

powered by: WebSVN 2.1.0

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