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

Diff of /trunk/TODO

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC revision 40 by dpavlin, Mon Oct 8 16:22:11 2007 UTC
# Line 1  Line 1 
1  $Id: TODO,v 1.324 2006/07/22 10:23:39 debug Exp $  $Id: TODO,v 1.489 2007/05/01 04:05:06 debug Exp $
2    
3  Hm. This file is in random order, and not all parts of it are up-to-date.  --------------------------------------------
4    
5  Code cleanup:  Testing for the next release (0.4.5.1):
         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.  
6    
7  Documentation:  TEST DISK OVERLAY IMAGES
8          x)  Rewrite the section about experimental devices, after the  TEST LANDISK/SUPERH EMULATION MODES
9              framebuffer acceleration has been implemented, and demos  REGRESSION TESTS FOR ALL OTHER SUPPORTED GUEST OSES
10              written. (Symbolic names instead of numbers; example  
11              use cases, etc. Mention demo files that use the various  # NetBSD/pmax 3.1 or 1.6.2      OK
12              features?)  # NetBSD/arc 1.6.2              OK
13          x)  "a very simple linear framebuffer device (for graphics output)"  # NetBSD/hpcmips 3.1            OK
14              under "which machines does gxemul emulate" ==> better  # NetBSD/cobalt 3.1             OK
15              description?  # NetBSD/evbmips 3.1            OK
16          x)  Better description on how to set up a cross compiler?  # NetBSD/algor 3.1              OK
17              Example for MIPS64.  # NetBSD/sgimips 3.1            OK
18    # NetBSD/cats 3.1               OK
19    # NetBSD/evbarm 2.1             OK
20    # NetBSD/netwinder 3.1          OK
21    # NetBSD/prep 2.1               OK
22    # NetBSD/macppc 3.1             OK
23    # NetBSD/dreamcast 3.1 MD       OK
24    # NetBSD/dreamcast 3.1 LiveCD   OK
25    # Linux/dreamcast Live CD       OK
26    # OpenBSD/pmax 2.8-BETA         not tested because of lack of time
27    # OpenBSD/cats 4.0              OK
28    # OpenBSD/landisk 4.1           OK
29    # Ultrix/RISC 4.5               OK
30    # Sprite for DECstation         OK
31    # Debian GNU/Linux for pmax     not tested because of lack of time
32    
33    Optional:
34    # OpenBSD/sgi                   FAILED to boot after setup (as expected)
35    
36  Long-term implementation:  --------------------------------------------
         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)  Rewrite the networking stack; make OpenBSD work better as a guest  
             OS, fix the performance problems, make Linux work with DHCP, etc.  
         x)  Make the wdc controller work with modern versions of NetBSD!  
         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)  Alignment exceptions (MIPS, PPC, ARM?, ...)  
37    
38  Long-term design:  Some things, in totally random order, that I'd like to fix:
39    (Some items in this list are possibly out-of-date by now.)
40    
41    Dyntrans:
42          x)  Instruction combination collisions? How to avoid easily...          x)  Instruction combination collisions? How to avoid easily...
43          o)  Actually use the settings object, better debugger stuff, etc!          x)  Think about how to do both SHmedia and SHcompact in a reasonable
44          o)  Debugger command for enabling/disabling instruction statistics              way! (Or AMD64 long/protected/real, for that matter.)
45              during runtime.   machine.statistics = on|off          x)  68K emulation; think about how to do variable instruction
46          x)  MAINBUS REDESIGN!              lengths across page boundaries.
         x)  Clock framework! Go through all clock devices, make sure they  
             return correct data, and run at correct speeds!  
