[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 3/4] target-arm: Combine user-only and softmmu get
From: |
Edgar E. Iglesias |
Subject: |
Re: [Qemu-arm] [PATCH 3/4] target-arm: Combine user-only and softmmu get/set_r13_banked() |
Date: |
Fri, 12 Feb 2016 16:16:08 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Feb 12, 2016 at 03:15:22PM +0000, Peter Maydell wrote:
> On 12 February 2016 at 15:12, Edgar E. Iglesias
> <address@hidden> wrote:
> > On Thu, Feb 11, 2016 at 07:11:48PM +0000, Peter Maydell wrote:
> >> The user-mode versions of get/set_r13_banked() exist just to assert
> >> if they're ever called -- the translate time code should never
> >> emit calls to them because SRS from user mode always UNDEF.
> >> There's no code in the softmmu versions that can't compile in
> >> CONFIG_USER_ONLY, so combine the two functions rather than
> >> having completely split versions under ifdefs.
> >>
> >> Signed-off-by: Peter Maydell <address@hidden>
> >
> > Hi Peter,
> >
> > Do we really need the assert?
> > If we keep it, can't we have it for both -user and -softmmu (avoiding the
> > ifdef)?
>
> I would be happy to entirely drop the assert, yes.
OK, thanks.
With that change:
Reviewed-by: Edgar E. Iglesias <address@hidden>
- [Qemu-arm] [PATCH 2/4] target-arm: Move get/set_r13_banked() to op_helper.c, (continued)
[Qemu-arm] [PATCH 1/4] target-arm: Clean up trap/undef handling of SRS, Peter Maydell, 2016/02/11