[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH 2/2] tcg/ppc*: Move cache initialization to ppc sp

From: Scott Wood
Subject: Re: [Qemu-ppc] [PATCH 2/2] tcg/ppc*: Move cache initialization to ppc specific code
Date: Tue, 4 Oct 2011 10:44:50 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2

On 10/04/2011 12:55 AM, Stefan Weil wrote:
> Am 03.10.2011 23:40, schrieb Scott Wood:
>> The interface isn't powerpc-specific. It just happens to be the only
>> arch so far that qemu supports that needs the implementation to do
>> something (or possibly just the only one where that need has been
>> discovered).
>> What problem is it causing the way it is?
> My patch was triggered by this discussion thread and a remark from
> Peter Maydell:
> http://lists.nongnu.org/archive/html/qemu-devel/2011-09/msg02272.html
> The only problem is that ppc differs from all other hosts:
> * No other host needs qemu_cache_utils_init() today.
> * All other hosts define flush_icache_range() in tcg-target.h.
> * All other hosts only call flush_icache_range() from tcg code.
> I learned now that ppc will need flush_icache_range() for kvm, too.
> So it won't be possible to implement a uniform handling of
> flush_icache_range() for all host architectures.

This doesn't smell right... why would other arches need it for TCG, but
not KVM?  Either you need to flush when writing code to memory, or you

Is it just that KVM isn't implemented yet on those architectures?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]