47          x)  Dyntrans with valgrind-inspired memory checker. (In memory_rw,          x)  Dyntrans with valgrind-inspired memory checker. (In memory_rw,
48              it would be reasonably simple to add; in each individual fast              it would be reasonably simple to add; in each individual fast
49              load/store routine = a lot more work, and it would become              load/store routine = a lot more work, and it would become
50              kludgy very fast.)              kludgy very fast.)
51          x)  Dyntrans with SMP... lots of work to be done here.          x)  Dyntrans with SMP... lots of work to be done here.
52          x)  Dyntrans with cache emulation... lots of work here as well.          x)  Dyntrans with cache emulation... lots of work here as well.
53          x)  Reimplement the config file parser from scratch.          x)  Remove the concept of base RAM completely; it would be more
54                generic to allow RAM devices to be used "anywhere".
55  Test:          o)  dev_mp doesn't work well with dyntrans yet
56          x)  Test with more than one Sprite instance on an emulated network!          o)  In general, IPIs, CAS, LL/SC etc must be made to work with dyntrans
57          x)  NetBSD 4.x, once it is out.          x)  Redesign/rethink the delay slot mechanism used for e.g. MIPS,
58                    so that it caches a translation (that is, an instruction
59  -------------------------------------------------------------------------------                  word and the instr_call it was translated to the last
60                    time), so that it doesn't need to do slow
61                    to_be_translated for each end of page?
62            x)  Program Counter statistics:
63                    Per machine? What about SMP? All data to the same file?
64                    A debugger command should be possible to use to enable/
65                    disable statistics gathering.
66                    Configuration file option!
67            x)  Breakpoints:
68                    o) Physical vs virtual addresses!
69                    o) 32-bit vs 64-bit sign extension for MIPS, and others?
70            x)  INVALIDATION should cause translations in _all_ cpus to be
71                invalidated, e.g. on a write to a write-protected page
72                (containing code)
73            x)  16-bit encodings? (MIPS16, ARM Thumb, 32-bit SH on SH64)
74            x)  Lots of other stuff: see src/cpus/README_DYNTRANS
75            x)  Native code generation backends:
76                    o)  think carefully about this.
77                    o)  simple syntax for emitting opcodes; backend implementation
78                        must be optional, so I don't have to write more code
79                        than necessary. after all, the non-native (C) code should
80                        always work.
81                    o)  convert into native code only after an entire
82                            block has been translated? probably best.
83                    o)  the "almost native" opcodes may be rearranged,
84                        "peep-hole optimized", etc. and then as a separate step
85                        this list of almost native opcodes is written out
86                        as native code.
87                    o)  think about delay slots at the end of a block!
88                    o)  x86/amd64 code generator can be very similar... perhaps
89                    o)  NOTE that generation is per _ABI_, not per host arch!
90                        the configure script must detect ABI!!!
91                    o)  branches to already translated code blocks can
92                            link the blocks together
93                    o)  load/store are the most important to optimize
94    
95  Simple Valgrind-like checks?  Simple Valgrind-like checks?
96          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
# Line 81  Simple Valgrind-like checks? Line 112  Simple Valgrind-like checks?
112                      in warnings. (free() must be modified to free the                      in warnings. (free() must be modified to free the
113                      actually allocated address.)                      actually allocated address.)
114    
 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  
   
115  MIPS:  MIPS:
116          +)  Some more work on opcodes.          o)  Nicer MIPS status bits in register dumps.
117            o)  Alignment exceptions.
118            o)  Floating point exception correctness.
119            o)  Fix this? Triggered by NetBSD/sgimips? Hm:
120                    to_be_translated(): TODO: unimplemented instruction:
121                    000000000065102c: 00200800 (d)  rot_00  at,zr,0
122            o)  Some more work on opcodes.
123                  x) MIPS64 revision 2.                  x) MIPS64 revision 2.
124                          o)  Find out which actual CPUs implement the rev2 ISA!                          o)  Find out which actual CPUs implement the rev2 ISA!
125                            o)  DROTR32 and similar MIPS64 rev 2 instructions,
126                                which have a rotation bit which differs from
127                                previous ISAs.
128                            o)  EI and DI instructions for MIPS64/32 rev 2.
129                                NOTE: These are _NOT_ the same as for R5900!
130                  x) _MAYBE_ TX79 and R5900 actually differ in their                  x) _MAYBE_ TX79 and R5900 actually differ in their
131                     opcodes? Check this carefully!                     opcodes? Check this carefully!
132          o)  Dyntrans: Count register updates are probably not 100% correct yet.          o)  Dyntrans: Count register updates are probably not 100% correct yet.
133          o)  Refactor code for performance and readability/maintainability.          o)  Refactor code for performance and readability/maintainability.
         o)  Instruction combinations? Possible candidates (but profile first!):  
                 o)  R2000/R3000 cache cleaner!  
                 o)  strlen, memset loops etc  
                 o)  multiple loads/stores in a row, e.g. relative to  
                     the stack pointer  
                 o)  lui + or, lui + add, and 64-bit variants  
                 o)  jr ra + addiu to the v0 register?  
                 o)  compare + branch  
         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!  
