core.cc (14047:91279ed7ec5e) | core.cc (14049:b9aea12fc52c) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2017 ARM Limited | 2 * Copyright (c) 2017, 2019 ARM Limited |
3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 29 unchanged lines hidden (view full) --- 40 * 41 * Authors: Nathan Binkert 42 * Steve Reinhardt 43 * Gabe Black 44 * Andreas Sandberg 45 */ 46 47#include "pybind11/pybind11.h" | 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 29 unchanged lines hidden (view full) --- 40 * 41 * Authors: Nathan Binkert 42 * Steve Reinhardt 43 * Gabe Black 44 * Andreas Sandberg 45 */ 46 47#include "pybind11/pybind11.h" |
48#include "pybind11/stl.h" |
|
48 49#include "python/pybind11/core.hh" 50 51#include <ctime> 52 53#include "base/addr_range.hh" 54#include "base/inet.hh" 55#include "base/logging.hh" --- 87 unchanged lines hidden (view full) --- 143static void 144init_range(py::module &m_native) 145{ 146 py::module m = m_native.def_submodule("range"); 147 148 py::class_<AddrRange>(m, "AddrRange") 149 .def(py::init<>()) 150 .def(py::init<Addr &, Addr &>()) | 49 50#include "python/pybind11/core.hh" 51 52#include <ctime> 53 54#include "base/addr_range.hh" 55#include "base/inet.hh" 56#include "base/logging.hh" --- 87 unchanged lines hidden (view full) --- 144static void 145init_range(py::module &m_native) 146{ 147 py::module m = m_native.def_submodule("range"); 148 149 py::class_<AddrRange>(m, "AddrRange") 150 .def(py::init<>()) 151 .def(py::init<Addr &, Addr &>()) |
152 .def(py::init<Addr, Addr, const std::vector<Addr> &, uint8_t>()) |
|
151 .def(py::init<const std::vector<AddrRange> &>()) 152 .def(py::init<Addr, Addr, uint8_t, uint8_t, uint8_t, uint8_t>()) 153 154 .def("__str__", &AddrRange::to_string) 155 156 .def("interleaved", &AddrRange::interleaved) 157 .def("granularity", &AddrRange::granularity) 158 .def("stripes", &AddrRange::stripes) --- 125 unchanged lines hidden --- | 153 .def(py::init<const std::vector<AddrRange> &>()) 154 .def(py::init<Addr, Addr, uint8_t, uint8_t, uint8_t, uint8_t>()) 155 156 .def("__str__", &AddrRange::to_string) 157 158 .def("interleaved", &AddrRange::interleaved) 159 .def("granularity", &AddrRange::granularity) 160 .def("stripes", &AddrRange::stripes) --- 125 unchanged lines hidden --- |