Re: [gem5-users] enum header file

2018-05-11 Thread Ciro Santilli
Immediately we suspect that the file is auto-generated during build.

So we do a shell find in the output directory:

```
find . -name OpClass.hh
```

This leads us to: ./build/ARM/enums/OpClass.hh

Open the file, look for interesting unique identifiers, and git grep
that on main source.

So:

```
git grep No_OpClass
```

Too many stats.txt hits on tests, so grep them out:

```
git grep No_OpClass | grep -v stats.txt
```

Inspect about 40 hits, most are ovbiously usage instead of
definitions, but this looks promising:

```
src/cpu/FuncUnit.py
```

as it contains:

```
class OpClass(Enum):
vals = ['No_OpClass', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd',
```

ctag navigate the definition of Enum base class indicates that it gets
processed by pybind11 to generate the headers.


On Sat, May 12, 2018 at 6:27 AM, Tariq Azmy  wrote:
> Some of cpu source codes include header files that begin with enum/.. such
> as:
>
> #include "enums/OpClass.hh"
> #include "enums/StaticInstFlags.hh"
>
> Where are these sources located so that I can see 'em?
>
> Thanks
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] enum header file

2018-05-11 Thread Tariq Azmy
Some of cpu source codes include header files that begin with enum/.. such
as:

#include "enums/OpClass.hh"
#include "enums/StaticInstFlags.hh"

Where are these sources located so that I can see 'em?

Thanks
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users