[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Crash with cache
Aurash wrote:
> make you cacheable range 8Mb (C_ICACHE_HIGHADDR = 0x807FFFFF)
I don't see it stated explicitly in the MB reference guide (mbref.pdf),
but experience suggests that the following conditions must both be true:
1. The CACHE_BASEADDR must be a power of two
2. The cacheable range (e.g. HIGHADDR-BASEADDR) must also be a power of two
Regards,
John
>
> Aurash
>
> arnaud.lagger@xxxxxxx wrote:
>
>> Hello everybody.
>>
>> I cannot run uClinux with Cache enabled.
>>
>> The problem is that I use 6 MB (I cannot afford to run on 4 MB) and
>> everytime I
>> boot on uClinux, it hangs or it restarts.
>>
>> Some tests with the XIL kernel showed that the cache was properly
>> working.
>>
>> The parameters in my .mhs for the cache are:
>>
>> ****
>>
>> PARAMETER C_USE_ICACHE = 1
>> PARAMETER C_ICACHE_BASEADDR = 0x80000000
>> PARAMETER C_ICACHE_HIGHADDR = 0x805FFFFF
>> PARAMETER C_CACHE_BYTE_SIZE = 16384
>> PARAMETER C_ADDR_TAG_BITS = 8
>> PARAMETER C_USE_DCACHE = 1
>> PARAMETER C_DCACHE_BASEADDR = 0x80000000
>> PARAMETER C_DCACHE_HIGHADDR = 0x805FFFFF
>> PARAMETER C_DCACHE_BYTE_SIZE = 16384
>> PARAMETER C_DCACHE_ADDR_TAG = 8
>>
>> ****
>>
>> I also tried:
>>
>> ****
>> PARAMETER C_USE_ICACHE = 1
>> PARAMETER C_ICACHE_BASEADDR = 0x80000000
>> PARAMETER C_ICACHE_HIGHADDR = 0x805FFFFF
>> PARAMETER C_CACHE_BYTE_SIZE = 8192
>> PARAMETER C_ADDR_TAG_BITS = 9
>> PARAMETER C_USE_DCACHE = 1
>> PARAMETER C_DCACHE_BASEADDR = 0x80000000
>> PARAMETER C_DCACHE_HIGHADDR = 0x805FFFFF
>> PARAMETER C_DCACHE_BYTE_SIZE = 8192
>> PARAMETER C_DCACHE_ADDR_TAG = 9
>> ****
>>
>> But it failed also.
>>
>> Any idea?
>> ___________________________
>> microblaze-uclinux mailing list
>> microblaze-uclinux@xxxxxxxxxxxxxx
>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>> Mailing List Archive :
>> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>
>>
>>
>>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
--
Dr John Williams, Research Fellow,
Embedded Systems Group / Reconfigurable Computing
School of ITEE, The University of Queensland, Brisbane, Australia
(p) +61 7 33652185 (f) +61 7 33654999 (m) +61 403969243
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/