summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-01-23 14:06:52 +0200
committerimarom <imarom@cisco.com>2017-01-23 14:07:49 +0200
commitaee39c9dd61944b3be3c20b4e3f9ec4d57602d01 (patch)
tree46727bcb8dbc26ac64b80cee1ad7c07159890055 /src/bp_sim.h
parent193013a82048fe62319208e26fbaa4fb101a431c (diff)
enable TRex to run with --rt : real time priority for DP and RX cores
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-xsrc/bp_sim.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h
index 282e7fe4..217446ed 100755
--- a/src/bp_sim.h
+++ b/src/bp_sim.h
@@ -628,6 +628,14 @@ public:
return (btGetMaskBit32(m_flags1, 9, 9) ? true : false);
}
+ void set_rt_prio_mode(bool enable) {
+ btSetMaskBit32(m_flags1, 10, 10, (enable ? 1 : 0) );
+ }
+
+ bool get_rt_prio_mode() {
+ return (btGetMaskBit32(m_flags1, 10, 10) ? true : false);
+ }
+
public:
void Dump(FILE *fd);