This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/TODO

Parent Directory Parent Directory | Revision Log Revision Log

Revision 4 - (hide annotations)
Mon Oct 8 16:18:00 2007 UTC (13 years, 3 months ago) by dpavlin
File size: 8876 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.707 2005/04/27 16:37:33 debug Exp $
20050408	Some minor updates to the wdc. Linux now doesn't complain
		anymore if a disk is non-present.
20050409	Various minor fixes (a bintrans bug, and some other things).
		The wdc seems to work with Playstation2 emulation, but there
		is a _long_ annoying delay when disks are detected.
		Fixing a really important bintrans bug (when devices and RAM
		are mixed within 4KB pages), which was triggered with
		NetBSD/playstation2 kernels.
20050410	Adding a dummy dev_ps2_ether (just so that NetBSD doesn't
		complain as much during bootup).
		Symbols starting with '$' are now ignored.
		Renaming dev_ps2_ohci.c to dev_ohci.c, etc.
20050411	Moving the bintrans-cache-isolation check from cpu_mips.c to
		cpu_mips_coproc.c. (I thought this would give a speedup, but
		it's not noticable.)
		Better playstation2 sbus interrupt code.
		Skip ahead many ticks if the count register is read manually.
		(This increases the speed of delay-loops that simply read
		the count register.)
20050412	Updates to the playstation2 timer/interrupt code.
		Some other minor updates.
20050413	NetBSD/cobalt runs from a disk image :-) including userland;
		updating the documentation on how to install NetBSD/cobalt
		using NetBSD/pmax (!).
		Some minor bintrans updates (no real speed improvement) and
		other minor updates (playstation2 now uses the -o options).
20050414	Adding a dummy x86 (and AMD64) mode.
20050415	Adding some (32-bit and 16-bit) x86 instructions.
		Adding some initial support for non-SCSI, non-IDE floppy
		images. (The x86 mode can boot from these, more or less.)
		Moving the devices/ and include/ directories to src/devices/
		and src/include/, respectively.
20050416	Continuing on the x86 stuff. (Adding pc_bios.c and some simple
		support for software interrupts in 16-bit mode.)
20050417	Ripping out most of the x86 instruction decoding stuff, trying
		to rewrite it in a cleaner way.
		Disabling some of the least working CPU families in the
		configure script (sparc, x86, alpha, hppa), so that they are
		not enabled by default.
20050418	Trying to fix the bug which caused problems when turning on
		and off bintrans interactively, by flushing the bintrans cache
		whenever bintrans is manually (re)enabled.
20050419	Adding the 'lswi' ppc instruction.
		Minor updates to the x86 instruction decoding.
20050420	Renaming x86 register name indices from R_xx to X86_R_xx (this
		makes building on Tru64 nicer).
20050422	Adding a check for duplicate MIPS TLB entries on tlbwr/tlbwi.
20050427	Adding screenshots to guestoses.html.
		Some minor fixes and testing for the next release.

==============  RELEASE 0.3.2  ==============

