From 224e28c32bb937f5ad37a31138a5fa4cae247871 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 4 Oct 2018 17:46:55 -0700 Subject: systemc: Implement port binding policies. Change-Id: I585e34c4a666103af16ff1675701b61122822b55 Reviewed-on: https://gem5-review.googlesource.com/c/13299 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/ext/core/sc_port.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/systemc/ext') diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh index 915b11f08..aa9a322b8 100644 --- a/src/systemc/ext/core/sc_port.hh +++ b/src/systemc/ext/core/sc_port.hh @@ -112,6 +112,7 @@ class sc_port_base : public sc_object ::sc_gem5::Port *_gem5Port; virtual const char *_ifTypeName() const = 0; + virtual sc_port_policy _portPolicy() const = 0; }; template @@ -299,6 +300,8 @@ class sc_port : public sc_port_b // Disabled sc_port(const sc_port &) {} sc_port &operator = (const sc_port &) { return *this; } + + virtual sc_port_policy _portPolicy() const { return P; } }; } // namespace sc_core -- cgit v1.2.3