1
0
mirror of https://git.code.sf.net/p/fuse-emulator/fuse synced 2026-01-28 14:20:54 +03:00
Commit Graph

98 Commits

Author SHA1 Message Date
Philip Kendall
18406778e9 Fix warnings.
Legacy-ID: 4603
2011-12-19 20:29:13 +00:00
Philip Kendall
bab717bfac Access the correct object.
Legacy-ID: 4602
2011-12-19 20:27:28 +00:00
Philip Kendall
570b339a36 Fix paging for 4K page size (thanks, unittests). All unit tests now pass.
Legacy-ID: 4601
2011-12-18 21:58:07 +00:00
Philip Kendall
5e22552027 Fix paging for 4K page size (thanks, unittests).
Legacy-ID: 4600
2011-12-18 21:54:28 +00:00
Philip Kendall
0818f8c568 Make Opus paging arguably even less wrong. It's still not right, though.
Legacy-ID: 4598
2011-12-17 22:01:13 +00:00
Philip Kendall
ee2586cb36 Make Opus paging less wrong.
Legacy-ID: 4597
2011-12-17 21:48:22 +00:00
Philip Kendall
8cf0f28ec3 Fix paging for 4K page size (thanks, unittests).
Legacy-ID: 4596
2011-12-17 21:24:07 +00:00
Philip Kendall
44feae9ec4 Merge in trunk up to r4594. Compiles and at least runs, but fails unit tests.
Legacy-ID: 4595
2011-12-16 22:48:45 +00:00
Philip Kendall
63deeb9bf6 Finish fixing Spectrum SE paging.
Legacy-ID: 4575
2011-11-21 19:55:16 +00:00
Philip Kendall
4fc35a3a8e A fairly brute-force removal of the almost unnecessary
memory_map_{home,dock,exrom} layer. The only thing that this makes hard is .dck
files containing a "HOME" chunk - will worry about that later.

Legacy-ID: 4571
2011-11-20 22:25:31 +00:00
Philip Kendall
ba8c866c28 Stop dumping lots of stuff to stdout.
Legacy-ID: 4552
2011-11-07 22:00:10 +00:00
Philip Kendall
0086480ef1 Merge in 2011-05-04-memory branch up to r4550.
Legacy-ID: 4551
2011-11-06 22:24:00 +00:00
Philip Kendall
224fe9332d Merge in trunk r4549.
Legacy-ID: 4550
2011-11-06 22:10:10 +00:00
Philip Kendall
f70df6a1a6 Ensure we don't acquire a lock recursively, thus avoiding deadlock (thanks,
Winston).

Legacy-ID: 4528
2011-07-08 21:13:06 +00:00
Philip Kendall
cbaa3ab2ad First bits of Win32 compatibility layer (Sergio Baldoví/Phil)
Legacy-ID: 4527
2011-07-03 20:21:43 +00:00
Sergio Baldoví
dc480baa37 Clean up Spectranet on exit.
Legacy-ID: 4526
2011-07-03 19:38:16 +00:00
Philip Kendall
13bc9332d0 Handle TCP server mode.
Legacy-ID: 4525
2011-07-03 13:22:00 +00:00
Philip Kendall
5363df12d6 Handle EOF on TCP sockets.
Legacy-ID: 4518
2011-06-30 20:47:46 +00:00
Philip Kendall
047ebcea92 Set SO_REUSEADDR on new sockets.
Legacy-ID: 4517
2011-06-30 20:28:27 +00:00
Philip Kendall
3568d7b826 Remove duplicated code when opening a new socket.
Legacy-ID: 4516
2011-06-30 20:19:36 +00:00
Philip Kendall
cb2eb22ab1 Abort connection if the bind call fails.
Legacy-ID: 4515
2011-06-30 20:02:40 +00:00
Philip Kendall
1b1b3bf6dd Check the return code from select(). Also catch the case when a socket is
closed between being added to the set and the select call, when select will
fail with EBADF (thanks, Winston).

Legacy-ID: 4514
2011-06-30 19:53:18 +00:00
Philip Kendall
1f96b98ff5 Don't need to set the sockaddr when reading from a socket.
Legacy-ID: 4513
2011-06-28 22:28:23 +00:00
Philip Kendall
c7817745e1 Reset the W5100 when the Spectranet is reset.
Legacy-ID: 4512
2011-06-28 06:14:42 +00:00
Philip Kendall
bc48ef2c0d Don't double release the lock if a bind() call fails (thanks, Sergio Baldoví).
Legacy-ID: 4511
2011-06-26 20:24:38 +00:00
Fredrick Meunier
d537377ac2 Add string.h for memset prototype and add some more verbose error logging and
bind information to help with debugging.

