On 27/02/26, Philippe Mathieu-Daudé wrote:
> On 27/2/26 21:35, Brian Cain wrote:
> > From: Brian Cain <[email protected]>
> > 
> > Signed-off-by: Brian Cain <[email protected]>
> > ---
> >   target/hexagon/hex_common.py | 6 +++++-
> >   1 file changed, 5 insertions(+), 1 deletion(-)
> > 
> > diff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py
> > index c0e9f26aebe..63f83a8de2a 100755
> > --- a/target/hexagon/hex_common.py
> > +++ b/target/hexagon/hex_common.py
> > @@ -247,7 +247,11 @@ def need_next_PC(tag):
> >   def need_pkt_has_multi_cof(tag):
> > -    return "A_COF" in attribdict[tag]
> > +    if "A_JUMP" in attribdict[tag] or "A_CALL" in attribdict[tag]:
> > +        if tag == "J4_hintjumpr":
> > +            return False
> > +        return True
> 
> Alternatively:
> 
>        if attribdict[tag] in ['A_JUMP', 'A_CALL']:
>            return tag != "J4_hintjumpr"

I don't think this is valid, but set intersection would work

       if attribdict[tag] & {'A_JUMP', 'A_CALL'}:
           return tag != "J4_hintjumpr"
       return False

-- 
Anton Johansson
rev.ng Labs Srl.

Reply via email to