]> Git Repo - qemu.git/commit
target/xtensa: fix ICACHE/DCACHE options detection
authorMax Filippov <[email protected]>
Sat, 12 Nov 2016 09:15:07 +0000 (01:15 -0800)
committerMax Filippov <[email protected]>
Sun, 15 Jan 2017 21:01:56 +0000 (13:01 -0800)
commit4b37aaa879d508494df14bdc49830cdf8aa77a57
tree65b0d726aed37ae96c2bd0c5f46e12c26132b13e
parent0a362d0768c443cf9e5c36c8398c92bfebe9b8a4
target/xtensa: fix ICACHE/DCACHE options detection

Configuration overlay does not explicitly say whether there are ICACHE
and DCACHE in the core. Current code uses XCHAL_[ID]CACHE_WAYS to detect
if corresponding cache option is enabled, but that's not correct: on
cores without cache these macros are defined as 1, not as 0.
Check XCHAL_[ID]CACHE_SIZE instead.

Signed-off-by: Max Filippov <[email protected]>
target/xtensa/overlay_tool.h
This page took 0.025045 seconds and 4 git commands to generate.