Hello, cxx_class is the C++ class name that will be created when ValuePredictorParams::create() is called (the return value of that function). Usually, it's exactly the same as the Python class name.
Again, http://learning.gem5.org/book/part2/ explains many of these details. If you think something is missing from the book, please open an issue on the book's github (https://github.com/powerjg/learning_gem5/issues). Jason On Sat, Mar 31, 2018 at 10:58 AM Pawan Joshi <pawanjoshi...@gmail.com> wrote: > Hello > What does the cxx_class variable specify in the Python class? > > For example - > class BranchPredictor(SimObject): > type = 'BranchPredictor' > *cxx_class = 'BPredUnit'* > cxx_header = "cpu/pred/bpred_unit.hh" > > > > When I use the same name for this variable that I gave to my C++ class it > give me an error! > > Here is what I have - > A Python class by name ValuePredictor > A C++ class by name VPred > Python class file being - > > class ValuePredictor(SimObject): > type = 'ValuePredictor' > cxx_class = "VPred" > cxx_header = "cpu/pred/valuepred.hh" > > The return object for my create() function is a pointer to the > ValuePredictor class, which is throwing an error saying the "ValuePredictor > does not name a type". > > > Please let me know what I am missing - > > Thanks > Pawan B Joshi > Electrical and Computer Engineering > The University of Texas-Austin > _______________________________________________ > 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