poke-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] pkl: Fix bit-offset of mapped integral struct


From: Mohammad-Reza Nabipoor
Subject: Re: [PATCH] pkl: Fix bit-offset of mapped integral struct
Date: Thu, 28 Jan 2021 11:29:10 +0330

Hi, Jose.

On Thu, Jan 28, 2021 at 08:28:02AM +0100, Jose E. Marchesi wrote:
> 
> > Hi, Jose.
> >
> > Fix with no test!
> > I was unable to convince DejaGNU to run my tests :(
> 
> Hm, how so?
> What are the difficulties?
> 

Last night I was too tired to notice that poke is crashing!
And the reason was the following data type:

```poke
type Foo =
  struct
  {
    uint<8> a;
    struct uint<32>
    {
      uint<16> b1;
      uint<16> b2;
    } b;
  };
```

The unammed `struct uint<32>` crashes the poke which is a known bug!
I'll send a new patch with tests :)


reply via email to

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