1 dpavlin 4 $Id: TODO,v 1.127 2005/04/15 21:39:54 debug Exp $
2 dpavlin 2
3     Here's a short list of what I have left to do on GXemul. This file is a mess.
4     Order is random. Don't trust it to be up-to-date.
7     Caches / memory hierarchies: (this is mostly MIPS-specific)
8     o) MIPS coproc.c: bits in config registers should reflect
9     correct cache sizes for _all_ CPU types. (currently only
10     implemented for R4000, R1x000, and a few others)
11     o) src/memory*.c: Implement correct cache emulation for
12     all CPU types. (currently only R2000/R3000 is implemented)
13     (per CPU, multiple levels should be possible,
14     associativity etc!)
15     o) R2000/R3000 isn't _100%_ correct, just almost correct :)
16     o) Move the -S (fill mem with random) functionality into the
17     memory.c subsystem, not machine.c or wherever it is now
18     o) ECC stuff, simulation of memory errors? (Machine dependant)
19     o) More than 4GB of emulated RAM, when run on a 32-bit host?
20     (using manual swap-out of blocks to disk, ugly)
21     o) A global command line option should be used to turn
22     cache emulation on or off. When off, caches should be
23     faked like they are right now. When on, caches and
24     memory latencies should be emulated as correctly as
25     possible.
27     Network layer:
28     o) Multiple networks per emulation, and let different
29     NICs in machines connect to different networks.
30     o) Network across multiple hosts.
31     o) Fixed MAC addresses for NICs, fixed IPv4 addresses if
32     DHCP or RARP is used.
33     o) many other issues: see src/net.c
35     Configure script:
36     o) Only enable Alpha prefetch on pca56 etc, not on ev4, ev5.
37     o) Use getopts?
38     o) X11 libs and headers via command line option?
39     o) Verify that the configure script, building and running
40     the emulator works on some platforms:
41     +) Irix, AIX, QNX
42     +) MacOS X (I've not tried this personally yet)
43     +) Ultrix using gcc? (Inside the emulator)
45     CPU emulation:
46     o) Binary translation:
47     +) use an Intermediate Representation!
48     +) recursive translation?
49     +) basic blocks instead of one-instruction? :)
50     +) on Alpha: don't assume pca56-like byte load/store?
51     +) write backends for UltraSparc and MIPS
52     +) see src/bintrans.c for more info
53 dpavlin 4 o) All the non-MIPS modes need a bit of work.
54 dpavlin 2
55     MIPS CPU emulation:
56     o) Instructions:
57     o) Regression tests (see tests/README for more info):
58     o) Floating point exception handling, and
59     add more instructions.
60     o) Finish the MIPS16 translator, and test it!
61     o) MIPS ISA I, II, III, IV
62     o) MIPS V (SIMD vector stuff?)
63     o) MDMX (MIPS Digital Media Extension)
64     o) MIPS 3D
65     o) MIPS MT (Multi-thread stuff) (What's this?)
66     o) Warn about mis-used bit fields (ie bits that
67     should be all zeroes, warn about if they are not)!
68     Both for coprocessor registers and for instruction
69     opcodes.
70     o) the special2 stuff is a mess right now
71     o) warn and/or cause exceptions for unimplemented
72     instructions (depending on CPU type)
73     o) R2000/R3000:
74     x) R3000 "tri-byte stores". (What's this?)
75     o) R4000 and others:
76     x) watchhi/watchlo exceptions, and other exception
77     handling details
78     o) R10000 and others: (R12000, R14000 ?)
79     x) memory space, exceptions, ...
80     x) use cop0 framemask for tlb lookups
81     (http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/hdwr/bks/SGI_Developer/books/R10K_UM/sgi_html/t5.Ver.2.0.book_284.html)
82     o) Implement load delays? Warnings on interlocks.
83     o) Implement all coprocessor 0 bits / functions.
84     x) coproc 0 selectors! (R4000 ?)
85     o) R4300 (nintendo64, no mmu?), R5900 (playstation2, weird
86     TLB/cache? 128-bit GPRs, new instructions),
87     4K (note: NOT R4000), 5K (note: NOT R5000),
88     R6000 (ISA II), R8000
89     o) Multi-cpu stuff:
90     +) SGI's NUMA architecture. Study
91     x) Linux sources
92     x) SGI's specs on NUMA address space
93     +) Ultrix? NetBSD doesn't do SMP on MIPS yet :-(
94     +) Own experiments with ycx2.
96     Emulation of specific machines and devices:
97     o) Clean up stuff to make it possible to emulate multiple
98     (different) machines simultaneously.
99     o) Use same clock for all emulations and machines.
100     o) Clean up the device stuff (registering of devices etc)
101     o) Various SCSI and IDE controllers
102     o) PS/2-style keyboard controller (for several machines)
103     o) Generic busses;
104     x) PCI: i/o and interrupts
105     x) QBus-22 (DECsystem 5500, 5400?)
106     o) DECstations (pmax):
107     x) ioasic
108     x) framebuffers:
109     +) better cursor support, overlays?,
110     +) 2D/3D acceleration, PX[G]
111     x) status words / control words, make this more
112     portable/cleaner
113     x) scsi controller(s): sii, DMA for asc
114     x) serial controllers: ssc, scc (and more work on dc?)
115     x) nvram on decstation 5000/125: when using X11,
116     set console=g or similar
117     x) DECstation 5840? "xbi-based SMP"
118     o) SGI and ARC machines (sgimips, arc):
119     x) IP32 ("O2"): (Lots of stuff)
120     +) mec (ethernet)
121     +) pci
122     +) ahc (scsi)
123     +) ps2 kbd
124     +) memory controller
125     +) framebuffer/graphics
126     +) caches
127     x) more ARCBIOS stuff
128     x) Memory/interrupt controllers
129     x) IP30 (Linux with graphics support?)
130     x) SMP / NUMA? (SGI and various ARC machines)
131 dpavlin 4 o) Playstation 2:
132     Hardware: OHCI usb controller, keyboard, ...
133 dpavlin 2 o) Cobalt: PCI and interrupt system, ethernet,
134     harddisk controller(s)
135     o) Less interesting platforms:
136 dpavlin 4 o) newsmips:
137     o) NetBSD/newsmips, get it to detect a "real"
138     model, right now everything is 100% bogus
139 dpavlin 2 o) mipsco? (NetBSD)
140     o) wgrisc? (big endian R3000, in OpenBSD's attic)
141     o) other embedded / evaluation MIPS boards
142     o) Playstation 1? R3000A. Weird hardware?
143     No FPU, but something as coproc 2.
144     o) Nintendo 64, http://www.nintendo.com/systems/n64/n64_specs.jsp
145     (R4300, 4MB RAM, really weird memory map)
146 dpavlin 4 o) non-MIPS
147 dpavlin 2
148     File/disk handling:
149 dpavlin 4 o) More than one type of disk in a machine (say, IDE + FLOPPY,
150     or SCSI + IDE); how to handle this nicely?
151 dpavlin 2 o) Read function argument count and types from binaries? (ELF?)
152     o) ELF: separate LE/BE (MIPS instruction format) from LSB/MSB
153     (ELF structure format)?
154     o) Better handling of tape files
156     Userland ABI emulation:
157     o) see src/useremul.c
159     Terminal based interactive debugger:
160     o) see src/debugger.c
162     GDB interface? (Maybe not necessary; the built-in debugger feels
163     more useful.)
165     GUI, interactive debugger? GTK+? (The GUI _must be optional_!)
166     o) Breakpoints (complex expressions? combinations of register
167     states, memory accesses and so on)
168     o) Instruction trace
169     o) Disassembly of RAM (_NOT_ the same as instruction trace)
170     o) Function call trace
171     o) Inspection of CPU registers/state, coprocessor
172     registers/state, any device registers/state/contents
173     o) Framebuffers in windows / tabs.
174     o) Contents of RAM
175     o) "Start new emulation" should allow amount of
176     RAM and nr of cpus to easily be specified.
177     Multiple simultaneous machines should be possible.
178     o) Disk images.
180     Regression tests:
181     o) see tests/
183     Save state of the whole emulated machine, to be able to load it back
184     in later? (Memory, all device's states, all registers and
185     so on. Like taking a snapshot. (SimOS seems to do this,
186     according to its website.))
188     Better X-windows functionality:
189     o) CLEAN UP the ugly event code
190     o) Mouse clicks can be "missed" in the current system; this is
191     not good. They should be put on a stack of some kind.
192     o) More 2D and 3D framebuffer acceleration.
193     o) Non-resizable windows? Or choose scaledown depending
194     on size (and center the image, with a black border).
195     o) Different scaledown on different windows?
196     o) Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)
197     o) Keyboard and mouse events:
198     x) Do this for more machines than just DECstation
199     x) more X11 cursor keycodes
200     x) Keys like CTRL, ALT, SHIFT do not get through
201     by themselves (these are necessary for example
202     to change the font of an xterm in X in the
203     emulator)
204     o) Generalize the framebuffer stuff by moving _ALL_ X11
205     specific code to src/x11.c!
207     Statistics: (this could be interesting)
208     o) Save to file and show graphics. It should be possible to
209     run gxemul after a simulation to just show the graphics,
210     or convert to a .ppm or .tga or similar.
211     o) memory accesses (to measure cache efficiency and
212     page coloring efficiency)
213     o) nr of simultaneous ASIDs in use in the TLB, for MIPS
214     o) percentage of time spent in different "states", such as
215     running userland code, kernel code, or idling (for CPUs
216     that have such an instruction, or whenever the PC is
217     inside a specific idle-function (address range)).
218     Possible additional state (for example on R3000): caches
219     disabled.
220     o) position of read/write on (SCSI) disks

  ViewVC Help
Powered by ViewVC 1.1.26