134          o)  (Re)implement 128-bit loads/stores for R5900.          o)  (Re)implement 128-bit loads/stores for R5900.
135          o)  R4000 and others:          o)  R4000 and others:
136                  x)  watchhi/watchlo exceptions, and other exception                  x)  watchhi/watchlo exceptions, and other exception
137                      handling details                      handling details
138          o)  R10000 and others:  (R12000, R14000 ?)          o)  R10000 and others:  (R12000, R14000 ?)
139                    x)  The code before the line
140                            /*  reg[COP0_PAGEMASK] = cpu->cd.mips.coproc[0]->tlbs[0].mask & PAGEMASK_MASK;  */
141                        in cpu_mips.c is not correct for R10000 according to
142                        Lemote's Godson patches for GXemul. TODO: Go through all
143                        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
144                        and make sure everything works with R10000.
145                        Then test with OpenBSD/sgi?
146                    x)  Entry LO mask (as above).
147                  x)  memory space, exceptions, ...                  x)  memory space, exceptions, ...
148                  x)  use cop0 framemask for tlb lookups                  x)  use cop0 framemask for tlb lookups
149                      (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)
150    
151  Dyntrans:  SuperH:
152          x)  Redesign/rethink the delay slot mechanism used for e.g. MIPS,          x)  SH4 performance is VERY low when running user-space instructions,
153                  so that it caches a translation (that is, an instruction              because I actually simulate the 4-entry ITLB as being separate
154                  word and the instr_call it was translated to the last              from the 64-entry DTLB. This is correct, but VERY slow. I need
155                  time), so that it doesn't need to do slow              to experiment with _not_ simulating it in too much detail.
156                  to_be_translated for each end of page?          x)  SH4 interrupt controller:
157          x)  Program Counter statistics:                  x)  MASKING should be possible!
158                  Per machine? What about SMP? All data to the same file?          x)  SH4 DMA (0xffa00000)
159                  A debugger command should be possible to use to enable/          x)  SH4 UBC (0xff200000)
160                  disable statistics gathering.          x)  Store queues can copy 32 bytes at a time, there's no need to
161                  Configuration file option!              copy individual 32-bit words. (Performance improvement.)
162          x)  Common fatal_abort() function, which drops into the debugger          x)  SH4 BSC (Bus State Controller)
163                  without continuing.          x)  Instruction tracing should include symbols for branch targets,
164          x)  INVALIDATION should cause translations in _all_ cpus to be              and so on, to make the output more human readable.
165              invalidated, e.g. on a write to a write-protected page          x)  SH3-specific devices: Pretty much everything!
166              (containing code)          x)  NetBSD/evbsh3, mmeye, hpcsh! Linux?
167          x)  Call/return hints?          x)  Replace pc-relative loads with immediate load, if within the
168          x)  16-bit encodings? (MIPS16, ARM Thumb, SH3, ...)              same page. (Similar to the same optimization for ARM.)
169          x)  H8?          x)  Floating point speed!
170          x)  Lots of other stuff: see src/cpus/README_DYNTRANS          x)  Floating point exception correctness.
171          x)  true recompilation backend? think carefully about this,          x)  NetBSD HEAD (as of April 2007) hangs during bootup, because it
172              experiment in a separate project (not in GXemul)              turns on/off interrupts in an unfortunately synchronized way
173                  o) First test would be to just implement a simple              with dyntrans. This needs to be fixed.
174                     instruction such as MIPS' addiu or lui, on AMD64          x)  Exceptions for unaligned load/stores. OpenBSD/landisk uses
175                     hosts...              this mechanism for its reboot code (machine_reset).
176          x)  Idle loop detection? (Depends on target.) Could be turned          x)  Think carefully about how to implement SH5/SH64 (for evbsh5).
177              into usleep(1) or similar on the host... except when doing  
178              e.g. SMP emulation. Then it becomes trickier.  Landisk SH4:
179            x)  When NetBSD/landisk 4.0 has been released, make sure it works
180                in the emulator. (Update documentation, etc.)
181    
182    Dreamcast:
183            x)  G2 DMA
184            x)  LAN adapter (dev_mb8696x.c).  NetBSD root-on-nfs.
185            x)  PVR:  Lots of stuff. See dev_pvr.c.
186            x)  Better GDROM support
187            x)  Modem
188            x)  PCI bridge/bus?
189            x)  Maple bus:
190                    x)  Correct controller input
191                    x)  Mouse input
192            x)  Software emulation of BIOS calls:
193                    x)  GD-ROM emulation: Use the GDROM device.
194                    x)  Use the VGA font as a fake ROM font. (Better than
195                        nothing.)
196            x)  Make as many as possible of the KOS examples run!
197            x)  More homebrew demos/games.
198            x)  SPU: Sound emulation (ARM cpu).
199            x)  VME processor emulation? "(Sanyo LC8670 "Potato")" according to
200                Wikipedia, LC86K87 according to Comstedt's page. See
201                http://www.maushammer.com/vmu.html for a good description of
202                the differences between LC86104C and the one used in the VME.
203    
204  Alpha:  Alpha:
205          o)  Virtual memory (tlbs etc)          x)  OSF1 PALcode, Virtual memory support.
206          o)  Get {NetBSD,OpenBSD,Linux}/alpha booting. :)          x)  PALcode replacement! PAL1E etc opcodes...?
207            x)  Interrupt/exception/trap handling.
208  SPARC:          x)  Floating point exception correctness.
209          o)  Add all registers (floating point, control regs etc)          x)  More work on bootup memory and register contents.
210          o)  Save/restore register windows etc!          x)  More Alpha machine types, so it could work with
211          o)  Load/stores!              OpenBSD, FreeBSD, and Linux too?
212    
213    SPARC (both the ISA and the machines):
214            o)  Implement Adress space identifiers; load/stores etc.
215            o)  Exception/trap/interrupt handling.
216            o)  Save/restore register windows etc! Both v9 and pre-v9!
217            o)  Finish the subcc and addcc flag computation code.
218            o)  Add more registers (floating point, control regs etc)
219          o)  Disassemly of some more instructions?          o)  Disassemly of some more instructions?
220          o)  Are sll etc 32-bit sign-extending or zero-extending?          o)  Are sll etc 32-bit sign-extending or zero-extending?
221          o)  Finish the cmp (subcc) flag computation code.          o)  Floating point exception correctness.
         o)  Finish the GDB register stuff.  
