mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
util: Enhance flush_icache_range with separate data pointer
We are shortly going to have a split rw/rx jit buffer. Depending on the host, we need to flush the dcache at the rw data pointer and flush the icache at the rx code pointer. For now, the two passed pointers are identical, so there is no effective change in behaviour. Reviewed-by: Joelle van Dyne <j@getutm.app> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
df5d2b1658
commit
1da8de39a3
9 changed files with 51 additions and 30 deletions
|
|
@ -166,9 +166,11 @@ static void fallback_cache_info(int *isize, int *dsize)
|
|||
*isize = *dsize;
|
||||
} else {
|
||||
#if defined(_ARCH_PPC)
|
||||
/* For PPC, we're going to use the icache size computed for
|
||||
flush_icache_range. Which means that we must use the
|
||||
architecture minimum. */
|
||||
/*
|
||||
* For PPC, we're going to use the cache sizes computed for
|
||||
* flush_idcache_range. Which means that we must use the
|
||||
* architecture minimum.
|
||||
*/
|
||||
*isize = *dsize = 16;
|
||||
#else
|
||||
/* Otherwise, 64 bytes is not uncommon. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue