URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [or1ksim/] [cpu/] [common/] [abstract.c] - Diff between revs 1651 and 1720
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1651 |
Rev 1720 |
Line 462... |
Line 462... |
if((mem = verify_memoryarea(phys_memaddr)))
|
if((mem = verify_memoryarea(phys_memaddr)))
|
return mem->direct_ops.readfunc32(phys_memaddr & mem->size_mask,
|
return mem->direct_ops.readfunc32(phys_memaddr & mem->size_mask,
|
mem->direct_ops.read_dat32);
|
mem->direct_ops.read_dat32);
|
else
|
else
|
PRINTF("ERR: 32-bit read out of memory area: %"PRIxADDR" (physical: %"
|
PRINTF("ERR: 32-bit read out of memory area: %"PRIxADDR" (physical: %"
|
PRIxADDR"\n", memaddr, phys_memaddr);
|
PRIxADDR")\n", memaddr, phys_memaddr);
|
}
|
}
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
Line 480... |
Line 480... |
uint32_t temp;
|
uint32_t temp;
|
oraddr_t phys_memaddr;
|
oraddr_t phys_memaddr;
|
|
|
if (config.sim.mprofile)
|
if (config.sim.mprofile)
|
mprofile (memaddr, MPROF_32 | MPROF_FETCH);
|
mprofile (memaddr, MPROF_32 | MPROF_FETCH);
|
// memaddr = simulate_ic_mmu_fetch(memaddr);
|
|
|
|
phys_memaddr = memaddr;
|
phys_memaddr = memaddr;
|
#if !(DYNAMIC_EXECUTION)
|
#if !(DYNAMIC_EXECUTION)
|
phys_memaddr = immu_translate(memaddr);
|
phys_memaddr = immu_translate(memaddr);
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.