222          o)  SPARC v8, v7 etc?          o)  SPARC v8, v7 etc?
223            o)  More machine modes and devices.
224    
225  Debugger:  Debugger:
226          o)  How does SMP debugging work? Does it simply use "threads"?          o)  How does SMP debugging work? Does it simply use "threads"?
# Line 164  Debugger: Line 229  Debugger:
229          o)  Try to make the debugger more modular and, if possible, reentrant!          o)  Try to make the debugger more modular and, if possible, reentrant!
230          o)  Remove the emul command? (But show network info if showing          o)  Remove the emul command? (But show network info if showing
231                  machines?)                  machines?)
232          o)  Generalize the expression evaluator. (debugger_expr.c?)          o)  Evaluate expressions within []? That would allow stuff like
233                  settable variables      ("show nr of instructions on average")                  cpu[x] where x is an expression.
234                  emul[x]                 defaults to current emul          o)  Settings:
235                  machine[x]              defaults to current machine                  x)  Special handlers for Write!
236                  cpu[x]                  defaults to currently focused cpu                          +)  MIPS coproc regs
237                  registers               cpu arch dependent (#-prefix)                          +)  Alpha/MIPS/SPARC zero registers
238                  symbols                 @-prefix                          +)  x86 64/32/16-bit registers
239                  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.  
240          o)  see src/debugger.c for more          o)  see src/debugger.c for more
241    
242  POWER/PowerPC:  POWER/PowerPC:
243            x)  Fix DECR timer speed, so it matches the host.
244            x)  NetBSD/prep 3.x triggers a possible bug in the emulator:
245                <wdc_exec_command(0xd005e514,0xd60cdd30,0,8,..)>
246                  <ata_get_xfer(0,0xd60cdd30,0,8,..)>
247                    <0x26c550(&ata_xfer_pool,2,0,8,..)>
248                    <0x35c71c(0x3f27000,0,52,8,..)>
249                  <ata_exec_xfer(0xd005e4c8,0x3f27000,0,13,..)>
250                    <atastart(0xd005e4c8,0x3f27000,0,13,..)>
251                      <__wdccommand_start(0xd005e4c8,0x3f27000,0,13,..)>
252                        <bsw1(&prep_isa_io_space_tag,0x800001f6,0,176,..)>
253                    [ wdc: write to SDH: 0xb0 (sectorsize 2, lba=1, drive 1, head 0) ]
254                        <wdcwait(0xd005e4c8,72,64,0xbb8,..)>
255                          <0x198120(0xd005e4c8,72,64,0xbb8,..)>
256                            <bsr1(&prep_isa_io_space_tag,0,0,0xbb8,..)>
257                            <delay(100,0,0,0xbb8,..)>
258                Note: <bsr1(&prep_isa_io_space_tag,0,0,0xbb8,..)>
259          x)  PPC optimizations; instr combs          x)  PPC optimizations; instr combs
260          x)  64-bit stuff: either Linux on G5, or perhaps some hobbyist          x)  64-bit stuff: either Linux on G5, or perhaps some hobbyist
261                  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!  
262          x)  macppc: adb controller; keyboard (for framebuffer mode)          x)  macppc: adb controller; keyboard (for framebuffer mode)
263          x)  make OpenBSD/macppc work (PCI controller stuff)          x)  make OpenBSD/macppc work (PCI controller stuff)
264            x)  Floating point exception correctness.
265            x)  Alignment exceptions.
266    
267    PReP:
268            x)  Clock time! ("Bad battery blah blah")
269    
270  Algor:  Algor:
271          PCI and ISA and LOCAL interrupts! --> wdc could start working          o)  Other models than the P5064?
272          Add interrupt controller in dev_algor.c.          o)  PCI interrupts... needed for stuff like the tlp NIC?
273    
274    BeBox:
275            o)  Interrupts. There seems to be a problem with WDC interrupts
276                "after a short while", although a few interrupts get through?
277            o)  Perhaps find a copy of BeOS and try it?
278    
279    HPCmips:
280            x)  Mouse/pad support! :)
281            x)  A NIC? (As a PCMCIA device?)
282    
283    M88K:
284            o)  Everything. :)
285                    o)  More instruction disassembly!
286                    o)  Implement more instructions.
287                    o)  has-delay-slot (for debugging)
288                    o)  Find manuals!
289                    o)  MMU stuff
290                    o)  Exceptions
291                    o)  FPU
292                    o)  Control registers
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:
305          o)  debian/cats crashes because of unimplemented coproc stuff.                  x)  OpenBSD/zaurus
306                    x)  NetBSD/zaurus? See the following URL:
307                        http://mail-index.netbsd.org/port-arm/2006/11/19/0000.html
308            o)  Debian/cats crashes because of unimplemented coproc stuff.
309              fix this?              fix this?
310    
311    Test machines:
312            o)  dev_fb block fill and copy
313            o)  dev_fb draw characters (from the built-in font)?
314            o)  dev_fb input device? mouse pointer coordinates and buttons
315                    (allow changes in these to cause interrupts as well?)
316            o)  Redefine the halt() function so that it stops "sometimes
317                soon", i.e. usage in demo code should be:
318                    for (;;) {
319                            halt();
320                    }
321    
322    Better CD Image file support:
323            x)  Support CD formats that contain more than 1 track, e.g.
324                CDI files (?). These can then contain a mixture of e.g. sound
325                and data tracks, and booting from an ISO filesystem path
326                would boot from [by default] the first data track.
327                (This would make sense for e.g. Dreamcast CD images, or
328                possibly other live-CD formats.)
329    
330    Networking:
331            x)  Redesign of the networking subsystem, at least the NAT translation
332                    part. The current way of allowing raw ethernet frames to be
333                    transfered to/from the emulator via UDP should probably be
334                    extended to allow the frames to be transmitted other ways as
335                    well.
336            x)  Also adding support for connecting ttys (either to xterms, or to
337                    pipes/sockets etc, or even to PPP->NAT or SLIP->NAT :-).
338            x)  Documentation updates (!) are very important, making it easier to
339                    use the (already existing) network emulation features.
340            x)  Fix performance problems caused by only allowing a
341                single TCP packet to be unacked.
342            x)  Don't hardcode offsets into packets!
343            x)  Test with lower than 100 max tcp/udp connections,
344                to make sure that reuse works!
345            x)  Make OpenBSD work better as a guest OS!
346            x)  DHCP? Debian doesn't actually send DHCP packets, even
347                    though it claims to? So it is hard to test.
348            x)  Multiple networks per emulation, and let different
349                NICs in machines connect to different networks.
350            x)  Support VDE (vde.sf.net)? Easiest/cleanest (before a
351                redesign of the network framework has been done) is
352                probably to connect it using the current (udp) solution.
353            x)  Allow SLIP connections, possibly PPP, in addition to
354                ethernet?
355    
356  Cache simulation:  Cache simulation:
357          o)  Command line flags for:          o)  Command line flags for:
358                  o)  CPU endianness?                  o)  CPU endianness?
# Line 235  Cache simulation: Line 369  Cache simulation:
369              is another option (easier to implement, but very very slow).              is another option (easier to implement, but very very slow).
370    
371  Documentation:  Documentation:
372          o)  machines, cpus, devices.          x)  Note about sandboxing/security:
373          o)  Automagic documentation generation:                  Not all emulated instructions fail in the way they would
374                    do on real hardware (e.g. a userspace program writing to
375                    a system register might work in GXemul, but it would
376                    fail on real hardware).  Sandbox = contain from the
377                    host OS. But the emulated programs will run "less
378                    securely".
379            x)  Try NetBSD/arc 4.x! (It seems to work with disk images!)
380            x)  NetBSD/pmax 4 install instructions: xterm instead of vt100!
381            x)  BETTER DEVICE EXAMPLES!
382                    o)  Move away from technical.html to somewhere new.
383                    o)  DEVICE_TICK
384                    o)  Implement example devices using interrupts, dyntrans
385                        memory access, etc.?
386            x)  Document the dyntrans core?
387            x)  Rewrite the section about experimental devices, after the
388                framebuffer acceleration has been implemented, and demos
389                written. (Symbolic names instead of numbers; example
390                use cases, etc. Mention demo files that use the various
391                features?)
392            x)  "a very simple linear framebuffer device (for graphics output)"
393                under "which machines does gxemul emulate" ==> better
394                description?
395            x)  Better description on how to set up a cross compiler?
396                Example for MIPS64.
397            o)  Automagic documentation generation?
398                    x)  machines, cpus, devices.
399                  x)  REMEMBER that several machines/devices can be in                  x)  REMEMBER that several machines/devices can be in
400                          the same source file!                          the same source file!
401          o)  Try to rewrite the install instructions for those machines          o)  Try to rewrite the install instructions for those machines
402              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
403              ffs partition using up all of the disk image.)              to use a raw ffs partition, using up all of the disk image.)
404    
405  More generic out_of_memory error reporting, and check everywhere!  More generic out_of_memory error reporting, and check everywhere!
406          Causes: OpenBSD has low default limits for normal users.          Causes: OpenBSD has low default limits for normal users.
# Line 251  More generic out_of_memory error reporti Line 410  More generic out_of_memory error reporti
410                  Unix systems usually allow processes to allocate virtual                  Unix systems usually allow processes to allocate virtual
411                  memory beyond the amount of RAM in the machine.)                  memory beyond the amount of RAM in the machine.)
412    
 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)  
   
