summaryrefslogtreecommitdiff
path: root/src/cpu/nativetrace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/nativetrace.cc')
-rw-r--r--src/cpu/nativetrace.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cpu/nativetrace.cc b/src/cpu/nativetrace.cc
index 7152602fe..c23a9e4ad 100644
--- a/src/cpu/nativetrace.cc
+++ b/src/cpu/nativetrace.cc
@@ -50,8 +50,12 @@ using namespace TheISA;
namespace Trace {
-NativeTrace::NativeTrace(const Params *p) : InstTracer(p)
+NativeTrace::NativeTrace(const Params *p)
+ : InstTracer(p)
{
+ if (ListenSocket::allDisabled())
+ fatal("All listeners are disabled!");
+
int port = 8000;
while(!native_listener.listen(port, true))
{