/[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 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 1  Line 1 
1  $Id: TODO,v 1.176 2005/11/13 00:14:05 debug Exp $  $Id: TODO,v 1.209 2006/02/18 21:03:09 debug Exp $
2    
3  NOTE: This TODO is hopefully out-of-date. I don't keep it updated.  Hm. This file is in random order, and not all parts of it are up-to-date.
4    
5  ===============================================================================  Algor:  PCI and ISA and LOCAL interrupts! --> wdc could start working
6            Add interrupt controller in dev_algor.c.
 Old MIPS bintrans:  
         x)  call/return address cache?  
         x)  Turn the MIPS cpu family stuff into dyntrans.  
7    
8  Dyntrans:  Dyntrans:
9          x)  Separate data and instruction translations?          TOP Priority:
10          x)  Generalize the inline quick_pc_to_pointers?                  x)  64-bit stuff: good generic virtual memory translation, and
11          x)  Call/return hints...                      other structures. not all 64 bits need to be used
12          x)  More 64-bit stuff.                      (e.g. Alpha)
13                    x)  Delay slots!
14                    x)  Old MIPS -> dyntrans!
15            Other stuff:
16            x)  INVALIDATION should cause translations in _all_ cpus to be
17                invalidated, e.g. on a write to a write-protected page
18                (containing code)
19            x)  Think about sharing code between CPUs of the same
20                arch/bitlength/endianness (the translation caches).
21                (Eg. a little-endian R4000 and a little-endian R5000 could
22                share code, but not an R3000 and an R4000.)
23            x)  better (meaningful) instr call statistics
24            x)  Call/return hints?
25            x)  16-bit encodings? (MIPS16, ARM Thumb, SH3, ...)
26            x)  PPC optimizations; instr combs
27            x)  Alpha
28            x)  SPARC
29            x)  PPC (64-bit stuff)
30          x)  Lots of other stuff: see src/cpus/README_DYNTRANS          x)  Lots of other stuff: see src/cpus/README_DYNTRANS
31            x)  true recompilation backend? think carefully about this,
32                experiment in a separate project (not in GXemul)
33    
34    More generic out_of_memory error reporting, and check everywhere!
35            Causes: OpenBSD has low default limits for normal users.
36                    Host is 32-bit? (32-bit hosts are limited to 4 GB or less
37                    of userspace memory.)
38                    You are actually low on RAM. (As trivial as this might sound,
39                    Unix systems usually allow processes to allocate virtual
40                    memory beyond the amount of RAM in the machine.)
41    
42    Breakpoints: 32-bit vs 64-bit sign extension for MIPS, warnings, etc.
43            Use the debugger's symbolic name stuff. (which will have to be
44            extended soon to support stuff like  "2*x + symbol + y" etc. cool
45            stuff)
46    
47    Sprite (guest OS for DECstation emulation)
48            x)  Timing problems during bootup?
49    
50    The Device subsystem:
51            x)  allow devices to be moved and/or changed in size (down to a
52                minimum size, etc, or up to a max size)
53            x)  keep track of interrupts and busses? actually, allowing any device
54                to be a bus might be a nice idea
55            x)  refactor various clocks/nvram/cmos into one device?
56    
57    ARM:
58            o)  add ID for "i80321 600MHz rev 2 (XScale core)"
59            o)  make the ata controller usable for FreeBSD!
60            x)  zaurus for openbsd...
61    
62    PCI:
63            x)  add support for address fixups
64            x)  generalize the interrupt routing stuff (lines etc). this should
65                be per machine? or per bus, that's better
66    
67    MacPPC:
68            x)  dev_zs / interrupts?
69            x)  adb controller; keyboard
70            x)  make OpenBSD/macppc work (PCI controller stuff)
71    
72    Network layer:
73            o)  DHCP (for Debian and BSD installers :-)
74            o)  increase performance
75            o)  don't rely on NetBSD-ish usage
76            o)  Multiple networks per emulation, and let different
77                NICs in machines connect to different networks.
78            o)  many other issues: see src/net.c
79    
80    Busses:
81            o)  Redesign the entire "mainbus" concept!
82            o)  Busses should be placed in a hierarchical tree!
83            o)  Easily configurable interrupt routing in SMP systems.
84            o)  Specific clock/bus speeds, cpu speeds etc.
85            o)  Synchronization over network? or at least in dyntrans within
86                one emulated machine
87            o)  dev->bus: TurboChannel, PCMCIA, ADB?
88    
89    Config file parser:
90            o)  Refresh/rewrite it :)
91            o)  Usage of any expression available through the debugger
92            o)  Expressions such as "add device" would be nice to be able
93                to do on the command line manually.
94            o)  Allow machine() entries even if there is no emul() entry (but
95                then don't allow any emul() entries at all).
96            o)  Support for running debugger commands (like the -c
97                command line option)
98    
99    Floating point layer:
100            o)  make it common enough to be used by _all_ emulation modes
101            o)  non-IEEE modes (i.e. x86)?
102    
103  Userland emulation:  Userland emulation:
104          x)  Lots of stuff.          x)  Lots of stuff; freebsd and netbsd (and linux?) syscalls.
105          x)  Dynamic linking? Hm.          x)  Dynamic linking? Hm.
106    
107  Misc:  Sound:
108          Redesign the entire "mainbus" concept:          x)  generic sound framework
109                  o)  Easily configurable interrupt routing in SMP systems.          x)  add one or more sound cards as devices
110                  o)  Specific clock/bus speeds, cpu speeds etc.  
111                  o)  Synchronization over network?  Caches / memory hierarchies: (this is mostly MIPS-specific)
112            o)  MIPS coproc.c: bits in config registers should reflect
113          Caches / memory hierarchies: (this is mostly MIPS-specific)              correct cache sizes for _all_ CPU types. (currently only
114                  o)  MIPS coproc.c: bits in config registers should reflect              implemented for R4000, R1x000, and a few others)
115                      correct cache sizes for _all_ CPU types. (currently only          o)  src/memory*.c: Implement correct cache emulation for
116                      implemented for R4000, R1x000, and a few others)              all CPU types. (currently only R2000/R3000 is implemented)
117                  o)  src/memory*.c: Implement correct cache emulation for              (per CPU, multiple levels should be possible,
118                      all CPU types. (currently only R2000/R3000 is implemented)              associativity etc!)
119                      (per CPU, multiple levels should be possible,          o)  R2000/R3000 isn't _100%_ correct, just almost correct :)
120                      associativity etc!)          o)  Move the -S (fill mem with random) functionality into the
121                  o)  R2000/R3000 isn't _100%_ correct, just almost correct :)              memory.c subsystem, not machine.c or wherever it is now
122                  o)  Move the -S (fill mem with random) functionality into the          o)  ECC stuff, simulation of memory errors?  (Machine dependent)
123                      memory.c subsystem, not machine.c or wherever it is now          o)  More than 4GB of emulated RAM, when run on a 32-bit host?
124                  o)  ECC stuff, simulation of memory errors?  (Machine dependant)              (using manual swap-out of blocks to disk, ugly)
125                  o)  More than 4GB of emulated RAM, when run on a 32-bit host?          o)  A global command line option should be used to turn
126                      (using manual swap-out of blocks to disk, ugly)              cache emulation on or off. When off, caches should be
127                  o)  A global command line option should be used to turn              faked like they are right now. When on, caches and
128                      cache emulation on or off. When off, caches should be              memory latencies should be emulated as correctly as
129                      faked like they are right now. When on, caches and              possible.
130                      memory latencies should be emulated as correctly as  
131                      possible.  MIPS CPU emulation:  (note: this is for the OLD mips stuff)
132            o)  i386 bintrans backend: movn etc, slt[u] for
133          Network layer:                  64-bit mode, 64-bit shifts etc
134                  o)  Multiple networks per emulation, and let different          o)  Instructions:
135                      NICs in machines connect to different networks.                  o)  All ISAs:
136                  o)  many other issues: see src/net.c                          o)  Floating point exception handling, and
137                                    add more instructions.
138          MIPS CPU emulation:                          o)  Finish the MIPS16 translator, and test it!
139                  o)  i386 bintrans backend: movn etc, slt[u] for                          o)  MIPS ISA I, II, III, IV
140                          64-bit mode, 64-bit shifts etc                          o)  MIPS V (SIMD vector stuff?)
141                  o)  Instructions:                          o)  MDMX  (MIPS Digital Media Extension)
142                          o)  All ISAs:                          o)  MIPS 3D
143                                  o)  Floating point exception handling, and                          o)  MIPS MT (Multi-thread stuff) (What's this?)
144                                          add more instructions.                  o)  Warn about mis-used bit fields (ie bits that
145                                  o)  Finish the MIPS16 translator, and test it!                      should be all zeroes, warn about if they are not)!
146                                  o)  MIPS ISA I, II, III, IV                      Both for coprocessor registers and for instruction
147                                  o)  MIPS V (SIMD vector stuff?)                      opcodes.
148                                  o)  MDMX  (MIPS Digital Media Extension)                  o)  the special2 stuff is a mess right now
149                                  o)  MIPS 3D                  o)  warn and/or cause exceptions for unimplemented
150                                  o)  MIPS MT (Multi-thread stuff) (What's this?)                      instructions (depending on CPU type)
151                          o)  Warn about mis-used bit fields (ie bits that          o)  R2000/R3000:
152                              should be all zeroes, warn about if they are not)!                  x)  R3000 "tri-byte stores". (What's this?)
153                              Both for coprocessor registers and for instruction          o)  R4000 and others:
154                              opcodes.                  x)  watchhi/watchlo exceptions, and other exception
155                          o)  the special2 stuff is a mess right now                      handling details
156                          o)  warn and/or cause exceptions for unimplemented          o)  R10000 and others:  (R12000, R14000 ?)
157                              instructions (depending on CPU type)                  x)  memory space, exceptions, ...
158                  o)  R2000/R3000:                  x)  use cop0 framemask for tlb lookups
159                          x)  R3000 "tri-byte stores". (What's this?)                      (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)
160                  o)  R4000 and others:          o)  Implement load delays?  Warnings on interlocks.
161                          x)  watchhi/watchlo exceptions, and other exception          o)  Implement all coprocessor 0 bits / functions.
162                              handling details                  x)  coproc 0 selectors! (R4000 ?)
163                  o)  R10000 and others:  (R12000, R14000 ?)          o)  R4300 (nintendo64, no mmu?), R5900 (playstation2, weird
164                          x)  memory space, exceptions, ...                  TLB/cache? 128-bit GPRs, new instructions),
165                          x)  use cop0 framemask for tlb lookups                  4K (note: NOT R4000), 5K (note: NOT R5000),
166                              (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)                  R6000 (ISA II), R8000
167                  o)  Implement load delays?  Warnings on interlocks.          o)  Multi-cpu stuff:
168                  o)  Implement all coprocessor 0 bits / functions.                  +)  Interrupt routing (ie devices vs mainbus, or
169                          x)  coproc 0 selectors! (R4000 ?)                      connect each device to a fixed cpu)
170                  o)  R4300 (nintendo64, no mmu?), R5900 (playstation2, weird                  +)  SGI's NUMA architecture. Study
171                          TLB/cache? 128-bit GPRs, new instructions),                          x)  Linux sources
172                          4K (note: NOT R4000), 5K (note: NOT R5000),                          x)  SGI's specs on NUMA address space
173                          R6000 (ISA II), R8000                  +)  Ultrix?  NetBSD doesn't do SMP on MIPS yet :-(
174                  o)  Multi-cpu stuff:                  +)  Own experiments with ycx2.
175                          +)  Interrupt routing (ie devices vs mainbus, or  
176                              connect each device to a fixed cpu)  File/disk/symbol handling:
177                          +)  SGI's NUMA architecture. Study          o)  Better handling of tape files
178                                  x)  Linux sources          o)  Read function argument count and types from binaries? (ELF?)
179                                  x)  SGI's specs on NUMA address space          o)  Demangle C++ names.
180                          +)  Ultrix?  NetBSD doesn't do SMP on MIPS yet :-(  
181                          +)  Own experiments with ycx2.  Debugger:
182            o)  see src/debugger.c for more
183          File/disk handling:  
184                  o)  Better handling of tape files  Userland ABI emulation:
185            o)  see src/useremul.c
186          Debugger:  
187                  o)  Read function argument count and types from binaries? (ELF?)  Terminal/console:
188                  o)  Demangle C++ names.          o)  allow emulated serial ports to be connected to the outside
189                  o)  see src/debugger.c for more stuff              world in a more generic way, or even to other emulated
190                machines(?)
191          Userland ABI emulation:  
192                  o)  see src/useremul.c  Save state of the whole emulated machine, to be able to load it back
193            in later?  (Memory, all device's states, all registers and
194          Terminal/console stuff:          so on.  Like taking a snapshot. (SimOS seems to do this,
195                  o)  allow emulated serial ports to be connected to the outside          according to its website.))
196                      world in a more generic way, or even to other emulated  
197                      machines(!)  Better framebuffer and X-windows functionality:
198            o)  -Yx sometimes causes crashes.
199          Regression tests.  (Needs to be totally rewritten, the old framework          o)  Simple device access to framebuffer_blockcopyfill() etc,
200                  was removed because it was useless.)              and text output (using the built-in fonts), for dev_fb.
201            o)  CLEAN UP the ugly event code
202          Save state of the whole emulated machine, to be able to load it back          o)  Mouse clicks can be "missed" in the current system; this is
203                  in later?  (Memory, all device's states, all registers and              not good. They should be put on a stack of some kind.
204                  so on.  Like taking a snapshot. (SimOS seems to do this,          o)  More 2D and 3D framebuffer acceleration.
205                  according to its website.))          o)  Non-resizable windows?  Or choose scaledown depending
206                    on size (and center the image, with a black border).
207          Better X-windows functionality:          o)  Different scaledown on different windows?
208                  o)  CLEAN UP the ugly event code          o)  Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)
209                  o)  Mouse clicks can be "missed" in the current system; this is          o)  Keyboard and mouse events:
210                      not good. They should be put on a stack of some kind.                  x)  Do this for more machines than just DECstation
211                  o)  More 2D and 3D framebuffer acceleration.                  x)  more X11 cursor keycodes
212                  o)  Non-resizable windows?  Or choose scaledown depending                  x)  Keys like CTRL, ALT, SHIFT do not get through
213                          on size (and center the image, with a black border).                      by themselves (these are necessary for example
214                  o)  Different scaledown on different windows?                      to change the font of an xterm in X in the
215                  o)  Switch scaledown during runtime? (Ala CTRL-ALT-plus/minus)                      emulator)
216                  o)  Keyboard and mouse events:          o)  Generalize the framebuffer stuff by moving _ALL_ X11
217                          x)  Do this for more machines than just DECstation                  specific code to src/x11.c!
218                          x)  more X11 cursor keycodes  
219                          x)  Keys like CTRL, ALT, SHIFT do not get through  Statistics:  (this could be interesting)
220                              by themselves (these are necessary for example          o)  Save to file and show graphics. It should be possible to
221                              to change the font of an xterm in X in the              run gxemul after a simulation to just show the graphics,
222                              emulator)              or convert to a .ppm or .tga or similar.
223                  o)  Generalize the framebuffer stuff by moving _ALL_ X11          o)  memory accesses (to measure cache efficiency and
224                          specific code to src/x11.c!                  page coloring efficiency)
225            o)  nr of simultaneous ASIDs in use in the TLB, for MIPS
226          Statistics:  (this could be interesting)          o)  percentage of time spent in different "states", such as
227                  o)  Save to file and show graphics. It should be possible to              running userland code, kernel code, or idling (for CPUs
228                      run gxemul after a simulation to just show the graphics,              that have such an instruction, or whenever the PC is
229                      or convert to a .ppm or .tga or similar.              inside a specific idle-function (address range)).
230                  o)  memory accesses (to measure cache efficiency and              Possible additional state (for example on R3000): caches
231                          page coloring efficiency)              disabled.
232                  o)  nr of simultaneous ASIDs in use in the TLB, for MIPS          o)  position of read/write on (SCSI) disks
                 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  
233    

Legend:
Removed from v.20  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26