/[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 30 by dpavlin, Mon Oct 8 16:20:40 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 1  Line 1 
1  $Id: TODO,v 1.343 2006/08/14 18:46:30 debug Exp $  $Id: TODO,v 1.410 2006/11/06 05:32:38 debug Exp $
2    
3  Hm. This file is in random order, and not all parts of it are up-to-date.  This file is my list of things I want to work on in the future. It is in
4    random order, and some parts of it are probably out-to-date by now.
5    
6    
7  Implementation:  Dyntrans:
         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?  
   
 Documentation:  
         x)  "Install netbsd/pmax first" => only use the install kernel?  
         x)  Rewrite the section about experimental devices, after the  
             framebuffer acceleration has been implemented, and demos  
             written. (Symbolic names instead of numbers; example  
             use cases, etc. Mention demo files that use the various  
             features?)  
         x)  "a very simple linear framebuffer device (for graphics output)"  
             under "which machines does gxemul emulate" ==> better  
             description?  
         x)  Better description on how to set up a cross compiler?  
             Example for MIPS64.  
   
 Long-term design:  
8          x)  Instruction combination collisions? How to avoid easily...          x)  Instruction combination collisions? How to avoid easily...
9          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
10              way!              way! (Or AMD64 long/protected/real, for that matter.)
11          o)  Actually use the settings object, better debugger stuff, etc!          x)  68K emulation; think about how to do variable instruction
12          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!  
13          x)  Dyntrans with valgrind-inspired memory checker. (In memory_rw,          x)  Dyntrans with valgrind-inspired memory checker. (In memory_rw,
14              it would be reasonably simple to add; in each individual fast              it would be reasonably simple to add; in each individual fast
15              load/store routine = a lot more work, and it would become              load/store routine = a lot more work, and it would become
16              kludgy very fast.)              kludgy very fast.)
17          x)  Dyntrans with SMP... lots of work to be done here.          x)  Dyntrans with SMP... lots of work to be done here.
18          x)  Dyntrans with cache emulation... lots of work here as well.          x)  Dyntrans with cache emulation... lots of work here as well.
19          x)  Reimplement the config file parser from scratch.          o)  dev_mp doesn't work well with dyntrans yet
20            o)  In general, IPIs, CAS, LL/SC etc must be made to work with dyntrans
21  -------------------------------------------------------------------------------          x)  Redesign/rethink the delay slot mechanism used for e.g. MIPS,
22                    so that it caches a translation (that is, an instruction
23                    word and the instr_call it was translated to the last
24                    time), so that it doesn't need to do slow
25                    to_be_translated for each end of page?
26            x)  Program Counter statistics:
27                    Per machine? What about SMP? All data to the same file?
28                    A debugger command should be possible to use to enable/
29                    disable statistics gathering.
30                    Configuration file option!
31            x)  Breakpoints:
32                    o) Physical vs virtual addresses!
33                    o) 32-bit vs 64-bit sign extension for MIPS, and others?
34            x)  INVALIDATION should cause translations in _all_ cpus to be
35                invalidated, e.g. on a write to a write-protected page
36                (containing code)
37            x)  16-bit encodings? (MIPS16, ARM Thumb, 32-bit SH on SH64)
38            x)  Lots of other stuff: see src/cpus/README_DYNTRANS
39            x)  true recompilation backend? think carefully about this,
40                experiment in a separate project (not in GXemul)
41                    o) First test would be to just implement a simple
42                       instruction such as MIPS' addiu or lui, on AMD64
43                       hosts...
44    
45  Simple Valgrind-like checks?  Simple Valgrind-like checks?
46          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 91  Simple Valgrind-like checks? Line 62  Simple Valgrind-like checks?
62                      in warnings. (free() must be modified to free the                      in warnings. (free() must be modified to free the
63                      actually allocated address.)                      actually allocated address.)
64    
 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  
   
