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

Contents of /trunk/TODO

Parent Directory Parent Directory | Revision Log Revision Log

Revision 6 - (show annotations)
Mon Oct 8 16:18:11 2007 UTC (13 years ago) by dpavlin
File size: 9093 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.772 2005/06/04 12:02:16 debug Exp $
20050428	Disabling the "-fmove-all-movables" option in the configure
		script, because it causes the compile to fail on OpenBSD/sgi.
20050502	Minor updates.
20050503	Removing the WRT54G mode (it was bogus anyway), and adding a
		comment about Windows NT for MIPS in doc/experiments.html.
		Minor updates to the x86 instruction decoding.
20050504	Adding some more x86 instructions.
		Adding support for reading files from ISO9660 CDROMs (including
		gzipped files). It's an ugly hack, but it seems to work.
		Various other minor updates (dev_vga.c, pc_bios.c etc).
20050505	Some more x86-related updates.
		Beginning (what I hope will be) a major code cleanup phase.
		"bootris" (an x86 bootsector) runs :-)
20050506	Adding some more x86 instructions.
20050507	tmpnam => mkstemp.
		Working on a hack to allow VGA charcells to be shown even when
		not running with X11.
		Adding more x86 instructions.
20050508	x86 32-bit SIB addressing fix, and more instructions.
20050509	Adding more x86 instructions.
20050510	Minor documentation updates, and other updates (x86 stuff etc.)
20050511	More x86-related updates.
20050513	Various updates, mostly x86-related. (Trying to fix flag 
		calculation, factoring out the ugly shift/rotate code, and
		some other things.)
20050514	Adding support for loading some old i386 a.out executables.
		Finally beginning the cleanup of machine/PROM/bios dependant
		Some minor documentation updates.
		Trying to clean up ARCBIOS stuff a little.
20050515	Trying to make it possible to actually use more than one disk
		type per machine (floppy, ide, scsi).
		Trying to clean up the kbd vs PROM console stuff. (For PC and
		ARC emulation modes, mostly.)
		Beginning to add an 8259 interrupt controller, and connecting
		it to the x86 emulation.
20050516	The first x86 interrupts seem to work (keyboard stuff).
		Adding a 8253/8254 programmable interval timer skeleton.
		FreeDOS now reaches a command prompt and can be interacted
20050517	After some bugfixes, MS-DOS also (sometimes) reaches a
		command prompt now.
		Trying to fix the pckbc to work with MS-DOS' keyb.com, but no
		success yet.
20050518	Adding a simple 32-bit x86 MMU skeleton.
20050519	Some more work on the x86 stuff. (Beginning the work on paging,
		and various other fixes).
20050520	More updates. Working on dev_vga (4-bit graphics modes), adding
		40 columns support to the PC bios emulation.
		Trying to add support for resizing windows when switching
		between graphics modes.
20050521	Many more x86-related updates.
20050522	Correcting the initial stack pointer's sign-extension for
		ARCBIOS emulation (thanks to Alec Voropay for noticing the
		Continuing on the cleanup (ARCBIOS etc).
		dev_vga updates.
20050523	More x86 updates: trying to add some support for protected mode
		interrupts (via gate descriptors) and many other fixes.
		More ARCBIOS cleanup.
		Adding a device flag which indicates that reads cause no
		side-effects. (Useful for the "dump" command in the debugger,
		and other things.)
		Adding support for directly starting up x86 ELFs, skipping the
		bootloader stage. (Most ELFs, however, are not suitable for
20050524	Adding simple 32-bit x86 TSS task switching, but no privilege
		level support yet.
		More work on dev_vga. A small "Copper bars" demo works. :-)
		Adding support for Trap Flag (single-step exceptions), at least
		in real mode, and various other x86-related fixes.
20050525	Adding a new disk image prefix (gH;S;) which can be used to
		override the default nr of heads and sectors per track.
20050527	Various bug fixes, more work on the x86 mode (stack change on
		interrupts between different priv.levels), and some minor
		documentation updates.
20050528	Various fixes (x86 stuff).
20050529	More x86 fixes. An OpenBSD/i386 bootfloppy reaches userland
		and can be interacted with (although there are problems with
		key repetition). NetBSD/i386 triggers a serious CISC-related
		problem: instruction fetches across page boundaries, where
		the later part isn't actually part of the instruction.
20050530	Various minor updates. (Documentation updates, etc.)
20050531	Adding some experimental code (experiments/new_test_*) which
		could be useful for dynamic (but not binary) translation in
		the future.
20050602	Adding a dummy ARM skeleton.
		Fixing the pckbc key repetition problem (by adding release
		scancodes for all keypresses).
20050603	Minor updates for the next release.
20050604	Release testing. Minor updates.

==============  RELEASE 0.3.3  ==============

20050604	There'll probably be a release soon, with some very
		very tiny updates.

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

  ViewVC Help
Powered by ViewVC 1.1.26