413  The Device subsystem:  The Device subsystem:
414          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
415              minimum size, etc, or up to a max size)              minimum size, etc, or up to a max size); if there is a collision,
416                return false. It is up to the caller to handle this situation!
417            x)  NOTE: Translations must be invalidated, both for
418                registering new devices, and for moving existing ones.
419                cpu->invalidate translation caches, for all CPUs that
420                are connected to a specific memory.
421          x)  keep track of interrupts and busses? actually, allowing any device          x)  keep track of interrupts and busses? actually, allowing any device
422              to be a bus might be a nice idea.              to be a bus might be a nice idea.
423          x)  turn interrupt controllers into devices? :-)          x)  turn interrupt controllers into devices? :-)
424          x)  refactor various clocks/nvram/cmos into one device?          x)  refactor various clocks/nvram/cmos into one device?
425    
 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.)  
   
426  PCI:  PCI:
427            x)  Pretty much everything related to runtime configuration, device
428                slots, interrupts, etc must be redesigned/cleaned up. The current
429                code is very hardcoded and ugly.
430            o)  Allow cards to be added/removed during runtime more easily.
431            o)  Allow cards to be enabled/disabled (i/o ports, etc, like
432                NetBSD needs for disk controller detection).
433            o)  Allow devices to be moved in memory during runtime.
434            o)  Interrupts per PCI slot, etc. (A-D).
435            o)  PCI interrupt controller logic... very hard to get right,
436                because these differ a lot from one machine to the next.
437          x)  last write was ffffffff ==> fix this, it should be used          x)  last write was ffffffff ==> fix this, it should be used
438              together with a mask to get the correct bits. also, not ALL              together with a mask to get the correct bits. also, not ALL
439              bits are size bits! (lowest 4 vs lowest 2?)              bits are size bits! (lowest 4 vs lowest 2?)
440          x)  add support for address fixups          x)  add support for address fixups
441          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  
442    
443  Busses:  Clocks and timers:
444          o)  Redesign the entire "mainbus" concept!          x)  Fix the PowerPC DECR interrupt speed! (MacPPC and PReP speed, etc.)
445          o)  Busses should be placed in a hierarchical tree!          x)  DON'T HARDCODE 100 HZ IN cpu_mips_coproc.c!
446          o)  Easily configurable interrupt routing in SMP systems.          x)  Test the 8253? Right now it doesn't seem to be used?
447          o)  Specific clock/bus speeds, cpu speeds etc.          x)  NetWinder timeofday is incorrect! It seems to be exactly
448          o)  Synchronization over network? or at least in dyntrans within              1 day ahead of actual time?
449              one emulated machine          x)  Cobalt TOD is incorrect!
450          o)  dev->bus: TurboChannel, PCMCIA, ADB?          x)  Go through all other machines, one by one, and fix them.
451    
452  Config file parser:  Config file parser:
453          o)  Rewrite it from scratch!          o)  Rewrite it from scratch!
454          o)  Usage of any expression available through the debugger          o)  Usage of any expression available through the debugger
455            o)  Allow interrupt controllers to be added! and interrupts
456                to be used in more ways than before
457          o)  Support for running debugger commands (like the -c          o)  Support for running debugger commands (like the -c
458              command line option)              command line option)
459    
460  Floating point layer:  Floating point layer:
461          o)  make it common enough to be used by _all_ emulation modes          o)  make it common enough to be used by _all_ emulation modes
462          o)  implement more stuff          o)  implement correct error/exception handling and rounding modes
463            o)  implement more helper functions (i.e. add, sub, mul...)
464          o)  non-IEEE modes (i.e. x86)?          o)  non-IEEE modes (i.e. x86)?
465    
466  Userland emulation:  Userland emulation:
467          x)  Lots of stuff; freebsd and netbsd (and linux?) syscalls.          x)  Dynamic linking!
468          x)  Dynamic linking? Hm.          x)  Lots of stuff; freebsd, netbsd, linux, ... syscalls.
469            x)  Initial register/stack contents (environment, command line args).
470            x)  Return value (from main).
471            x)  mmap emulation layer
472            x)  errno emulation layer
473            x)  struct conversions for may syscalls
474    
475  Sound:  Sound:
476          x)  generic sound framework          x)  generic sound framework
477          x)  add one or more sound cards as devices          x)  add one or more sound cards as devices; add a testmachine
478                sound card first?
479            x)  Dreamcast sound? Generic PCI sound cards?
480    
481  ASC SCSI controller:  ASC SCSI controller:
482          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
483              cannot yet handle. (NetBSD 1.6.2 works ok.) (Possibly a problem              cannot yet handle. (NetBSD 1.6.2 works ok.) (Possibly a problem
484              in NetBSD itself, http://mail-index.netbsd.org/source-changes/              in NetBSD itself, http://mail-index.netbsd.org/source-changes/
485              2005/11/06/0024.html suggests that.)              2005/11/06/0024.html suggests that.)
486                NetBSD 4.x seems to work? :)
487    
488  Caches / memory hierarchies: (this is mostly MIPS-specific)  Caches / memory hierarchies: (this is mostly MIPS-specific)
489          o)  src/memory*.c: Implement correct cache emulation for          o)  src/memory*.c: Implement correct cache emulation for
# Line 339  Caches / memory hierarchies: (this is mo Line 502  Caches / memory hierarchies: (this is mo
502              possible.              possible.
503    
504  File/disk/symbol handling:  File/disk/symbol handling:
505            o)  Make sure that disks can be added/removed during runtime!
506                (Perhaps this needs a reasonably large re-write.)
507          o)  Remove some of the complexity in file format guessing, for          o)  Remove some of the complexity in file format guessing, for
508                  Ultrix kernels that are actually disk images?                  Ultrix kernels that are actually disk images?
509          o)  Better handling of tape files          o)  Better handling of tape files      
510          o)  Read function argument count and types from binaries? (ELF?)          o)  Read function argument count and types from binaries? (ELF?)
511          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.
512              Microsoft's C++, so multiple schemes must be possible. See              Microsoft's C++, so multiple schemes must be possible. See
# Line 350  File/disk/symbol handling: Line 515  File/disk/symbol handling:
515  Userland ABI emulation:  Userland ABI emulation:
516          o)  see src/useremul.c          o)  see src/useremul.c
517    
 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.))  
   
