1 |
$Id: TODO,v 1.343 2006/08/14 18:46:30 debug Exp $ |
$Id: TODO,v 1.453 2007/02/19 01:34:42 debug Exp $ |
2 |
|
|
3 |
Hm. This file is in random order, and not all parts of it are up-to-date. |
------------------------------------------------------------------------------- |
4 |
|
|
5 |
|
Fix after the 0.4.4 release: |
6 |
|
Fix the PowerPC DECR interrupt speed! |
7 |
|
|
8 |
Implementation: |
------------------------------------------------------------------------------- |
|
x) ARM "wait"-like instruction. |
|
|
x) CLOCK FRAMEWORK! |
|
|
x) Mouse support for NetBSD/pmax 4.x! |
|
|
x) See netwinder_reset() in NetBSD; the current "an internal error |
|
|
occured" message after reboot/halt is too ugly. |
|
|
x) 64-bit ranges in src/cpus/memory_mips_v2p.c |
|
|
x) Revert the dyntrans page template experiment? Hm. |
|
|
x) Refactor the cpu type detection/initialization/listing. |
|
|
Macro, which can be used as long as the cpu definitions |
|
|
contain a 'name'? |
|
|
x) Testmachine includes: |
|
|
+ dev_fb block fill and copy |
|
|
+ dev_fb draw characters (from the built-in font)? |
|
|
+ dev_fb input device? mouse pointer coordinates and buttons |
|
|
(allow changes in these to cause interrupts as well?) |
|
|
+ Redefine the halt() function so that it stops "sometimes |
|
|
soon", i.e. usage in demo code should be: |
|
|
for (;;) { |
|
|
halt(); |
|
|
} |
|
|
x) Continue on SPARC emulation |
|
|
+ Enable it in the configure script as soon as it can |
|
|
run all the demo programs. |
|
|
x) Continue on Alpha emulation (virtual memory, etc). Cleanup. |
|
|
x) Nicer MIPS status bits in register dumps. |
|
|
x) Alignment exceptions (MIPS, PPC, ARM?, ...) |
|
|
x) Rewrite the networking stack; make OpenBSD work better as a guest |
|
|
OS, fix the performance problems, make Linux work with DHCP, etc. |
|
|
Support VDE (vde.sf.net)? Allow SLIP connections, possibly PPP, |
|
|
in addition to ethernet? |
|
|
x) Implement more ethernet NICs. |
|
|
x) IOP (I2O) device? |
|
9 |
|
|
10 |
Documentation: |
Possible (relatively large) work packages to concentrate on in the future: |
11 |
x) "Install netbsd/pmax first" => only use the install kernel? |
|
12 |
x) Rewrite the section about experimental devices, after the |
x) SMP: |
13 |
framebuffer acceleration has been implemented, and demos |
Get SMP working again. It is pretty much broken since I started |
14 |
written. (Symbolic names instead of numbers; example |
the conversion from the old bintrans system to the new dyntrans system. |
15 |
use cases, etc. Mention demo files that use the various |
Add better Test machine demos for SMP in the demos directory. |
16 |
features?) |
|
17 |
x) "a very simple linear framebuffer device (for graphics output)" |
x) Network: |
18 |
under "which machines does gxemul emulate" ==> better |
Redesign of the networking subsystem, at least the NAT translation |
19 |
description? |
part. The current way of allowing raw ethernet frames to be |
20 |
x) Better description on how to set up a cross compiler? |
transfered to/from the emulator via UDP should probably be extended |
21 |
Example for MIPS64. |
to allow the frames to be transmitted other ways as well. |
22 |
|
Also adding support for connecting ttys (either to xterms, or to |
23 |
|
pipes/sockets etc, or even to PPP->NAT or SLIP->NAT :-). |
24 |
|
|
25 |
|
x) PCI: |
26 |
|
Pretty much everything related to runtime configuration, device |
27 |
|
slots, interrupts, whatever. The current code is very hardcoded |
28 |
|
and ugly. |
29 |
|
|
30 |
|
x) Debugging: |
31 |
|
Think more about SMP debugging, etc. Right now, the |
32 |
|
debugger is a mess. Also, a better connection to GDB would be |
33 |
|
very nice to have. |
34 |
|
|
35 |
|
x) Userland emulation: |
36 |
|
Primary goals would be NetBSD and Linux syscall emulation. |
37 |
|
|
38 |
|
And of course, there are _LOTS_ of minor TODOs spread out throughout |
39 |
|
the source code, which must be fixed sooner or later. |
40 |
|
|
41 |
|
------------------------------------------------------------------------------- |
42 |
|
|
43 |
|
Some other things, in random order, that I'd like to fix: (Some items in |
44 |
|
this list are probably out-to-date by now.) |
45 |
|
|
46 |
Long-term design: |
Dyntrans: |
47 |
x) Instruction combination collisions? How to avoid easily... |
x) Instruction combination collisions? How to avoid easily... |
48 |
x) Think about how to do both SHmedia and SHcompact in a reasonable |
x) Think about how to do both SHmedia and SHcompact in a reasonable |
49 |
way! |
way! (Or AMD64 long/protected/real, for that matter.) |
50 |
o) Actually use the settings object, better debugger stuff, etc! |
x) 68K emulation; think about how to do variable instruction |
51 |
o) Debugger command for enabling/disabling instruction statistics |
lengths across page boundaries. |
|
during runtime. machine.statistics = on|off |
|
|
x) MAINBUS REDESIGN! |
|
|
x) PCI redesign... I need to read up on how PCI actually works :) |
|
|
x) Clock framework! Go through all clock devices, make sure they |
|
|
return correct data, and run at correct speeds! |
|
52 |
x) Dyntrans with valgrind-inspired memory checker. (In memory_rw, |
x) Dyntrans with valgrind-inspired memory checker. (In memory_rw, |
53 |
it would be reasonably simple to add; in each individual fast |
it would be reasonably simple to add; in each individual fast |
54 |
load/store routine = a lot more work, and it would become |
load/store routine = a lot more work, and it would become |
55 |
kludgy very fast.) |
kludgy very fast.) |
56 |
x) Dyntrans with SMP... lots of work to be done here. |
x) Dyntrans with SMP... lots of work to be done here. |
57 |
x) Dyntrans with cache emulation... lots of work here as well. |
x) Dyntrans with cache emulation... lots of work here as well. |
58 |
x) Reimplement the config file parser from scratch. |
o) dev_mp doesn't work well with dyntrans yet |
59 |
|
o) In general, IPIs, CAS, LL/SC etc must be made to work with dyntrans |
60 |
------------------------------------------------------------------------------- |
x) Redesign/rethink the delay slot mechanism used for e.g. MIPS, |
61 |
|
so that it caches a translation (that is, an instruction |
62 |
|
word and the instr_call it was translated to the last |
63 |
|
time), so that it doesn't need to do slow |
64 |
|
to_be_translated for each end of page? |
65 |
|
x) Program Counter statistics: |
66 |
|
Per machine? What about SMP? All data to the same file? |
67 |
|
A debugger command should be possible to use to enable/ |
68 |
|
disable statistics gathering. |
69 |
|
Configuration file option! |
70 |
|
x) Breakpoints: |
71 |
|
o) Physical vs virtual addresses! |
72 |
|
o) 32-bit vs 64-bit sign extension for MIPS, and others? |
73 |
|
x) INVALIDATION should cause translations in _all_ cpus to be |
74 |
|
invalidated, e.g. on a write to a write-protected page |
75 |
|
(containing code) |
76 |
|
x) 16-bit encodings? (MIPS16, ARM Thumb, 32-bit SH on SH64) |
77 |
|
x) Lots of other stuff: see src/cpus/README_DYNTRANS |
78 |
|
x) true recompilation backend? think carefully about this. |
79 |
|
o) abstract syntax for emitting opcopdes |
80 |
|
o) convert into native code only after an entire |
81 |
|
block has been translated? probably best. |
82 |
|
o) x86/amd64 code generator can be very similar... perhaps |
83 |
|
o) branches to already translated code blocks can |
84 |
|
link the blocks together |
85 |
|
o) load/store are the most important. |
86 |
|
|
87 |
Simple Valgrind-like checks? |
Simple Valgrind-like checks? |
88 |
o) Mark every address with bits which tell whether or not the address |
o) Mark every address with bits which tell whether or not the address |
104 |
in warnings. (free() must be modified to free the |
in warnings. (free() must be modified to free the |
105 |
actually allocated address.) |
actually allocated address.) |
106 |
|
|
|
SMP: |
|
|
o) dev_mp doesn't work well with dyntrans yet |
|
|
o) In general, IPIs, CAS, LL/SC etc must be made to work with dyntrans |
|
|
|
|
107 |
MIPS: |
MIPS: |
108 |
+) Some more work on opcodes. |
o) Nicer MIPS status bits in register dumps. |
109 |
x) The "wait" instruction. How to implement this functionality? |
o) Alignment exceptions. |
110 |
(SMP, non-MIPS, interrupt correctness, host idling, ...) |
o) Floating point exception correctness. |
111 |
|
o) Fix this? Triggered by NetBSD/sgimips? Hm: |
112 |
|
to_be_translated(): TODO: unimplemented instruction: |
113 |
|
000000000065102c: 00200800 (d) rot_00 at,zr,0 |
114 |
|
o) Some more work on opcodes. |
115 |
x) MIPS64 revision 2. |
x) MIPS64 revision 2. |
116 |
o) Find out which actual CPUs implement the rev2 ISA! |
o) Find out which actual CPUs implement the rev2 ISA! |
117 |
|
o) DROTR32 and similar MIPS64 rev 2 instructions, |
118 |
|
which have a rotation bit which differs from |
119 |
|
previous ISAs. |
120 |
|
o) EI and DI instructions for MIPS64/32 rev 2. |
121 |
|
NOTE: These are _NOT_ the same as for R5900! |
122 |
x) _MAYBE_ TX79 and R5900 actually differ in their |
x) _MAYBE_ TX79 and R5900 actually differ in their |
123 |
opcodes? Check this carefully! |
opcodes? Check this carefully! |
124 |
o) Dyntrans: Count register updates are probably not 100% correct yet. |
o) Dyntrans: Count register updates are probably not 100% correct yet. |
125 |
o) Refactor code for performance and readability/maintainability. |
o) Refactor code for performance and readability/maintainability. |
|
o) DROTR32 and similar MIPS64 rev 2 instructions, which have |
|
|
a rotation bit which differs from previous ISAs. |
|
|
o) EI and DI instructions for MIPS64/32 rev 2. NOTE: These are |
|
|
_NOT_ the same as for R5900! |
|
126 |
o) (Re)implement 128-bit loads/stores for R5900. |
o) (Re)implement 128-bit loads/stores for R5900. |
127 |
o) R4000 and others: |
o) R4000 and others: |
128 |
x) watchhi/watchlo exceptions, and other exception |
x) watchhi/watchlo exceptions, and other exception |
129 |
handling details |
handling details |
130 |
o) R10000 and others: (R12000, R14000 ?) |
o) R10000 and others: (R12000, R14000 ?) |
131 |
|
x) The code before the line |
132 |
|
/* reg[COP0_PAGEMASK] = cpu->cd.mips.coproc[0]->tlbs[0].mask & PAGEMASK_MASK; */ |
133 |
|
in cpu_mips.c is not correct for R10000 according to |
134 |
|
Lemote's Godson patches for GXemul. TODO: Go through all |
135 |
|
register definitions according to http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/hdwr/bks/SGI_Developer/books/R10K_UM/sgi_html/t5.Ver.2.0.book_263.html#HEADING334 |
136 |
|
and make sure everything works with R10000. |
137 |
|
Then test with OpenBSD/sgi? |
138 |
x) memory space, exceptions, ... |
x) memory space, exceptions, ... |
139 |
x) use cop0 framemask for tlb lookups |
x) use cop0 framemask for tlb lookups |
140 |
(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) |
(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) |
141 |
|
|
142 |
Dyntrans: |
SuperH: |
143 |
x) Redesign/rethink the delay slot mechanism used for e.g. MIPS, |
x) SH4 interrupt controller: |
144 |
so that it caches a translation (that is, an instruction |
x) Implement correct priorities of interrupts |
145 |
word and the instr_call it was translated to the last |
x) SH4 DMA (0xffa00000) |
146 |
time), so that it doesn't need to do slow |
x) SH4 UBC (0xff200000) |
147 |
to_be_translated for each end of page? |
x) Store queues can copy 32 bytes at a time, there's no need to |
148 |
x) Program Counter statistics: |
copy individual 32-bit words. (Performance improvement.) |
149 |
Per machine? What about SMP? All data to the same file? |
x) SH4 BSC (Bus State Controller) |
150 |
A debugger command should be possible to use to enable/ |
x) SH4 RTC: Read the host's clock. |
151 |
disable statistics gathering. |
x) SH4 SCIF: Serial _interrupts_ |
152 |
Configuration file option! |
x) Instruction tracing should include symbols for branch targets, |
153 |
x) Common fatal_abort() function, which drops into the debugger |
and so on, to make the output more human readable. |
154 |
without continuing. |
x) NetBSD/evbsh3, dreamcast, mmeye, hpcsh! Linux? |
155 |
x) INVALIDATION should cause translations in _all_ cpus to be |
x) Replace pc-relative loads with immediate load, if within the |
156 |
invalidated, e.g. on a write to a write-protected page |
same page. (Similar to the same optimization for ARM.) |
157 |
(containing code) |
x) Floating point speed! |
158 |
x) 16-bit encodings? (MIPS16, ARM Thumb, SH3, ...) |
x) Floating point exception correctness. |
159 |
x) Lots of other stuff: see src/cpus/README_DYNTRANS |
x) Think carefully about how to implement SH5/SH64 (for evbsh5). |
160 |
x) true recompilation backend? think carefully about this, |
|
161 |
experiment in a separate project (not in GXemul) |
Dreamcast: |
162 |
o) First test would be to just implement a simple |
x) G2 DMA |
163 |
instruction such as MIPS' addiu or lui, on AMD64 |
x) LAN adapter (dev_mb8696x.c). NetBSD root-on-nfs. |
164 |
hosts... |
x) PVR: Lots of stuff. See dev_pvr.c. |
165 |
x) Idle loop detection? (Depends on target.) Could be turned |
x) GDROM |
166 |
into usleep(1) or similar on the host... except when doing |
x) Modem |
167 |
e.g. SMP emulation. Then it becomes trickier. |
x) PCI bridge/bus? |
168 |
|
x) Maple bus: |
169 |
|
x) Correct controller input |
170 |
|
x) Mouse input |
171 |
|
x) Software emulation of BIOS calls: |
172 |
|
x) GD-ROM emulation: Use the GDROM device. |
173 |
|
x) Use the VGA font as a fake ROM font. (Better than |
174 |
|
nothing.) |
175 |
|
x) Linux/dreamcast? (The gentoo kernel currently crashes.) |
176 |
|
x) Make as many as possible of the KOS examples run! |
177 |
|
x) More homebrew demos/games. |
178 |
|
x) SPU: Sound emulation (ARM cpu). |
179 |
|
x) VME processor emulation? "(Sanyo LC8670 "Potato")" according to |
180 |
|
Wikipedia, LC86K87 according to Comstedt's page. See |
181 |
|
http://www.maushammer.com/vmu.html for a good description of |
182 |
|
the differences between LC86104C and the one used in the VME. |
183 |
|
|
184 |
Transputer: |
Transputer: |
185 |
x) Implement support for Helios binaries. |
x) Implement support for Helios binaries. |
187 |
x) Figure out how to boot an entire Helios distribution. |
x) Figure out how to boot an entire Helios distribution. |
188 |
x) Implement all instructions. :) |
x) Implement all instructions. :) |
189 |
|
|
190 |
|
RCA1802/RCA1805, CHIP8: |
191 |
|
x) CHIP8 -> RCA180x conversion |
192 |
|
x) Think about how to do dual-mode, variable-instr-length |
193 |
|
ISAs, and switch between modes. |
194 |
|
x) 1805 "extended" opcode -> trigger CHIP8 emulation? |
195 |
|
That is, all calls 0NNN could point to 0x68 opcodes, |
196 |
|
which, if running on a 1802 in CHIP8-emulation-mode, |
197 |
|
would be manually interpreted. |
198 |
|
x) Better solution: |
199 |
|
CHIP8 calls to 00xx => handle at high level, |
200 |
|
calls to 0xxx in general = call 180X machine code |
201 |
|
(0000 = reboot?) |
202 |
|
x) 1802 info: http://www.nyx.net/~lturner/public_html/Cosmac.html |
203 |
|
and: http://www.elf-emulation.com/1802.html |
204 |
|
x) 1805 extended opcodes: Implement at least disassembly support! |
205 |
|
x) Keyboard input. |
206 |
|
x) Sound (beep only). |
207 |
|
x) Slow-down to correct speed? Wikipedia: "it was usually operated |
208 |
|
at 3.58 MHz/2 to suit the requirements of the 1861 chip which |
209 |
|
gave a speed of a little over 100,000 instructions per second" |
210 |
|
(Note that _CHIP8_ emulation would then be even slower.) |
211 |
|
x) SCHIP48 (Super) emulation: |
212 |
|
Some more opcodes, 128x64 framebuffer, larger |
213 |
|
sprites and fonts. |
214 |
|
|
215 |
Alpha: |
Alpha: |
216 |
o) Virtual memory (tlbs etc) |
x) OSF1 PALcode, Virtual memory support. |
217 |
o) Get {NetBSD,OpenBSD,Linux}/alpha booting. :) |
x) PALcode replacement! PAL1E etc opcodes...? |
218 |
|
x) Interrupt/exception/trap handling. |
219 |
|
x) Floating point exception correctness. |
220 |
|
x) More work on bootup memory and register contents. |
221 |
|
x) More Alpha machine types, so it could work with |
222 |
|
OpenBSD, FreeBSD, and Linux too? |
223 |
|
|
224 |
SPARC: |
SPARC: |
225 |
o) Load/stores to alternate address spaces! |
o) Implement Adress space identifiers; load/stores etc. |
226 |
o) Save/restore register windows etc! |
o) Save/restore register windows etc! Both v9 and pre-v9! |
227 |
o) Finish the subcc and addcc flag computation code. |
o) Finish the subcc and addcc flag computation code. |
228 |
o) Add more registers (floating point, control regs etc) |
o) Add more registers (floating point, control regs etc) |
229 |
|
o) Exception/trap handling. |
230 |
o) Disassemly of some more instructions? |
o) Disassemly of some more instructions? |
231 |
o) Are sll etc 32-bit sign-extending or zero-extending? |
o) Are sll etc 32-bit sign-extending or zero-extending? |
232 |
o) Finish the GDB register stuff. |
o) Finish the GDB register stuff. |
233 |
|
x) Floating point exception correctness. |
234 |
o) SPARC v8, v7 etc? |
o) SPARC v8, v7 etc? |
235 |
|
|
236 |
Debugger: |
Debugger: |
240 |
o) Try to make the debugger more modular and, if possible, reentrant! |
o) Try to make the debugger more modular and, if possible, reentrant! |
241 |
o) Remove the emul command? (But show network info if showing |
o) Remove the emul command? (But show network info if showing |
242 |
machines?) |
machines?) |
243 |
o) Generalize the expression evaluator. (debugger_expr.c?) |
o) Evaluate expressions within []? That would allow stuff like |
244 |
settable variables ("show nr of instructions on average") |
cpu[x] where x is an expression. |
245 |
emul[x] defaults to current emul |
o) Settings: |
246 |
machine[x] defaults to current machine |
x) Special handlers for Write! |
247 |
cpu[x] defaults to currently focused cpu |
+) MIPS coproc regs |
248 |
registers cpu arch dependent (#-prefix) |
+) Alpha/MIPS/SPARC zero registers |
249 |
symbols @-prefix |
+) x86 64/32/16-bit registers |
250 |
numeric constants decimal, hex, and octal ($-prefix) |
x) Value formatter for resulting output. |
|
boolean yes,no, true,false |
|
|
operators (+ - * / % & | ^ !) |
|
|
parentheses for grouping subexpressions |
|
|
NOTE: the change from % to # for register prefix! |
|
|
examples: |
|
|
emul[0].machine[2].cpu[0].pc |
|
|
machine[test2].cpu[1].ra = main |
|
|
settings.show_trace_tree = yes |
|
|
|
|
|
Settings: |
|
|
o) Remove a setting. |
|
|
o) Read/write a setting given a name. (Read as |
|
|
string and/or int64_t simultaneously?) |
|
|
o) Warnings when exiting the emulator, if the |
|
|
settings have not been removed exactly in |
|
|
the same way as they were added? This would |
|
|
improve code cleanliness in the long term. |
|
|
(I.e. require a corresponding _destroy() |
|
|
function for all _new functions... machine_ |
|
|
cpu_ etc.) |
|
|
|
|
|
Help command should have subsections! One for "expressions", |
|
|
mirrored in the documentation, but the internal help should |
|
|
be the one that should be considered correct. |
|
251 |
o) see src/debugger.c for more |
o) see src/debugger.c for more |
252 |
|
|
253 |
POWER/PowerPC: |
POWER/PowerPC: |
254 |
|
x) Fix DECR timer speed, so it matches the host. |
255 |
|
x) NetBSD/prep 3.x triggers a possible bug in the emulator: |
256 |
|
<wdc_exec_command(0xd005e514,0xd60cdd30,0,8,..)> |
257 |
|
<ata_get_xfer(0,0xd60cdd30,0,8,..)> |
258 |
|
<0x26c550(&ata_xfer_pool,2,0,8,..)> |
259 |
|
<0x35c71c(0x3f27000,0,52,8,..)> |
260 |
|
<ata_exec_xfer(0xd005e4c8,0x3f27000,0,13,..)> |
261 |
|
<atastart(0xd005e4c8,0x3f27000,0,13,..)> |
262 |
|
<__wdccommand_start(0xd005e4c8,0x3f27000,0,13,..)> |
263 |
|
<bsw1(&prep_isa_io_space_tag,0x800001f6,0,176,..)> |
264 |
|
[ wdc: write to SDH: 0xb0 (sectorsize 2, lba=1, drive 1, head 0) ] |
265 |
|
<wdcwait(0xd005e4c8,72,64,0xbb8,..)> |
266 |
|
<0x198120(0xd005e4c8,72,64,0xbb8,..)> |
267 |
|
<bsr1(&prep_isa_io_space_tag,0,0,0xbb8,..)> |
268 |
|
<delay(100,0,0,0xbb8,..)> |
269 |
|
Note: <bsr1(&prep_isa_io_space_tag,0,0,0xbb8,..)> |
270 |
x) PPC optimizations; instr combs |
x) PPC optimizations; instr combs |
271 |
x) 64-bit stuff: either Linux on G5, or perhaps some hobbyist |
x) 64-bit stuff: either Linux on G5, or perhaps some hobbyist |
272 |
version of AIX? (if there exists such a thing) |
version of AIX? (if there exists such a thing) |
|
x) find and fix the bug which causes NetBSD/macppc to fail after |
|
|
an install! |
|
273 |
x) macppc: adb controller; keyboard (for framebuffer mode) |
x) macppc: adb controller; keyboard (for framebuffer mode) |
274 |
x) make OpenBSD/macppc work (PCI controller stuff) |
x) make OpenBSD/macppc work (PCI controller stuff) |
275 |
|
x) Floating point exception correctness. |
276 |
|
x) Alignment exceptions. |
277 |
|
|
278 |
|
PReP: |
279 |
|
Clock time! ("Bad battery blah blah") |
280 |
|
|
281 |
Algor: |
Algor: |
282 |
PCI interrupts... needed or stuff like the tlp NIC? |
o) Other models than the P5064? |
283 |
|
o) PCI interrupts... needed for stuff like the tlp NIC? |
284 |
|
|
285 |
|
BeBox: |
286 |
|
o) Interrupts. There seems to be a problem with WDC interrupts |
287 |
|
"after a short while", although a few interrupts get through? |
288 |
|
o) Perhaps find a copy of BeOS and try it? |
289 |
|
|
290 |
|
HPCmips: |
291 |
|
x) Mouse/pad support! :) |
292 |
|
x) A NIC? (As a PCMCIA device?) |
293 |
|
|
294 |
|
AVR: |
295 |
|
o) Everything. |
296 |
|
|
297 |
ARM: |
ARM: |
298 |
o) try to get netbsd/evbarm 3.x running (iq80321) |
o) See netwinder_reset() in NetBSD; the current "an internal error |
299 |
|
occured" message after reboot/halt is too ugly. |
300 |
|
o) ARM "wait"-like instruction? |
301 |
|
o) try to get netbsd/evbarm 3.x or 4.x running (iq80321) |
302 |
o) make the xscale counter registers (ccnt) work |
o) make the xscale counter registers (ccnt) work |
303 |
o) make the ata controller usable for FreeBSD! |
o) make the ata controller usable for FreeBSD! |
304 |
o) zaurus for openbsd... |
o) Zaurus emulation, for e.g. OpenBSD/zaurus |
305 |
o) debian/cats crashes because of unimplemented coproc stuff. |
o) Debian/cats crashes because of unimplemented coproc stuff. |
306 |
fix this? |
fix this? |
307 |
|
|
308 |
|
Test machines: |
309 |
|
o) dev_fb block fill and copy |
310 |
|
o) dev_fb draw characters (from the built-in font)? |
311 |
|
o) dev_fb input device? mouse pointer coordinates and buttons |
312 |
|
(allow changes in these to cause interrupts as well?) |
313 |
|
o) Redefine the halt() function so that it stops "sometimes |
314 |
|
soon", i.e. usage in demo code should be: |
315 |
|
for (;;) { |
316 |
|
halt(); |
317 |
|
} |
318 |
|
|
319 |
|
Better CD Image file support: |
320 |
|
x) Support CD formats that contain more than 1 track, e.g. |
321 |
|
CDI files (?). These can then contain a mixture of e.g. sound |
322 |
|
and data tracks, and booting from an ISO filesystem path |
323 |
|
would boot from [by default] the first data track. |
324 |
|
(This would make sense for e.g. Dreamcast CD images, or |
325 |
|
possibly other live-CD formats.) |
326 |
|
|
327 |
|
Networking: |
328 |
|
x) Fix performance problems caused by only allowing a |
329 |
|
single TCP packet to be unacked. |
330 |
|
x) Don't hardcode offsets into packets! |
331 |
|
x) Test with lower than 100 max tcp/udp connections, |
332 |
|
to make sure that reuse works! |
333 |
|
x) Make OpenBSD work better as a guest OS! |
334 |
|
x) DHCP? Debian doesn't actually send DHCP packets, even |
335 |
|
though it claims to? So it is hard to test. |
336 |
|
x) Multiple networks per emulation, and let different |
337 |
|
NICs in machines connect to different networks. |
338 |
|
x) Support VDE (vde.sf.net)? Easiest/cleanest (before a |
339 |
|
redesign of the network framework has been done) is |
340 |
|
probably to connect it using the current (udp) solution. |
341 |
|
x) Allow SLIP connections, possibly PPP, in addition to |
342 |
|
ethernet? |
343 |
|
|
344 |
Cache simulation: |
Cache simulation: |
345 |
o) Command line flags for: |
o) Command line flags for: |
346 |
o) CPU endianness? |
o) CPU endianness? |
357 |
is another option (easier to implement, but very very slow). |
is another option (easier to implement, but very very slow). |
358 |
|
|
359 |
Documentation: |
Documentation: |
360 |
o) machines, cpus, devices. |
x) Note about sandboxing/security: |
361 |
o) Automagic documentation generation: |
Not all emulated instructions fail in the way they would |
362 |
|
do on real hardware (e.g. a userspace program writing to |
363 |
|
a system register might work in GXemul, but it would |
364 |
|
fail on real hardware). Sandbox = contain from the |
365 |
|
host OS. But the emulated programs will run "less |
366 |
|
securely". |
367 |
|
x) Try NetBSD/arc 4.x! (It seems to work with disk images!) |
368 |
|
x) NetBSD/pmax 4 install instructions: xterm instead of vt100! |
369 |
|
x) BETTER DEVICE EXAMPLES! |
370 |
|
o) Move away from technical.html to somewhere new. |
371 |
|
o) DEVICE_TICK |
372 |
|
o) Implement example devices using interrupts, dyntrans |
373 |
|
memory access, etc.? |
374 |
|
x) Document the dyntrans core? |
375 |
|
x) Rewrite the section about experimental devices, after the |
376 |
|
framebuffer acceleration has been implemented, and demos |
377 |
|
written. (Symbolic names instead of numbers; example |
378 |
|
use cases, etc. Mention demo files that use the various |
379 |
|
features?) |
380 |
|
x) "a very simple linear framebuffer device (for graphics output)" |
381 |
|
under "which machines does gxemul emulate" ==> better |
382 |
|
description? |
383 |
|
x) Better description on how to set up a cross compiler? |
384 |
|
Example for MIPS64. |
385 |
|
o) Automagic documentation generation? |
386 |
|
x) machines, cpus, devices. |
387 |
x) REMEMBER that several machines/devices can be in |
x) REMEMBER that several machines/devices can be in |
388 |
the same source file! |
the same source file! |
389 |
o) Try to rewrite the install instructions for those machines |
o) Try to rewrite the install instructions for those machines |
390 |
that use 3MAX into using CATS? (To remove the need to a raw |
that use 3MAX into using CATS or hpcmips? (To remove the need |
391 |
ffs partition using up all of the disk image.) |
to use a raw ffs partition, using up all of the disk image.) |
392 |
|
|
393 |
More generic out_of_memory error reporting, and check everywhere! |
More generic out_of_memory error reporting, and check everywhere! |
394 |
Causes: OpenBSD has low default limits for normal users. |
Causes: OpenBSD has low default limits for normal users. |
398 |
Unix systems usually allow processes to allocate virtual |
Unix systems usually allow processes to allocate virtual |
399 |
memory beyond the amount of RAM in the machine.) |
memory beyond the amount of RAM in the machine.) |
400 |
|
|
|
Breakpoints: 32-bit vs 64-bit sign extension for MIPS, warnings, etc. |
|
|
Use the debugger's symbolic name stuff. (which will have to be |
|
|
extended soon to support stuff like "2*x + symbol + y" etc. cool |
|
|
stuff) |
|
|
|
|
401 |
The Device subsystem: |
The Device subsystem: |
402 |
x) allow devices to be moved and/or changed in size (down to a |
x) allow devices to be moved and/or changed in size (down to a |
403 |
minimum size, etc, or up to a max size) |
minimum size, etc, or up to a max size); if there is a collision, |
404 |
|
return false. It is up to the caller to handle this situation! |
405 |
|
x) NOTE: Translations must be invalidated, both for |
406 |
|
registering new devices, and for moving existing ones. |
407 |
|
cpu->invalidate translation caches, for all CPUs that |
408 |
|
are connected to a specific memory. |
409 |
x) keep track of interrupts and busses? actually, allowing any device |
x) keep track of interrupts and busses? actually, allowing any device |
410 |
to be a bus might be a nice idea. |
to be a bus might be a nice idea. |
411 |
x) turn interrupt controllers into devices? :-) |
x) turn interrupt controllers into devices? :-) |
412 |
x) refactor various clocks/nvram/cmos into one device? |
x) refactor various clocks/nvram/cmos into one device? |
413 |
|
|
|
Clocks: |
|
|
x) General framework for automagic clock adjustment for _all_ |
|
|
kinds of clocks and timers. (Which should be possible to turn |
|
|
off, of course, like the way DECstation emulation works now.) |
|
|
|
|
414 |
PCI: |
PCI: |
415 |
x) last write was ffffffff ==> fix this, it should be used |
x) last write was ffffffff ==> fix this, it should be used |
416 |
together with a mask to get the correct bits. also, not ALL |
together with a mask to get the correct bits. also, not ALL |
417 |
bits are size bits! (lowest 4 vs lowest 2?) |
bits are size bits! (lowest 4 vs lowest 2?) |
418 |
x) add support for address fixups |
x) add support for address fixups |
419 |
x) generalize the interrupt routing stuff (lines etc). this should |
x) generalize the interrupt routing stuff (lines etc) |
|
be per machine? or per bus, that's better |
|
|
x) add a "pcn" NIC (AMD PCnet32 Lance 79c970 (PCI 1022:2000)), |
|
|
could be useful for several machine modes (Malta, Algor, evbarm, |
|
|
hp700?, macppc, etc.) |
|
|
|
|
|
Network layer: |
|
|
o) DHCP (for Debian and BSD installers :-) |
|
|
o) increase performance |
|
|
o) don't rely on NetBSD-ish usage |
|
|
o) Multiple networks per emulation, and let different |
|
|
NICs in machines connect to different networks. |
|
|
o) many other issues: see src/net.c |
|
420 |
|
|
421 |
Busses: |
Clocks and timers: |
422 |
o) Redesign the entire "mainbus" concept! |
x) DON'T HARDCODE 100 HZ IN cpu_mips_coproc.c! |
423 |
o) Busses should be placed in a hierarchical tree! |
x) Test the 8253? Right now it doesn't seem to be used? |
424 |
o) Easily configurable interrupt routing in SMP systems. |
x) NetWinder timeofday is incorrect! |
425 |
o) Specific clock/bus speeds, cpu speeds etc. |
x) Cobalt TOD is incorrect! |
426 |
o) Synchronization over network? or at least in dyntrans within |
x) Go through all other machines, one by one, and fix them. |
|
one emulated machine |
|
|
o) dev->bus: TurboChannel, PCMCIA, ADB? |
|
427 |
|
|
428 |
Config file parser: |
Config file parser: |
429 |
o) Rewrite it from scratch! |
o) Rewrite it from scratch! |
430 |
o) Usage of any expression available through the debugger |
o) Usage of any expression available through the debugger |
431 |
|
o) Allow interrupt controllers to be added! and interrupts |
432 |
|
to be used in more ways than before |
433 |
o) Support for running debugger commands (like the -c |
o) Support for running debugger commands (like the -c |
434 |
command line option) |
command line option) |
435 |
|
|
436 |
Floating point layer: |
Floating point layer: |
437 |
o) make it common enough to be used by _all_ emulation modes |
o) make it common enough to be used by _all_ emulation modes |
438 |
o) implement more stuff |
o) implement correct error/exception handling and rounding modes |
439 |
|
o) implement more helper functions (i.e. add, sub, mul...) |
440 |
o) non-IEEE modes (i.e. x86)? |
o) non-IEEE modes (i.e. x86)? |
441 |
|
|
442 |
Userland emulation: |
Userland emulation: |
445 |
|
|
446 |
Sound: |
Sound: |
447 |
x) generic sound framework |
x) generic sound framework |
448 |
x) add one or more sound cards as devices |
x) add one or more sound cards as devices; add a testmachine |
449 |
|
sound card first? |
450 |
|
x) Dreamcast sound? Generic PCI sound cards? |
451 |
|
|
452 |
ASC SCSI controller: |
ASC SCSI controller: |
453 |
x) NetBSD/arc 2.0 uses the ASC controller in a way which GXemul |
x) NetBSD/arc 2.0 uses the ASC controller in a way which GXemul |
454 |
cannot yet handle. (NetBSD 1.6.2 works ok.) (Possibly a problem |
cannot yet handle. (NetBSD 1.6.2 works ok.) (Possibly a problem |
455 |
in NetBSD itself, http://mail-index.netbsd.org/source-changes/ |
in NetBSD itself, http://mail-index.netbsd.org/source-changes/ |
456 |
2005/11/06/0024.html suggests that.) |
2005/11/06/0024.html suggests that.) |
457 |
|
NetBSD 4.x seems to work? :) |
458 |
|
|
459 |
Caches / memory hierarchies: (this is mostly MIPS-specific) |
Caches / memory hierarchies: (this is mostly MIPS-specific) |
460 |
o) src/memory*.c: Implement correct cache emulation for |
o) src/memory*.c: Implement correct cache emulation for |
473 |
possible. |
possible. |
474 |
|
|
475 |
File/disk/symbol handling: |
File/disk/symbol handling: |
476 |
|
o) Make sure that disks can be added/removed during runtime! |
477 |
|
(Perhaps this needs a reasonably large re-write.) |
478 |
o) Remove some of the complexity in file format guessing, for |
o) Remove some of the complexity in file format guessing, for |
479 |
Ultrix kernels that are actually disk images? |
Ultrix kernels that are actually disk images? |
480 |
o) Better handling of tape files |
o) Better handling of tape files |
481 |
o) Read function argument count and types from binaries? (ELF?) |
o) Read function argument count and types from binaries? (ELF?) |
482 |
o) Better demangling of C++ names. Note: GNU's C++ differs from e.g. |
o) Better demangling of C++ names. Note: GNU's C++ differs from e.g. |
483 |
Microsoft's C++, so multiple schemes must be possible. See |
Microsoft's C++, so multiple schemes must be possible. See |
486 |
Userland ABI emulation: |
Userland ABI emulation: |
487 |
o) see src/useremul.c |
o) see src/useremul.c |
488 |
|
|
|
Terminal/console: |
|
|
o) allow emulated serial ports to be connected to the outside |
|
|
world in a more generic way, or even to other emulated |
|
|
machines(?) |
|
|
|
|
|
Save state of the whole emulated machine, to be able to load it back |
|
|
in later? (Memory, all device's states, all registers and |
|
|
so on. Like taking a snapshot. (SimOS seems to do this, |
|
|
according to its website.)) |
|
|
|
|
489 |
Better framebuffer and X-windows functionality: |
Better framebuffer and X-windows functionality: |
490 |
|
o) Generalize the update_x1y1x2y2 stuff to an extend-region() |
491 |
|
function... |
492 |
o) -Yx sometimes causes crashes. |
o) -Yx sometimes causes crashes. |
493 |
o) Simple device access to framebuffer_blockcopyfill() etc, |
o) Simple device access to framebuffer_blockcopyfill() etc, |
494 |
and text output (using the built-in fonts), for dev_fb. |
and text output (using the built-in fonts), for dev_fb. |
499 |
o) Non-resizable windows? Or choose scaledown depending |
o) Non-resizable windows? Or choose scaledown depending |
500 |
on size (and center the image, with a black border). |
on size (and center the image, with a black border). |
501 |
o) Different scaledown on different windows? |
o) Different scaledown on different windows? |
502 |
|
o) Non-integral scale-up? (E.g. 640x480 -> 1024x768) |
503 |
o) Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus) |
o) Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus) |
504 |
o) Bug reported by Elijah Rutschman on MacOS with weird |
o) Bug reported by Elijah Rutschman on MacOS with weird |
505 |
keys (F5 = cursor down?). |
keys (F5 = cursor down?). |
513 |
o) Generalize the framebuffer stuff by moving _ALL_ X11 |
o) Generalize the framebuffer stuff by moving _ALL_ X11 |
514 |
specific code to src/x11.c! |
specific code to src/x11.c! |
515 |
|
|
|
Statistics: (this could be interesting) |
|
|
o) Save to file and show graphics. It should be possible to |
|
|
run gxemul after a simulation to just show the graphics, |
|
|
or convert to a .ppm or .tga or similar. |
|
|
o) memory accesses (to measure cache efficiency and |
|
|
page coloring efficiency) |
|
|
o) nr of simultaneous ASIDs in use in the TLB, for MIPS |
|
|
o) percentage of time spent in different "states", such as |
|
|
running userland code, kernel code, or idling (for CPUs |
|
|
that have such an instruction, or whenever the PC is |
|
|
inside a specific idle-function (address range)). |
|
|
Possible additional state (for example on R3000): caches |
|
|
disabled. |
|
|
o) position of read/write on (SCSI) disks |
|
|
|
|