[Qemu-devel] [Bug 1809144] [NEW] SVM instructions fail with SVME bit enabled

2018-12-19 Thread Paolo Montesel
Public bug reported: I was trying to use QEMU/TCG to emulate some stuff that uses SVM. I know SVM is only partially implemented but I gave it a try anyway. I found that if SVM is enabled in the same basic block in which there's a call to VMSAVE/etc, the call fails as illegal op because the flags

Re: [PATCH v3 09/12] target/hexagon: import lexer for idef-parser

2021-04-28 Thread Paolo Montesel
> > > +"fLSBNEW(P"{LOWER_PRE}"N)" { yylval->rvalue.type = PREDICATE; > > + yylval->rvalue.pre.id = yytext[9]; > > + yylval->rvalue.bit_width = 32; > > + yylval->rvalue.is_dotnew = true; > > + ret

Re: [PATCH v4 09/12] target/hexagon: import lexer for idef-parser

2021-04-28 Thread Paolo Montesel
> > > +/** > > + * Semantic record of the IMM token, identifying an immediate constant > > + */ > > +typedef struct HexImm { > > +union { > > +char id;/**< Identifier of the immediate > */ > > +uint64_t value; /**< Immediate value (for VALUE type > immediate

Re: [PATCH v4 09/12] target/hexagon: import lexer for idef-parser

2021-04-29 Thread Paolo Montesel
On Wed, Apr 28, 2021 at 5:55 PM Taylor Simpson wrote: > > > > >From: Paolo Montesel > >Sent: Wednesday, April 28, 2021 5:25 AM > >To: Taylor Simpson > >Cc: Alessandro Di Federico ; qemu-devel@nongnu.org; Brian > >Cain ; ni...@rev.ng; >phi...@re

Re: [PATCH v5 10/14] target/hexagon: import parser for idef-parser

2021-06-30 Thread Paolo Montesel
> > +void gen_setbits(Context *c, YYLTYPE *locp, HexValue *hi, HexValue *lo, > > + HexValue *dst, HexValue *val) > > +{ > > +yyassert(c, locp, hi->type == IMMEDIATE && > > + hi->imm.type == VALUE && > > + lo->type == IMMEDIATE && > > + lo->imm

Re: [PATCH v2 08/10] target/hexagon: import parser for idef-parser

2021-03-23 Thread Paolo Montesel via
Thanks for the feedback, it helped us improve the implementation quite a bit. > > +| rvalue QMARK rvalue COLON rvalue > > +{ > > +@1.last_column = @5.last_column; > > +bool is_64bit = ($3.bit_width == 64) || ($5.bit_width == 64); > > +int bit_width = (is_64bit) ? 64 : 32; > > +if (

Re: [PATCH 3/4] gitlab-ci: Build Hexagon cross-toolchain

2021-03-04 Thread Paolo Montesel via
On Thu, Mar 4, 2021 at 1:10 PM Alex Bennée wrote: > > > Philippe Mathieu-Daudé writes: > > > Add a job to build the Debian based Hexagon cross-toolchain image. > > > > This image requires a lot of compute time, too much for the common > > shared runners. To avoid having the job to timeout, it has

Re: [PATCH v2 06/10] target/hexagon: prepare input for the idef-parser

2021-03-01 Thread Paolo Montesel via
> > +/* Copy rules */ > > +#define fLSBOLD(VAL) (fGETBIT(0, VAL)) > > +#define fSATH(VAL) fSATN(16, VAL) > > +#define fSATUH(VAL) fSATUN(16, VAL) > > +#define fVSATH(VAL) fVSATN(16, VAL) > > +#define fVSATUH(VAL) fVSATUN(16, VAL) > > +#define fSATUB(VAL) fSATUN(8, VAL) > > +#define fSATB(VAL) fSATN