/[gxemul]/trunk/src/include/cpu.h
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/src/include/cpu.h

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

revision 19 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: cpu.h,v 1.51 2005/10/27 14:01:15 debug Exp $   *  $Id: cpu.h,v 1.54 2005/11/16 21:15:19 debug Exp $
32   *   *
33   *  See cpu.c.   *  See cpu.c.
34   */   */
# Line 49  Line 49 
49  #include "cpu_ia64.h"  #include "cpu_ia64.h"
50  #include "cpu_m68k.h"  #include "cpu_m68k.h"
51  #include "cpu_mips.h"  #include "cpu_mips.h"
52    #include "cpu_newmips.h"
53  #include "cpu_ppc.h"  #include "cpu_ppc.h"
54  #include "cpu_sh.h"  #include "cpu_sh.h"
55  #include "cpu_sparc.h"  #include "cpu_sparc.h"
# Line 163  struct cpu { Line 164  struct cpu {
164          int             n_translated_instrs;          int             n_translated_instrs;
165          unsigned char   *translation_cache;          unsigned char   *translation_cache;
166          size_t          translation_cache_cur_ofs;          size_t          translation_cache_cur_ofs;
         void            (*combination_check)(struct cpu *,  
                             void * /* instr call ptr */, int low_addr);  
167    
168          /*          /*
169           *  CPU-family dependent:           *  CPU-family dependent:
# Line 178  struct cpu { Line 177  struct cpu {
177                  struct ia64_cpu    ia64;                  struct ia64_cpu    ia64;
178                  struct m68k_cpu    m68k;                  struct m68k_cpu    m68k;
179                  struct mips_cpu    mips;                  struct mips_cpu    mips;
180                    struct newmips_cpu newmips;
181                  struct ppc_cpu     ppc;                  struct ppc_cpu     ppc;
182                  struct sh_cpu      sh;                  struct sh_cpu      sh;
183                  struct sparc_cpu   sparc;                  struct sparc_cpu   sparc;
# Line 224  void cpu_init(void); Line 224  void cpu_init(void);
224          struct cpu_family *fp) {                                        \          struct cpu_family *fp) {                                        \
225          /*  Fill in the cpu_family struct with valid data for this arch.  */ \          /*  Fill in the cpu_family struct with valid data for this arch.  */ \
226          fp->name = s;                                                   \          fp->name = s;                                                   \
227            fp->cpu_new = n ## _cpu_new;                                    \
228            fp->list_available_types = n ## _cpu_list_available_types;      \
229            fp->register_match = n ## _cpu_register_match;                  \
230            fp->disassemble_instr = n ## _cpu_disassemble_instr;            \
231            fp->register_dump = n ## _cpu_register_dump;                    \
232            fp->run = n ## _cpu_run;                                        \
233            fp->dumpinfo = n ## _cpu_dumpinfo;                              \
234            fp->interrupt = n ## _cpu_interrupt;                            \
235            fp->interrupt_ack = n ## _cpu_interrupt_ack;                    \
236            fp->functioncall_trace = n ## _cpu_functioncall_trace;          \
237            return 1;                                                       \
238            }
239    
240    #define CPU_OLD_FAMILY_INIT(n,s)        int n ## _cpu_family_init(      \
241            struct cpu_family *fp) {                                        \
242            /*  Fill in the cpu_family struct with valid data for this arch.  */ \
243            fp->name = s;                                                   \
244          fp->cpu_new = n ## _cpu_new;                                    \          fp->cpu_new = n ## _cpu_new;                                    \
245          fp->list_available_types = n ## _cpu_list_available_types;      \          fp->list_available_types = n ## _cpu_list_available_types;      \
246          fp->register_match = n ## _cpu_register_match;                  \          fp->register_match = n ## _cpu_register_match;                  \

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

  ViewVC Help
Powered by ViewVC 1.1.26