David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								b81e060372 
								
							 
						 
						
							
							
								
								Add huge numbers of failing tests.  
							
							 
							
							
							
						 
						
							2018-09-10 23:40:03 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								776e93221f 
								
							 
						 
						
							
							
								
								Thinko fix.  
							
							 
							
							
							
						 
						
							2018-09-09 18:57:44 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								c769fbec93 
								
							 
						 
						
							
							
								
								Use the correct ELF processor flags; align properly.  
							
							 
							
							
							
						 
						
							2018-09-09 18:57:35 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								f3bc9ef92a 
								
							 
						 
						
							
							
								
								Call proper Linux system calls proper-like.  
							
							 
							
							
							
						 
						
							2018-09-09 18:57:12 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								ec46643124 
								
							 
						 
						
							
							
								
								Allow the ELF processor flags to be set. Generate MIPS ELF executables, not  
							
							 
							
							... 
							
							
							
							PowerPC ones. 
							
						 
						
							2018-09-09 14:29:34 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								26fe3f7530 
								
							 
						 
						
							
							
								
								Added library skeletons.  
							
							 
							
							
							
						 
						
							2018-09-05 00:07:07 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								98afb42095 
								
							 
						 
						
							
							
								
								Added a boot.o based on the PowerPC one.  
							
							 
							
							
							
						 
						
							2018-09-05 00:00:13 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								1d6ecddcf4 
								
							 
						 
						
							
							
								
								The MIPS backend is still full of holes, and cut-and-pasted PowerPC code, but  
							
							 
							
							... 
							
							
							
							is beginning to look like an actual code generator. 
							
						 
						
							2018-09-02 18:57:25 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								4741ed8e14 
								
							 
						 
						
							
							
								
								Add a completely non-tested table-based MIPS assembler.  
							
							 
							
							
							
						 
						
							2018-09-01 19:35:31 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								ab7002c0ee 
								
							 
						 
						
							
							
								
								All the Linux include directories are the same, so common them all out into a  
							
							 
							
							... 
							
							
							
							single one, like OSX. 
							
						 
						
							2018-06-24 19:57:43 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								f45b357740 
								
							 
						 
						
							
							
								
								Remove the dependency on the glibc-only byteswap.h.  
							
							 
							
							
							
						 
						
							2018-06-24 00:01:06 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								1fc20e90c0 
								
							 
						 
						
							
							
								
								Remove c99-isms.  
							
							 
							
							
							
						 
						
							2018-06-23 23:56:34 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								64ae1d7583 
								
							 
						 
						
							
							
								
								Move time() into sys; change the name of the variable which controls it.  
							
							 
							
							
							
						 
						
							2018-06-23 19:40:50 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								538eefb573 
								
							 
						 
						
							
							
								
								Get em22 working. Remove the leading-underscore system calls from its libsys.  
							
							 
							
							
							
						 
						
							2018-06-23 15:57:57 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								74d166ef9a 
								
							 
						 
						
							
							
								
								Get the pdp7 plat working; remove the leading-underscore syscalls.  
							
							 
							
							
							
						 
						
							2018-06-23 15:18:26 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								3e40374297 
								
							 
						 
						
							
							
								
								Made the rpi platform work with the new libc layout.  
							
							 
							
							
							
						 
						
							2018-06-23 13:05:27 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								dbb2062d03 
								
							 
						 
						
							
							
								
								Made pc86 work with the new libc.  
							
							 
							
							
							
						 
						
							2018-06-23 12:59:40 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								680b4071b7 
								
							 
						 
						
							
							
								
								Made the two OSX platforms work with the new libc layout.  
							
							 
							
							
							
						 
						
							2018-06-23 12:55:59 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								b727b7affd 
								
							 
						 
						
							
							
								
								Make linuxppc work.  
							
							 
							
							
							
						 
						
							2018-06-23 12:41:54 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								b267b56ad9 
								
							 
						 
						
							
							
								
								Made linux68k work; commoned up all the generic linux includes.  
							
							 
							
							
							
						 
						
							2018-06-23 12:35:17 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								66815ff987 
								
							 
						 
						
							
							
								
								Make linux386 work with the new libc layout.  
							
							 
							
							
							
						 
						
							2018-06-23 12:13:33 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								32c881474e 
								
							 
						 
						
							
							
								
								Create a basic and probably wrong common unistd.h, which replaces the plat one.  
							
							 
							
							... 
							
							
							
							Made this work with cpm (but nothing else yet). 
							
						 
						
							2018-06-23 11:46:55 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								94ffa3ba88 
								
							 
						 
						
							
							
								
								libc floating point and stdio floating point can now be turned on and off using  
							
							 
							
							... 
							
							
							
							ACKCONF variables. 
							
						 
						
							2018-06-23 00:04:14 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								9bf1d548fc 
								
							 
						 
						
							
							
								
								Rearrange the libc config files, ready for adding new options.  
							
							 
							
							
							
						 
						
							2018-06-22 23:43:15 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								60b7d8de6e 
								
							 
						 
						
							
							
								
								Merge pull request  #96  from kernigh/kernigh-emu-1  
							
							 
							
							... 
							
							
							
							Fixes to build emulators, ass, int on OpenBSD 
							
						 
						
							2018-06-20 22:30:01 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								698613cd7d 
								
							 
						 
						
							
							
								
								Turns out that the compiler needs access to the libpc headers too; refactor  
							
							 
							
							... 
							
							
							
							into a separate target to avoid build loops and make it work. 
							
						 
						
							2018-06-18 22:17:38 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								11854f4dfe 
								
							 
						 
						
							
							
								
								Ansify and warning fix.  
							
							 
							
							
							
						 
						
							2018-06-17 22:30:27 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								13e195d19f 
								
							 
						 
						
							
							
								
								Warning fixes.  
							
							 
							
							
							
						 
						
							2018-06-17 15:42:26 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								ddca7276c0 
								
							 
						 
						
							
							
								
								Merge pull request  #102  from davidgiven/dtrg-powerpc  
							
							 
							
							... 
							
							
							
							Add a PowerPC simulator for running the tests. 
							
						 
						
							2018-06-17 11:45:26 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								89e8956bb2 
								
							 
						 
						
							
							
								
								Fix edge case in rlwnm when the mask is 32 bits wide. All tests now pass.  
							
							 
							
							
							
						 
						
							2018-06-17 11:00:01 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								7ec9f54679 
								
							 
						 
						
							
							
								
								Turns out that andi and andis only have . forms. Fixed; another test passes.  
							
							 
							
							
							
						 
						
							2018-06-17 10:43:39 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								78eaf836be 
								
							 
						 
						
							
							
								
								Turns out I was returning values from syscalls in the wrong register; fixed.  
							
							 
							
							... 
							
							
							
							More tests pass. 
							
						 
						
							2018-06-17 10:22:20 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								ab660a44e9 
								
							 
						 
						
							
							
								
								Lots of floating point, bugfixes, and system calls. Most of the tests pass now.  
							
							 
							
							
							
						 
						
							2018-06-17 09:24:01 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								67efbb5f7f 
								
							 
						 
						
							
							
								
								Do a bit of floating point stuff; added brk(); fixed a horrible bug where  
							
							 
							
							... 
							
							
							
							stores with 16-bit displacements were storing the register number and not the
