mibuild/sim: use /tmp/simsocket sockaddr for server

This commit is contained in:
Florent Kermarrec 2015-03-03 22:52:28 +01:00
parent f4b060f6fe
commit 2d6fbd7902
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class PacketTooLarge(Exception):
pass pass
class VerilatorServer: class VerilatorServer:
def __init__(self, sockaddr="simsocket"): def __init__(self, sockaddr="/tmp/simsocket"):
self.sockaddr = sockaddr self.sockaddr = sockaddr
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET) self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET)
self._cleanup_file() self._cleanup_file()

View file

@ -178,7 +178,7 @@ int main(int argc, char **argv, char **env)
struct sim s; struct sim s;
sim_init(&s); sim_init(&s);
sim_connect(&s, "../../migen/mibuild/sim/simsocket"); // XXX use args sim_connect(&s, "/tmp/simsocket");
pthread_t sim_receive_thread; pthread_t sim_receive_thread;