Uthernet II: fix case of using TFE.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2021-05-08 18:30:55 +01:00
parent 44ddf798f2
commit 94a20126b7

View file

@ -23,6 +23,7 @@
#include "linux/network/slirp2.h"
#else
#include "linux/network/tfe2.h"
#include "Tfe/tfe.h"
#endif
#include "Memory.h"
@ -1071,6 +1072,8 @@ void registerUthernet2()
#ifdef U2_USE_SLIRP
slirp.reset();
slirp = std::make_shared<SlirpNet>();
#else
tfe_init();
#endif
initialise();
RegisterIoHandler(SLOT3, u2_C0, u2_C0, nullptr, nullptr, nullptr, nullptr);