contents of the register. 
							
						 
						
							2018-06-16 22:55:23 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								5d7cdd2c67 
								
							 
						 
						
							
							
								
								Fix a setcr0 bug which was trashing the condition register; some system  
							
							 
							
							... 
							
							
							
							calls are now implemented. A few tests more-or-less pass (but crash on
exit). 
							
						 
						
							2018-06-16 08:35:36 +02:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								39a49265ce 
								
							 
						 
						
							
							
								
								Merge pull request  #100  from kernigh/kernigh-pdp  
							
							 
							
							... 
							
							
							
							Two fixes for ack -mpdpv7 
							
						 
						
							2018-06-15 15:40:24 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									George Koehler 
								
							 
						 
						
							
							
							
							
								
							
							
								5db312a1c0 
								
							 
						 
						
							
							
								
								Prevent crash in isatty()  
							
							 
							
							... 
							
							
							
							The existing code allocated 2 bytes (char*), but gtty() needs 6 bytes
(struct sgttyb), so isatty() smashed the stack and corrupted its
return address, probably causing SIGBUS or SIGSEGV.
Fix by switching to TIOCGETD, which needs 2 bytes.  TIOCGETD isn't in
the manual for tty(4), but does appear in
https://minnie.tuhs.org//cgi-bin/utree.pl?file=V7/usr/sys/dev/tty.c 
This fixes hilo_c.pdpv7 and hilo_mod.pdpv7 in simh-pdp11. 
							
						 
						
							2018-06-15 00:48:29 -04:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									George Koehler 
								
							 
						 
						
							
							
							
							
								
							
							
								5de5611c24 
								
							 
						 
						
							
							
								
								Use 2-byte alignment in pdpv7 to prevent SIGBUS.  
							
							 
							
							... 
							
							
							
							Change the alignment in C structs (wa, pa, sa, and so on) from 1 to 2