Legacy-ID: 4510
2011-06-23 12:12:25 +00:00
Philip Kendall
8718b46206 Store core W5100 state in snapshots.
Legacy-ID: 4509
2011-06-23 06:42:11 +00:00
Philip Kendall
7af85a8744 Implement Spectranet "paged via IO port" flag.
Legacy-ID: 4507
2011-06-22 21:22:35 +00:00
Philip Kendall
ed7f1eb6c3 Remember to implement RECV for TCP sockets (thanks, Guesser).
Legacy-ID: 4505
2011-06-22 20:50:49 +00:00
Philip Kendall
a4785dc635 Don't try and load Spectranet data from a snapshot which doesn't contain it
(thanks, Winston).

Legacy-ID: 4504
2011-06-21 21:27:55 +00:00
Philip Kendall
0f5e2ea584 Ensure that UDP datagrams which wrap around the transmit buffer are not split into two.
Legacy-ID: 4503
2011-06-21 21:13:39 +00:00
Philip Kendall
ee11518d01 Multiple datagrams should not be combined in one sendto() call (thanks,
Guesser and Chris Cowley).

Legacy-ID: 4502
2011-06-21 20:58:54 +00:00
Philip Kendall
1598de941b Don't add the UDP header to TCP data.
Legacy-ID: 4501
2011-06-21 06:03:40 +00:00
Philip Kendall
682b44a535 Implement TCP client mode.
Legacy-ID: 4500
2011-06-20 21:55:03 +00:00
Philip Kendall
b6ef3388ad Ensure all sockaddr_in structures are zeroed before use.
Legacy-ID: 4499
2011-06-20 20:51:57 +00:00
Philip Kendall
c07b261859 Bind sockets when we first attempt to use them rather than we the PORT
register is written to to prevent multiple bind attempts. Also deals with the
problem of the bytes of PORT being written to in different orders in
different bits of the Spectranet code.

Legacy-ID: 4498
2011-06-19 21:35:50 +00:00
Philip Kendall
01b015e277 Revert accidently checked in change.
Legacy-ID: 4497
2011-06-19 20:33:46 +00:00
Philip Kendall
6b0038f935 Implement "deny downstream A15" lack of support.
Legacy-ID: 4496
2011-06-19 20:32:15 +00:00
Philip Kendall
a0ea991ffc Ensure that Spectranet-side sockets are properly cleared out on reset.
Legacy-ID: 4494
2011-06-19 07:54:51 +00:00
Philip Kendall
278e892417 Ensure that socket->ok_for_io is initialised (thanks, Winston and valgrind).
Legacy-ID: 4493
2011-06-19 07:13:04 +00:00
Philip Kendall
39aeb4b2f4 Ensure that socket->fd is initialised so we don't try and close()
uninitialised values (thanks, Winston and valgrind).

Legacy-ID: 4492
2011-06-18 15:08:10 +00:00
Philip Kendall
ba4b016548 Ensure data is read into the correct space in the case of multiple reads.
Legacy-ID: 4491
2011-06-18 09:29:11 +00:00
Philip Kendall
6a7b04a541 Don't read from sockets that have no buffer space left to put the data into.
Legacy-ID: 4490
2011-06-17 21:42:03 +00:00
Philip Kendall
404c48f954 socket->old_rx_rd is updated by RECV command, not by new data becoming
available. It should be initialised, though.

Legacy-ID: 4489
2011-06-17 21:36:20 +00:00
Philip Kendall
aafe3e3363 Detecting fd changes around the select() call could miss the case of a socket
being closed and re-opened with the same fd, so move to explicit invalidation
instead.

Legacy-ID: 4488
2011-06-17 21:14:56 +00:00
Philip Kendall
23f4c9104c Don't process closed sockets (thanks, Winston).
Legacy-ID: 4487
2011-06-17 21:03:12 +00:00
Philip Kendall
01caebb7db Split W5100 socket code out into a separate file.
Legacy-ID: 4486
2011-06-17 20:53:56 +00:00
Philip Kendall
ed28767fd6 Ensure we don't read more bytes than are free in our rx buffer.
Legacy-ID: 4485
2011-06-16 21:51:30 +00:00
Philip Kendall
4e319e2bda Stop potential deadlock when freeing W5100.
Legacy-ID: 4484
2011-06-16 21:31:28 +00:00
Philip Kendall
0d6565c86f Spectranet can now make a DNS query!
Legacy-ID: 4483
2011-06-15 22:01:25 +00:00