518  Better framebuffer and X-windows functionality:  Better framebuffer and X-windows functionality:
519            o)  Generalize the update_x1y1x2y2 stuff to an extend-region()
520                function...
521          o)  -Yx sometimes causes crashes.          o)  -Yx sometimes causes crashes.
522          o)  Simple device access to framebuffer_blockcopyfill() etc,          o)  Simple device access to framebuffer_blockcopyfill() etc,
523              and text output (using the built-in fonts), for dev_fb.              and text output (using the built-in fonts), for dev_fb.
# Line 371  Better framebuffer and X-windows functio Line 528  Better framebuffer and X-windows functio
528          o)  Non-resizable windows?  Or choose scaledown depending          o)  Non-resizable windows?  Or choose scaledown depending
529                  on size (and center the image, with a black border).                  on size (and center the image, with a black border).
530          o)  Different scaledown on different windows?          o)  Different scaledown on different windows?
531            o)  Non-integral scale-up? (E.g. 640x480 -> 1024x768)
532          o)  Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)          o)  Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)
533          o)  Bug reported by Elijah Rutschman on MacOS with weird          o)  Bug reported by Elijah Rutschman on MacOS with weird
534              keys (F5 = cursor down?).              keys (F5 = cursor down?).
# Line 384  Better framebuffer and X-windows functio Line 542  Better framebuffer and X-windows functio
542          o)  Generalize the framebuffer stuff by moving _ALL_ X11          o)  Generalize the framebuffer stuff by moving _ALL_ X11
543                  specific code to src/x11.c!                  specific code to src/x11.c!
544    
 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  
   

Legend:
Removed from v.28  
changed lines
  Added in v.40

  ViewVC Help
Powered by ViewVC 1.1.26