qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 19/20] target/arm: Rebuild hflags for M-profile.


From: Peter Maydell
Subject: Re: [PATCH v7 19/20] target/arm: Rebuild hflags for M-profile.
Date: Fri, 18 Oct 2019 15:52:14 +0100

On Fri, 18 Oct 2019 at 15:31, Richard Henderson
<address@hidden> wrote:
>
> On 10/18/19 5:25 AM, Peter Maydell wrote:
> > This seems fragile -- we have to remember to add in
> > a call to arm_rebuild_hflags() for every individual
> > case of a memory-mapped system register that we choose
> > to cache in tb flags. It doesn't seem consistent with
> > the choice for A-profile to rebuild hflags for pretty
> > much any sysreg write. Maybe it would be better to just
> > always rebuild hflags at the end of nvic_sysreg_write() ?
>
> I thought about that, but there were too many returns out of the middle.  I
> suppose a wrapper function would take care of that.

I hadn't noticed the early returns from nvic_sysreg_write().
You could just turn all the 'return MEMTX_OK's into a
goto exit_ok and have that do the update.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]