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.
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:
as it contains:
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
> #include "enums/OpClass.hh"
> #include "enums/StaticInstFlags.hh"
> Where are these sources located so that I can see 'em?
> gem5-users mailing list
gem5-users mailing list