Uthernet II: fix case of using TFE.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
44ddf798f2
commit
94a20126b7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue