On 11/09/2018 14:16, Richard Henderson wrote:
> On 09/10/2018 04:27 PM, Emilio G. Cota wrote:
>> @@ -173,5 +176,7 @@ static void __attribute__((constructor))
>> init_cache_info(void)
>> fallback_cache_info(&isize, &dsize);
>>
>> qemu_icache_linesize = isize;
>> +qemu_icache_linesiz
On 09/10/2018 04:27 PM, Emilio G. Cota wrote:
> @@ -173,5 +176,7 @@ static void __attribute__((constructor))
> init_cache_info(void)
> fallback_cache_info(&isize, &dsize);
>
> qemu_icache_linesize = isize;
> +qemu_icache_linesize_log = 31 - clz32(isize);
> qemu_dcache_linesize
Signed-off-by: Emilio G. Cota
---
include/qemu/osdep.h | 2 ++
util/cacheinfo.c | 5 +
2 files changed, 7 insertions(+)
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index a91068df0e..a746a5e531 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -570,6 +570,8 @@ e