Implement 32 bit MIPS16 instructions listed in m16.igen.
[deliverable/binutils-gdb.git] / sim / mips / README.Cygnus
CommitLineData
13151a93
AC
1This directory contains two very different simulators:
2
3 o gencode (old)
4
5 Gencode.c outputs a single monolithic file that is
6 #included by interp.c
7
8 o igen (new)
9
10 The *.igen files are used as inputs to ../igen/igen.
11 A number of separate, fairly modula files, are created.
12
13The new simulator has a number of advantages:
14
15 o builtin support for multi-simming (single simulator
16 image supporting a number of different instruction
17 set architectures).
18
19 o Easier maintenance. The input files are not confused
20 by an intermixing with the generator code.
21
22gencode continues to exist so that old architectures can be emulated.
23*.igen should be used when adding new architectures or adding
24instructions to an existing ISA.
25
26Known bugs?
27
28A mips16 simulator cannot be built using igen. A custom mips16
29engine.c needs to be written.
30
31In mips.igen, the semantics for many of the instructions were created
32using code generated by gencode. Those semantic segments could be
33greatly simplified.
34
35
36----
37
38Old README.Cygnus ...
39
8ad57737
JSC
40> README.Cygnus
41-------------------------------------------------------------------------------
42
43The following are the main reasons for constructing the simulator as a
44generator:
45
461) Avoid large fixed decode source file, with lots of #ifs controlling
47 the compilation. i.e. keep the source cleaner, smaller and easier
48 to parse.
49
502) Allow optimum code to be created, without run-time checks on
51 instruction types. Ensure that the simulator engine only includes
52 code for the architecture being targetted. e.g. This avoids
53 run-time checks on ISA conformance, aswell as increasing
54 throughput.
55
563) Allow updates to the instruction sets to be added quickly. Having a
57 table means that the information is together, and is easier to
58 manipulate. Having the table generate the engine, rather than the
59 run-time parse the table gives higher performance at simulation
60 time.
61
624) Keep all the similar simulation code together. i.e. have a single
63 place where, for example, the addition code is held. This ensures that
64 updates to the simulation are not spread over a large flat source
65 file maintained by the developer.
66
67-------------------------------------------------------------------------------
68
69To keep the simulator simple (and to avoid the slight chance of
70mis-matched files) the manifests describing an engine, and the
71simulator engine itself, are held in the same source file.
72
73This means that the engine must be included twice, with the first pass
74controlled by the SIM_MANIFESTS definition.
75
76-------------------------------------------------------------------------------
77> EOF README.Cygnus
This page took 0.127825 seconds and 4 git commands to generate.