Re: [Qemu-devel] [PATCH v5 04/18] include/processor.h: define cpu_relax()

2016-05-18 Thread Sergey Fedorov
On 18/05/16 21:29, Emilio G. Cota wrote: > On Wed, May 18, 2016 at 20:47:56 +0300, Sergey Fedorov wrote: >> Why don't do like this: >> >> #if defined(__foo__) >> # define ... >> #elif defined(__bar__) >> # define ... >> #else >> # define ... >> #endif > Good point. Changed to: > > commit ad31d6c

Re: [Qemu-devel] [PATCH v5 04/18] include/processor.h: define cpu_relax()

2016-05-18 Thread Emilio G. Cota
On Wed, May 18, 2016 at 20:47:56 +0300, Sergey Fedorov wrote: > Why don't do like this: > > #if defined(__foo__) > # define ... > #elif defined(__bar__) > # define ... > #else > # define ... > #endif Good point. Changed to: commit ad31d6cff8e309e41bd4bed110f173e473c27c5a Author: Emilio G. Cot

Re: [Qemu-devel] [PATCH v5 04/18] include/processor.h: define cpu_relax()

2016-05-18 Thread Sergey Fedorov
On 14/05/16 06:34, Emilio G. Cota wrote: > Taken from the linux kernel. > > Reviewed-by: Richard Henderson > Reviewed-by: Alex Bennée > Signed-off-by: Emilio G. Cota > --- > include/qemu/processor.h | 34 ++ > 1 file changed, 34 insertions(+) > create mode 10064

[Qemu-devel] [PATCH v5 04/18] include/processor.h: define cpu_relax()

2016-05-13 Thread Emilio G. Cota
Taken from the linux kernel. Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota --- include/qemu/processor.h | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 include/qemu/processor.h diff --git a/include/qemu/proc