From d776a13026dc58919c5df0c9981452bea0ef3877 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Sun, 26 May 2019 23:51:28 +0100 Subject: python: Add binding for the new AddrRange c++ constructor Change-Id: I5b3fb59a11d8587a753759310dd3b2748ac13a0b Signed-off-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19132 Reviewed-by: Daniel Carvalho Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/python/pybind11/core.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/python/pybind11') diff --git a/src/python/pybind11/core.cc b/src/python/pybind11/core.cc index fad7a7daa..3523c0639 100644 --- a/src/python/pybind11/core.cc +++ b/src/python/pybind11/core.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited + * Copyright (c) 2017, 2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -45,6 +45,7 @@ */ #include "pybind11/pybind11.h" +#include "pybind11/stl.h" #include "python/pybind11/core.hh" @@ -148,6 +149,7 @@ init_range(py::module &m_native) py::class_(m, "AddrRange") .def(py::init<>()) .def(py::init()) + .def(py::init &, uint8_t>()) .def(py::init &>()) .def(py::init()) -- cgit v1.2.3