65  MIPS:  MIPS:
66          +)  Some more work on opcodes.          o)  Nicer MIPS status bits in register dumps.
67                  x) The "wait" instruction. How to implement this functionality?          o)  Alignment exceptions.
68                          (SMP, non-MIPS, interrupt correctness, host idling, ...)          o)  Floating point exception correctness.
69            o)  Fix this? Triggered by NetBSD/sgimips? Hm:
70                    to_be_translated(): TODO: unimplemented instruction:
71                    000000000065102c: 00200800 (d)  rot_00  at,zr,0
72            o)  Some more work on opcodes.
73                  x) MIPS64 revision 2.                  x) MIPS64 revision 2.
74                          o)  Find out which actual CPUs implement the rev2 ISA!                          o)  Find out which actual CPUs implement the rev2 ISA!
75                            o)  DROTR32 and similar MIPS64 rev 2 instructions,
76                                which have a rotation bit which differs from
77                                previous ISAs.
78                            o)  EI and DI instructions for MIPS64/32 rev 2.
79                                NOTE: These are _NOT_ the same as for R5900!
80                  x) _MAYBE_ TX79 and R5900 actually differ in their                  x) _MAYBE_ TX79 and R5900 actually differ in their
81                     opcodes? Check this carefully!                     opcodes? Check this carefully!
82          o)  Dyntrans: Count register updates are probably not 100% correct yet.          o)  Dyntrans: Count register updates are probably not 100% correct yet.
83          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!  
84          o)  (Re)implement 128-bit loads/stores for R5900.          o)  (Re)implement 128-bit loads/stores for R5900.
85          o)  R4000 and others:          o)  R4000 and others:
86                  x)  watchhi/watchlo exceptions, and other exception                  x)  watchhi/watchlo exceptions, and other exception
# Line 118  MIPS: Line 90  MIPS:
90                  x)  use cop0 framemask for tlb lookups                  x)  use cop0 framemask for tlb lookups
91                      (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)
92    
93  Dyntrans:  SuperH:
94          x)  Redesign/rethink the delay slot mechanism used for e.g. MIPS,          x)  DMA (0xffa00000)
95                  so that it caches a translation (that is, an instruction          x)  Instruction tracing should include symbols for branch targets,
96                  word and the instr_call it was translated to the last              and so on...
97                  time), so that it doesn't need to do slow          x)  SH4 interrupt controller:
98                  to_be_translated for each end of page?                  x)  Implement correct priorities of interrupts
99          x)  Program Counter statistics:          x)  SH4 BSC (Bus State Controller)
100                  Per machine? What about SMP? All data to the same file?          x)  NetBSD/evbsh3, dreamcast, mmeye, hpcsh! Linux?
101                  A debugger command should be possible to use to enable/          x)  Replace pc-relative loads with immediate load, if within the
102                  disable statistics gathering.              same page. (Similar to the same optimization for ARM.)
103                  Configuration file option!          x)  Floating point exception correctness.
104          x)  Common fatal_abort() function, which drops into the debugger          x)  Floating point speed!
105                  without continuing.          x)  Think carefully about how to implement SH5/SH64 (for evbsh5).
106          x)  INVALIDATION should cause translations in _all_ cpus to be  
107              invalidated, e.g. on a write to a write-protected page  Dreamcast:
108              (containing code)          x)  CD image bootup:
109          x)  16-bit encodings? (MIPS16, ARM Thumb, SH3, ...)                  0)  Find IP.BIN, and load it to 0x8c008000.
110          x)  Lots of other stuff: see src/cpus/README_DYNTRANS                  1)  Run code at 0x8c008300 (SEGA license code).
111          x)  true recompilation backend? think carefully about this,                  2)  When the license code runs a "boot menu" syscall,
112              experiment in a separate project (not in GXemul)                      load the 1ST_READ.BIN file (unscrambled?) to 0x8c010000.
113                  o) First test would be to just implement a simple                  3)  Run code at 0x8c00b800 (Bootstrap 1). This will in turn
114                     instruction such as MIPS' addiu or lui, on AMD64                      jump to 0x8c00e000 (Bootstrap 2), and then jump to
115                     hosts...                      0x8c010000, to start the program.
116          x)  Idle loop detection? (Depends on target.) Could be turned                  (Try with e.g. Comstedt's Serial IP Slave, to make sure it
117              into usleep(1) or similar on the host... except when doing                  works as expected.)
118              e.g. SMP emulation. Then it becomes trickier.          x)  LAN adapter.
119            x)  PVR:  Lots of stuff. See dev_pvr.c.
120            x)  Maple bus:
121                    x)  Correct controller input
122                    x)  Mouse input
123            x)  PROM/BIOS calls:
124                    x)  GD-ROM emulation
125            x)  NetBSD/dreamcast: Root on nfs?
126            x)  Linux/dreamcast? (The gentoo kernel currently crashes.)
127            x)  More homebrew demos/games.
128            x)  Sound emulation (ARM cpu).
129            x)  VME processor emulation?
130    
131  Transputer:  Transputer:
132          x)  Implement support for Helios binaries.          x)  Implement support for Helios binaries.
# Line 151  Transputer: Line 134  Transputer:
134          x)  Figure out how to boot an entire Helios distribution.          x)  Figure out how to boot an entire Helios distribution.
135          x)  Implement all instructions. :)          x)  Implement all instructions. :)
136    
137    RCA1802/RCA1805, CHIP8:
138            x)  CHIP8 -> RCA180x conversion
139                    x)  Think about how to do dual-mode, variable-instr-length
140                        ISAs, and switch between modes.
141                    x)  1805 "extended" opcode -> trigger CHIP8 emulation?
142                            That is, all calls 0NNN could point to 0x68 opcodes,
143                            which, if running on a 1802 in CHIP8-emulation-mode,
144                            would be manually interpreted.
145                    x)  Better solution:
146                            CHIP8 calls to 00xx => handle at high level,
147                                  calls to 0xxx in general = call 180X machine code
148                                    (0000 = reboot?)
149            x)  1802 info: http://www.nyx.net/~lturner/public_html/Cosmac.html
150                and:  http://www.elf-emulation.com/1802.html
151            x)  1805 extended opcodes: Implement at least disassembly support!
152            x)  Keyboard input.
153            x)  Sound (beep only).
154            x)  Slow-down to correct speed? Wikipedia: "it was usually operated
155                at 3.58 MHz/2 to suit the requirements of the 1861 chip which
156                gave a speed of a little over 100,000 instructions per second"
157                (Note that _CHIP8_ emulation would then be even slower.)
158            x)  SCHIP48 (Super) emulation:
159                    Some more opcodes, 128x64 framebuffer, larger
160                    sprites and fonts.
161    
162  Alpha:  Alpha:
163          o)  Virtual memory (tlbs etc)          x)  OSF1 PALcode, Virtual memory support.
164          o)  Get {NetBSD,OpenBSD,Linux}/alpha booting. :)          x)  PALcode replacement! PAL1E etc opcodes...?
165            x)  Interrupt/exception/trap handling.
166            x)  Floating point exception correctness.
167            x)  More work on bootup memory and register contents.
168            x)  More Alpha machine types, so it could work with
169                OpenBSD, FreeBSD, and Linux too?
170    
171  SPARC:  SPARC:
172          o)  Load/stores to alternate address spaces!          o)  Implement Adress space identifiers; load/stores etc.
173          o)  Save/restore register windows etc!          o)  Save/restore register windows etc!
174          o)  Finish the subcc and addcc flag computation code.          o)  Finish the subcc and addcc flag computation code.
175          o)  Add more registers (floating point, control regs etc)          o)  Add more registers (floating point, control regs etc)
176            o)  Exception/trap handling.
177          o)  Disassemly of some more instructions?          o)  Disassemly of some more instructions?
178          o)  Are sll etc 32-bit sign-extending or zero-extending?          o)  Are sll etc 32-bit sign-extending or zero-extending?
179          o)  Finish the GDB register stuff.          o)  Finish the GDB register stuff.
180            x)  Floating point exception correctness.
181          o)  SPARC v8, v7 etc?          o)  SPARC v8, v7 etc?
182    
183  Debugger:  Debugger:
# Line 172  Debugger: Line 187  Debugger:
187          o)  Try to make the debugger more modular and, if possible, reentrant!          o)  Try to make the debugger more modular and, if possible, reentrant!
188          o)  Remove the emul command? (But show network info if showing          o)  Remove the emul command? (But show network info if showing
189                  machines?)                  machines?)
190          o)  Generalize the expression evaluator. (debugger_expr.c?)          o)  Settings:
191                  settable variables      ("show nr of instructions on average")                  x)  Special handlers for Write!
192                  emul[x]                 defaults to current emul                          +)  MIPS coproc regs
193                  machine[x]              defaults to current machine                          +)  Alpha/MIPS/SPARC zero registers
194                  cpu[x]                  defaults to currently focused cpu                          +)  x86 64/32/16-bit registers
195                  registers               cpu arch dependent (#-prefix)                  x)  Value formatter for resulting output.
                 symbols                 @-prefix  
                 numeric constants       decimal, hex, and octal ($-prefix)  
                 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.  
196          o)  see src/debugger.c for more          o)  see src/debugger.c for more
197    
198  POWER/PowerPC:  POWER/PowerPC:
199            x)  find and fix the bug which causes NetBSD/macppc to fail after
200                an install!
201            x)  NetBSD/prep 3.x triggers a possible bug in the emulator:
202                <wdc_exec_command(0xd005e514,0xd60cdd30,0,8,..)>
203                  <ata_get_xfer(0,0xd60cdd30,0,8,..)>
204                    <0x26c550(&ata_xfer_pool,2,0,8,..)>
205                    <0x35c71c(0x3f27000,0,52,8,..)>
206                  <ata_exec_xfer(0xd005e4c8,0x3f27000,0,13,..)>
207                    <atastart(0xd005e4c8,0x3f27000,0,13,..)>
208                      <__wdccommand_start(0xd005e4c8,0x3f27000,0,13,..)>
209                        <bsw1(&prep_isa_io_space_tag,0x800001f6,0,176,..)>
210                    [ wdc: write to SDH: 0xb0 (sectorsize 2, lba=1, drive 1, head 0) ]
211                        <wdcwait(0xd005e4c8,72,64,0xbb8,..)>
212                          <0x198120(0xd005e4c8,72,64,0xbb8,..)>
213                            <bsr1(&prep_isa_io_space_tag,0,0,0xbb8,..)>
214                            <delay(100,0,0,0xbb8,..)>
215                Note: <bsr1(&prep_isa_io_space_tag,0,0,0xbb8,..)>
216          x)  PPC optimizations; instr combs          x)  PPC optimizations; instr combs
217          x)  64-bit stuff: either Linux on G5, or perhaps some hobbyist          x)  64-bit stuff: either Linux on G5, or perhaps some hobbyist
218                  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!  
219          x)  macppc: adb controller; keyboard (for framebuffer mode)          x)  macppc: adb controller; keyboard (for framebuffer mode)
220          x)  make OpenBSD/macppc work (PCI controller stuff)          x)  make OpenBSD/macppc work (PCI controller stuff)
221            x)  Floating point exception correctness.
222            x)  Alignment exceptions.
223    
224  Algor:  Algor:
225          PCI interrupts... needed or stuff like the tlp NIC?          o)  Other models than the P5064?
226            o)  PCI interrupts... needed for stuff like the tlp NIC?
227    
228    HPCmips:
229            x)  Mouse/pad support! :)
230            x)  A NIC? (As a PCMCIA device?)
231    
232    AVR:
233            o)  Everything.
234    
235    AVR32:
236            o)  Everything. It would be good if there was NetBSD/avr32 to
237                experiment with...
238    
239  ARM:  ARM:
240            o)  See netwinder_reset() in NetBSD; the current "an internal error
241                occured" message after reboot/halt is too ugly.
242            o)  ARM "wait"-like instruction?
243          o)  try to get netbsd/evbarm 3.x running (iq80321)          o)  try to get netbsd/evbarm 3.x running (iq80321)
244          o)  make the xscale counter registers (ccnt) work          o)  make the xscale counter registers (ccnt) work
245          o)  make the ata controller usable for FreeBSD!          o)  make the ata controller usable for FreeBSD!
# Line 226  ARM: Line 247  ARM:
247          o)  debian/cats crashes because of unimplemented coproc stuff.          o)  debian/cats crashes because of unimplemented coproc stuff.
248              fix this?              fix this?
249    
250    Test machines:
251            + dev_fb block fill and copy
252            + dev_fb draw characters (from the built-in font)?
253            + dev_fb input device? mouse pointer coordinates and buttons
254                    (allow changes in these to cause interrupts as well?)
255            + Redefine the halt() function so that it stops "sometimes
256              soon", i.e. usage in demo code should be:
257                    for (;;) {
258                            halt();
259                    }
260    
261    Better CD Image file support:
262            x)  Support CD formats that contain more than 1 track, e.g.
263                CDI files (?). These can then contain a mixture of e.g. sound
264                and data tracks, and booting from an ISO filesystem path
265                would boot from [by default] the first data track.
266                (This would make sense for e.g. Dreamcast CD images, or
267                possibly other live-CD formats.)
268    
269    Networking:
270            x)  Fix performance problems caused by only allowing a
271                single TCP packet to be unacked.
272            x)  Don't hardcode offsets into packets!
273            x)  Test with lower than 100 max tcp/udp connections,
274                to make sure that reuse works!
275            x)  Make OpenBSD work better as a guest OS!
276            x)  DHCP? Debian doesn't actually send DHCP packets, even
277                    though it claims to? So it is hard to test.
278            x)  Multiple networks per emulation, and let different
279                NICs in machines connect to different networks.
280            x)  Support VDE (vde.sf.net)? Easiest/cleanest (before a
281                redesign of the network framework has been done) is
282                probably to connect it using the current (udp) solution.
283            x)  Allow SLIP connections, possibly PPP, in addition to
284                ethernet?
285    
286  Cache simulation:  Cache simulation:
287          o)  Command line flags for:          o)  Command line flags for:
288                  o)  CPU endianness?                  o)  CPU endianness?
# Line 242  Cache simulation: Line 299  Cache simulation:
299              is another option (easier to implement, but very very slow).              is another option (easier to implement, but very very slow).
300    
301  Documentation:  Documentation:
302          o)  machines, cpus, devices.          x)  Note about sandboxing/security:
303          o)  Automagic documentation generation:                  Not all emulated instructions fail in the way they would
304                    do on real hardware (e.g. a userspace program writing to
305                    a system register might work in GXemul, but it would
306                    fail on real hardware).  Sandbox = contain from the
307                    host OS. But the emulated programs will run "less
308                    securely".
309            x)  Try NetBSD/arc 4.x! (It seems to work with disk images!)
310            x)  NetBSD/pmax 4 install instructions: xterm instead of vt100!
311            x)  DEVICE_TICK in technical.html
312            x)  Rewrite the section about experimental devices, after the
313                framebuffer acceleration has been implemented, and demos
314                written. (Symbolic names instead of numbers; example
315                use cases, etc. Mention demo files that use the various
316                features?)
317            x)  "a very simple linear framebuffer device (for graphics output)"
318                under "which machines does gxemul emulate" ==> better
319                description?
320            x)  Better description on how to set up a cross compiler?
321                Example for MIPS64.
322            o)  Automagic documentation generation?
323                    x)  machines, cpus, devices.
324                  x)  REMEMBER that several machines/devices can be in                  x)  REMEMBER that several machines/devices can be in
325                          the same source file!                          the same source file!
326          o)  Try to rewrite the install instructions for those machines          o)  Try to rewrite the install instructions for those machines
327              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
328              ffs partition using up all of the disk image.)              to use a raw ffs partition, using up all of the disk image.)
329    
330  More generic out_of_memory error reporting, and check everywhere!  More generic out_of_memory error reporting, and check everywhere!
331          Causes: OpenBSD has low default limits for normal users.          Causes: OpenBSD has low default limits for normal users.
# Line 258  More generic out_of_memory error reporti Line 335  More generic out_of_memory error reporti
335                  Unix systems usually allow processes to allocate virtual                  Unix systems usually allow processes to allocate virtual
336                  memory beyond the amount of RAM in the machine.)                  memory beyond the amount of RAM in the machine.)
337    
 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)  
   
