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

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

  ViewVC Help
Powered by ViewVC 1.1.26