[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/11] target/sh4: Handle user-space atomics
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH 03/11] target/sh4: Handle user-space atomics |
Date: |
Thu, 6 Jul 2017 17:50:51 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On 2017-07-05 14:23, Richard Henderson wrote:
> For uniprocessors, SH4 uses optimistic restartable atomic sequences.
> Upon an interrupt, a real kernel would simply notice magic values in
> the registers and reset the PC to the start of the sequence.
>
> For QEMU, we cannot do this in quite the same way. Instead, we notice
> the normal start of such a sequence (mov #-x,r15), and start a new TB
> that can be executed under cpu_exec_step_atomic.
>
> Reported-by: Bruno Haible <address@hidden>
> LP: https://bugs.launchpad.net/bugs/1701971
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> target/sh4/cpu.h | 21 ++++++--
> target/sh4/helper.h | 1 +
> target/sh4/op_helper.c | 6 +++
> target/sh4/translate.c | 137
> +++++++++++++++++++++++++++++++++++++++++++------
> 4 files changed, 147 insertions(+), 18 deletions(-)
I haven't reviewed this patch in details, but note that it breaks
booting a system under qemu-system.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
address@hidden http://www.aurel32.net
- [Qemu-devel] [PATCH 00/11] target/sh4 improvments, Richard Henderson, 2017/07/05
- [Qemu-devel] [PATCH 01/11] target/sh4: Use cmpxchg for movco, Richard Henderson, 2017/07/05
- [Qemu-devel] [PATCH 02/11] target/sh4: Consolidate end-of-TB tests, Richard Henderson, 2017/07/05
- [Qemu-devel] [PATCH 03/11] target/sh4: Handle user-space atomics, Richard Henderson, 2017/07/05
- Re: [Qemu-devel] [PATCH 03/11] target/sh4: Handle user-space atomics,
Aurelien Jarno <=
- [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, Richard Henderson, 2017/07/05
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, Laurent Vivier, 2017/07/05
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, John Paul Adrian Glaubitz, 2017/07/06
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, Laurent Vivier, 2017/07/06
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, John Paul Adrian Glaubitz, 2017/07/06
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, John Paul Adrian Glaubitz, 2017/07/06
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, Laurent Vivier, 2017/07/06
- Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, John Paul Adrian Glaubitz, 2017/07/06
Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery, Laurent Vivier, 2017/07/06
[Qemu-devel] [PATCH 04/11] target/sh4: Recognize common gUSA sequences, Richard Henderson, 2017/07/05