qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v6 08/12] target/hexagon: import lexer for idef-parser


From: Anton Johansson
Subject: Re: [PATCH v6 08/12] target/hexagon: import lexer for idef-parser
Date: Mon, 18 Oct 2021 11:37:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

On 9/7/21 18:08, Taylor Simpson wrote:

+"fNEWREG"                |
+"fCAST4s"                { yylval->cast.bit_width = 32;
+                           yylval->cast.signedness = SIGNED;
+                           return CAST; }
This doesn't look right - is fNEWREG the same as fCAST4s?

We followed the definition of fNEWREG in macros.h where it is given as

  #define fNEWREG(VAL) ((uint32_t) (VAL))

+"fCONSTLL"               { return CONSTLL; }
+"fCONSTULL"              { return CONSTULL; }
These can just be converts.

What is meant by "converts" here?

+"fHINTJR(RsV)"           { /* Emit no token */ }
Put this in the list of IDENTITY above
Same as for fNEWREG. We followed the definition in macros.h as

  #define fHINTJR(TARGET) { /* Not modelled in qemu */ }

where it no-ops.
-- 
Anton Johansson,
rev.ng Srls.

reply via email to

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