python: Add binding for the new AddrRange c++ constructor

Change-Id: I5b3fb59a11d8587a753759310dd3b2748ac13a0b
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19132
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Nikos Nikoleris
2019-05-26 23:51:28 +01:00
parent c3d5e56dde
commit d776a13026
2 changed files with 46 additions and 25 deletions

View File

@@ -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_<AddrRange>(m, "AddrRange")
.def(py::init<>())
.def(py::init<Addr &, Addr &>())
.def(py::init<Addr, Addr, const std::vector<Addr> &, uint8_t>())
.def(py::init<const std::vector<AddrRange> &>())
.def(py::init<Addr, Addr, uint8_t, uint8_t, uint8_t, uint8_t>())