[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] linux-user/arm: Handle invalid arm-specific syscalls cor
From: |
Peter Maydell |
Subject: |
Re: [PATCH 3/4] linux-user/arm: Handle invalid arm-specific syscalls correctly |
Date: |
Tue, 21 Apr 2020 09:49:11 +0100 |
On Tue, 21 Apr 2020 at 08:42, Edgar E. Iglesias
<address@hidden> wrote:
>
> On Mon, Apr 20, 2020 at 10:22:05PM +0100, Peter Maydell wrote:
> > + if (env->thumb) {
> > + info._sifields._sigfault._addr -= 2;
> > + } else {
> > + info._sifields._sigfault._addr -= 2;
> > + }
>
>
> Am I missing some detail or are both branches of the if-else doing the
> same thing?
Oops, yes: cut-n-paste error; as Philippe says, the not-thumb branch
should be "-= 4".
thanks
-- PMM
- Re: [PATCH 1/4] linux-user/arm: BKPT should cause SIGTRAP, not be a syscall, (continued)