338  The Device subsystem:  The Device subsystem:
339          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
340              minimum size, etc, or up to a max size)              minimum size, etc, or up to a max size); if there is a collision,
341                return false. It is up to the caller to handle this situation!
342            x)  NOTE: Translations must be invalidated, both for
343                registering new devices, and for moving existing ones.
344                cpu->invalidate translation caches, for all CPUs that
345                are connected to a specific memory.
346          x)  keep track of interrupts and busses? actually, allowing any device          x)  keep track of interrupts and busses? actually, allowing any device
347              to be a bus might be a nice idea.              to be a bus might be a nice idea.
348          x)  turn interrupt controllers into devices? :-)          x)  turn interrupt controllers into devices? :-)
349          x)  refactor various clocks/nvram/cmos into one device?          x)  refactor various clocks/nvram/cmos into one device?
350    
 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.)  
   
351  PCI:  PCI:
352          x)  last write was ffffffff ==> fix this, it should be used          x)  last write was ffffffff ==> fix this, it should be used
353              together with a mask to get the correct bits. also, not ALL              together with a mask to get the correct bits. also, not ALL
354              bits are size bits! (lowest 4 vs lowest 2?)              bits are size bits! (lowest 4 vs lowest 2?)
355          x)  add support for address fixups          x)  add support for address fixups
356          x)  generalize the interrupt routing stuff (lines etc). this should          x)  generalize the interrupt routing stuff (lines etc)
357              be per machine? or per bus, that's better  
358          x)  add a "pcn" NIC (AMD PCnet32 Lance 79c970 (PCI 1022:2000)),  Clocks and timers:
359              could be useful for several machine modes (Malta, Algor, evbarm,          x)  DON'T HARDCODE 100 HZ IN cpu_mips_coproc.c!
360              hp700?, macppc, etc.)          x)  Test the 8253? Right now it doesn't seem to be used?
361            x)  NetWinder timeofday is incorrect!
362  Network layer:          x)  Cobalt TOD is incorrect!
363          o)  DHCP (for Debian and BSD installers :-)          x)  Go through all other machines, one by one, and fix them.
         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  
