fastmodel: Fix scx_get_parameter_list for ARM fastmodels.
The first non-critical piece of this CL removes the unused self from the Python function signature. Then also includes "stl.h" from pybind11 to allow the implicit conversion from std::map<std::string, std::string> to a Python dict (otherwise there will be a runtime (not compile time) error when calling the function. As the current implementation always throws an error because of the missing stl.h I don't believe anyone is using this function, and as such it should be safe to just change the signature of scx_get_parameter_list. Change-Id: Ib3202b2d4d1b8418a4adf54739fe389d4ee07743 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45622 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -77,7 +77,7 @@ def scx_get_parameter(name):
|
||||
_m5.arm_fast_model.scx_get_parameter(name, value)
|
||||
return value
|
||||
|
||||
def scx_get_parameter_list(self):
|
||||
def scx_get_parameter_list():
|
||||
return _m5.arm_fast_model.scx_get_parameter_list()
|
||||
|
||||
def scx_set_cpi_file(cpi_file_path):
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#define __PYTHON_PYBIND11_PYBIND_HH__
|
||||
|
||||
#include "pybind11/pybind11.h"
|
||||
#include "pybind11/stl.h"
|
||||
|
||||
void pybind_init_core(pybind11::module_ &m_native);
|
||||
void pybind_init_debug(pybind11::module_ &m_native);
|
||||
|
||||
Reference in New Issue
Block a user