On 26 November 2013 12:51, Walsh, Benjamin wrote:
> I was looking at using WFE on QEMU, found that it is
> implemented as a NOP, googled and I found this thread.
>
> I am not using this for SMP, simply to implement sleep, so the busy
> loop is conceptually OK. Except, of course, that QEMU floors t
Hello Sebastian,
I was looking at using WFE on QEMU, found that it is implemented as a NOP,
googled and I found this thread.
I am not using this for SMP, simply to implement sleep, so the busy loop is
conceptually OK. Except, of course, that QEMU floors the host CPU at 100% in
the idle loop.
Hello Peter,
thanks for your suggestions. I will look at the WFI support and may send a
patch for the SEV/WFE, but this will take some weeks.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-0
On 6 June 2013 15:34, Sebastian Huber
wrote:
> I want to use Qemu to test some SMP code. For this I set up Qemu to fire up
> two Cortex-A9 MPCore CPUs. I have the following ticket lock implementation:
QEMU is not a very good choice for this sort of testing,
because we do not implement any of:
Hello,
I want to use Qemu to test some SMP code. For this I set up Qemu to fire up
two Cortex-A9 MPCore CPUs. I have the following ticket lock implementation:
static inline void _ARM_Data_memory_barrier( void )
{
__asm__ volatile ( "dmb" : : : "memory" );
}
static inline void _ARM_Data_sy