bytes.  This prevents the SIGBUS when PDP-11 Unix V7 catches the
misalignment.  This fixes hilo_p.pdpv7 in simh-pdp11.
Change ALIGN to document that sections have 2-byte alignment.  This
change should have no effect, because the sections only contain 2-byte
values. 
							
						 
						
							2018-06-15 00:17:12 -04:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								5111556d14 
								
							 
						 
						
							
							
								
								Got the emulator to the point where we're hitting the first major emulation bug  
							
							 
							
							... 
							
							
							
							(the calloc test hangs). 
							
						 
						
							2018-06-14 05:53:39 -07:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								853af4c4dd 
								
							 
						 
						
							
							
								
								Some code runs (up to needing setcr0).  
							
							 
							
							
							
						 
						
							2018-06-14 04:41:21 -07:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								b71145f79d 
								
							 
						 
						
							
							
								
								Implement a non-functional skeleton of the PowerPC emulator (with, hopefully,  
							
							 
							
							... 
							
							
							
							most of the instruction decode done). 
							
						 
						
							2018-06-14 03:07:36 -07:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								31c2ba3f94 
								
							 
						 
						
							
							
								
								File cleanup.  
							
							 
							
							
							
						 
						
							2018-06-13 21:47:08 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								7eaa235fd1 
								
							 
						 
						
							
							
								
								Bodge the ancient em monitor library into building as a libsys for the em22  
							
							 
							
							... 
							
							
							
							plat. It's completely untested, but it builds and makes e.out executables. 
							
						 
						
							2018-06-13 21:44:25 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								15161ebb35 
								
							 
						 
						
							
							
								
								Remember to always link the libsys and libend.  
							
							 
							
							
							
						 
						
							2018-06-13 20:57:31 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								6ae38887a7 
								
							 
						 
						
							
							
								
								It appears that the parameter to lol technically has to be word aligned; having  
							
							 
							
							... 
							
							
							
							a non-word aligned parameter is illegal (but most of the toolchain accepts it).
So, word align data structures for em22. 
							
						 
						
							2018-06-12 20:54:15 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									George Koehler 
								
							 
						 
						
							
							
							
							
								
							
							
								6f9e418f94 
								
							 
						 
						
							
							
								
								Remove extra #include <stdio.h> to fix uint  
							
							 
							
							... 
							
							
							
							From my request at https://github.com/kstenerud/Musashi/pull/31 
There was a conflict between Musahi's uint and OpenBSD's uint:
    $ cc -o m68kmake m68kmake.c
    $ ./m68kmake
    $ cc -DM68K_COMPILE_FOR_MAME=0 -c m68kcpu.c
    In file included from m68kcpu.c:565:
    In file included from /usr/include/stdio.h:46:
    /usr/include/sys/types.h:58:22: error: cannot combine with previous 'int'
          declaration specifier
    typedef unsigned int    uint;           /* Sys V compatibility */
                            ^
    ./m68kcpu.h:75:25: note: expanded from macro 'uint'
    #define uint   unsigned int
                            ^
    1 error generated. 
							
						 
						
							2018-06-10 16:24:35 -04:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									George Koehler 
								
							 
						 
						
							
							
							
							
								
							
							
								5404dace3a 
								
							 
						 
						
							
							
								
								Stop using <X11/Xfuncproto.h> from x86emu.  
							
							 
							
							... 
							
							
							
							The code included <X11/Xfuncproto.h> only for _X_ATTRIBUTE_PRINTF,
which tells some compilers to check the printf format string.  Remove
so ACK doesn't need any X11 headers.
Some machines don't have the X11 headers, or they need a flag like
-I/usr/X11R[67]/include to find them. 
							
						 
						
							2018-06-10 16:00:23 -04:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								d623440c77 
								
							 
						 
						
							
							
								
								Add the core of a simple em22 platform. Unfortunately it doesn't work; the old  
							
							 
							
							... 
							
							
							
							em libmon vanished decades ago (or never existed), and also ass appears to have
a different idea of what the em opcodes are to everything else and gets
confused. 
							
						 
						
							2018-06-10 20:25:48 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								19cd42124f 
								
							 
						 
						
							
							
								
								Rearrange the tests into sets; allow plats to skip sets; pc86 and linux68k now  
							
							 
							
							... 
							
							
							
							skip the tests which use floating point instructions (as their emulators don't
support them). 
							
						 
						
							2018-06-08 15:59:04 +09:00  
						
						
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									David Given 
								
							 
						 
						
							
							
							
							
								
							
							
								1d4ddb939d 
								
							 
						 
						
							
							
								
								Merge from trunk.  
							
							 
							
							
							
						 
						
							2018-06-08 00:05:50 +09:00