nativetrace.cc (4830:aad1410a2b79) | nativetrace.cc (5038:c996bb7f1a6d) |
---|---|
1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 36 unchanged lines hidden (view full) --- 45//XXX This is temporary 46#include "arch/isa_specific.hh" 47 48using namespace std; 49using namespace TheISA; 50 51namespace Trace { 52 | 1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 36 unchanged lines hidden (view full) --- 45//XXX This is temporary 46#include "arch/isa_specific.hh" 47 48using namespace std; 49using namespace TheISA; 50 51namespace Trace { 52 |
53NativeTrace::NativeTrace(const std::string & _name) : InstTracer(_name) | 53NativeTrace::NativeTrace(const Params *p) : InstTracer(p) |
54{ 55 int port = 8000; 56 while(!native_listener.listen(port, true)) 57 { 58 DPRINTF(GDBMisc, "Can't bind port %d\n", port); 59 port++; 60 } 61 ccprintf(cerr, "Listening for native process on port %d\n", port); --- 120 unchanged lines hidden (view full) --- 182 183//////////////////////////////////////////////////////////////////////// 184// 185// ExeTracer Simulation Object 186// 187Trace::NativeTrace * 188NativeTraceParams::create() 189{ | 54{ 55 int port = 8000; 56 while(!native_listener.listen(port, true)) 57 { 58 DPRINTF(GDBMisc, "Can't bind port %d\n", port); 59 port++; 60 } 61 ccprintf(cerr, "Listening for native process on port %d\n", port); --- 120 unchanged lines hidden (view full) --- 182 183//////////////////////////////////////////////////////////////////////// 184// 185// ExeTracer Simulation Object 186// 187Trace::NativeTrace * 188NativeTraceParams::create() 189{ |
190 return new Trace::NativeTrace(name); | 190 return new Trace::NativeTrace(this); |
191}; | 191}; |