364    
365  Busses:  Busses:
366          o)  Redesign the entire "mainbus" concept!          o)  Redesign the entire "mainbus" concept!
367          o)  Busses should be placed in a hierarchical tree!                  x)  Busses should be placed in a hierarchical tree (?)
368          o)  Easily configurable interrupt routing in SMP systems.                  x)  Specific clock/bus speeds, cpu speeds etc.
369          o)  Specific clock/bus speeds, cpu speeds etc.          o)  Interrupt routing subsystem:
370                    x)  IF POSSIBLE, try to make the new system work with the
371                        current system, but print annoying warning messages. :)
372                        Think carefully about this.
373                    x)  Registry for all available interrupts.
374                            +)  Each interrupt controller (including CPU cores
375                                that can handle interrupts) should register its
376                                interrupts, e.g.
377                                    cpu[0].irq[3]
378                                    cpu[0].irq[3].pcmcia_slot[1]
379                                    cpu[0].irq.pci[3]
380                            +)  Note: MIPS cpus have multiple irqs in the core,
381                                while some other CPUs only have one (irq[0]
382                                or just irq).
383                    x)  Users should use interrupt _names_ instead of integers
384                        when attaching to an interrupt controller, but when
385                        asserting/deasserting irq lines, small integers must
386                        still be used (for obvious performance reasons).
387                        Figure out a way to do this nicely!
388                    x)  Any users need to say whether they need the interrupt line
389                        exclusively or allow shared access.
390                    x)  Must work with everything from native IRQs to
391                        TurboChannel/PCI/ISA/ADB/PCMCIA/...
392                    x)  Must work with SMP emulation!
393                    x)  Make it with device_add(). How does the end user find
394                        out the name of an interrupt controller/line in e.g.
395                        a configuration file?
396          o)  Synchronization over network? or at least in dyntrans within          o)  Synchronization over network? or at least in dyntrans within
397              one emulated machine              one emulated machine
398          o)  dev->bus: TurboChannel, PCMCIA, ADB?          o)  Convert to real busses: TurboChannel, PCMCIA, ADB
399    
400  Config file parser:  Config file parser:
401          o)  Rewrite it from scratch!          o)  Rewrite it from scratch!
# Line 312  Config file parser: Line 405  Config file parser:
405    
406  Floating point layer:  Floating point layer:
407          o)  make it common enough to be used by _all_ emulation modes          o)  make it common enough to be used by _all_ emulation modes
408          o)  implement more stuff          o)  implement correct error/exception handling and rounding modes
409            o)  implement more helper functions (i.e. add, sub, mul...)
410          o)  non-IEEE modes (i.e. x86)?          o)  non-IEEE modes (i.e. x86)?
411    
412  Userland emulation:  Userland emulation:
# Line 321  Userland emulation: Line 415  Userland emulation:
415    
416  Sound:  Sound:
417          x)  generic sound framework          x)  generic sound framework
418          x)  add one or more sound cards as devices          x)  add one or more sound cards as devices; add a testmachine
419                sound card first?
420    
421  ASC SCSI controller:  ASC SCSI controller:
422          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
423              cannot yet handle. (NetBSD 1.6.2 works ok.) (Possibly a problem              cannot yet handle. (NetBSD 1.6.2 works ok.) (Possibly a problem
424              in NetBSD itself, http://mail-index.netbsd.org/source-changes/              in NetBSD itself, http://mail-index.netbsd.org/source-changes/
425              2005/11/06/0024.html suggests that.)              2005/11/06/0024.html suggests that.)
426                NetBSD 4.x seems to work? :)
427    
428  Caches / memory hierarchies: (this is mostly MIPS-specific)  Caches / memory hierarchies: (this is mostly MIPS-specific)
429          o)  src/memory*.c: Implement correct cache emulation for          o)  src/memory*.c: Implement correct cache emulation for
# Line 368  Save state of the whole emulated machine Line 464  Save state of the whole emulated machine
464          according to its website.))          according to its website.))
465    
466  Better framebuffer and X-windows functionality:  Better framebuffer and X-windows functionality:
467            o)  Generalize the update_x1y1x2y2 stuff to an extend-region()
468                function...
469          o)  -Yx sometimes causes crashes.          o)  -Yx sometimes causes crashes.
470          o)  Simple device access to framebuffer_blockcopyfill() etc,          o)  Simple device access to framebuffer_blockcopyfill() etc,
471              and text output (using the built-in fonts), for dev_fb.              and text output (using the built-in fonts), for dev_fb.
# Line 378  Better framebuffer and X-windows functio Line 476  Better framebuffer and X-windows functio
476          o)  Non-resizable windows?  Or choose scaledown depending          o)  Non-resizable windows?  Or choose scaledown depending
477                  on size (and center the image, with a black border).                  on size (and center the image, with a black border).
478          o)  Different scaledown on different windows?          o)  Different scaledown on different windows?
479            o)  Non-integral scale-up? (E.g. 640x480 -> 1024x768)
480          o)  Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)          o)  Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)
481          o)  Bug reported by Elijah Rutschman on MacOS with weird          o)  Bug reported by Elijah Rutschman on MacOS with weird
482              keys (F5 = cursor down?).              keys (F5 = cursor down?).
# Line 391  Better framebuffer and X-windows functio Line 490  Better framebuffer and X-windows functio
490          o)  Generalize the framebuffer stuff by moving _ALL_ X11          o)  Generalize the framebuffer stuff by moving _ALL_ X11
491                  specific code to src/x11.c!                  specific code to src/x11.c!
492    
 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.30  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26