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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc3/] [or1ksim/] [peripheral/] [eth.c] - Diff between revs 1463 and 1469

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

Rev 1463 Rev 1469
Line 681... Line 681...
    if ( (addr >= ETH_BD_BASE) && (addr < ETH_BD_BASE + ETH_BD_SPACE) )
    if ( (addr >= ETH_BD_BASE) && (addr < ETH_BD_BASE + ETH_BD_SPACE) )
        return eth->regs.bd_ram[(addr - ETH_BD_BASE) / 4];
        return eth->regs.bd_ram[(addr - ETH_BD_BASE) / 4];
 
 
    PRINTF( "eth_read32( 0x%"PRIxADDR" ): Illegal address\n",
    PRINTF( "eth_read32( 0x%"PRIxADDR" ): Illegal address\n",
            addr + eth->baseaddr );
            addr + eth->baseaddr );
    runtime.sim.cont_run = 0;
 
    return 0;
    return 0;
}
}
/* ========================================================================= */
/* ========================================================================= */
 
 
 
 
Line 754... Line 753...
        return;
        return;
    }
    }
 
 
    PRINTF( "eth_write32( 0x%"PRIxADDR" ): Illegal address\n",
    PRINTF( "eth_write32( 0x%"PRIxADDR" ): Illegal address\n",
            addr + eth->baseaddr );
            addr + eth->baseaddr );
    runtime.sim.cont_run = 0;
 
    return;
    return;
}
}
/* ========================================================================= */
/* ========================================================================= */
 
 
 
 

powered by: WebSVN 2.1.0

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