/[gxemul]/trunk/src/cpus/cpu_x86.c
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/cpus/cpu_x86.c

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

revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_x86.c,v 1.15 2006/06/16 18:31:26 debug Exp $   *  $Id: cpu_x86.c,v 1.17 2006/07/16 13:32:26 debug Exp $
29   *   *
30   *  x86 (and amd64) CPU emulation.   *  x86 (and amd64) CPU emulation.
31   *   *
# Line 95  int x86_cpu_new(struct cpu *cpu, struct Line 95  int x86_cpu_new(struct cpu *cpu, struct
95    
96          cpu->cd.x86.model = models[i];          cpu->cd.x86.model = models[i];
97    
98          cpu->translate_address = x86_translate_address;          cpu->translate_v2p = x86_translate_v2p;
99    
100          /*  Initial startup is in 16-bit real mode:  */          /*  Initial startup is in 16-bit real mode:  */
101          cpu->pc = 0xfff0;          cpu->pc = 0xfff0;
# Line 124  int x86_cpu_new(struct cpu *cpu, struct Line 124  int x86_cpu_new(struct cpu *cpu, struct
124              1 : 0;              1 : 0;
125    
126          if (cpu->is_32bit) {          if (cpu->is_32bit) {
127                    cpu->run_instr = x8632_run_instr;
128                  cpu->update_translation_table = x8632_update_translation_table;                  cpu->update_translation_table = x8632_update_translation_table;
129                  cpu->invalidate_translation_caches =                  cpu->invalidate_translation_caches =
130                      x8632_invalidate_translation_caches;                      x8632_invalidate_translation_caches;
131                  cpu->invalidate_code_translation =                  cpu->invalidate_code_translation =
132                      x8632_invalidate_code_translation;                      x8632_invalidate_code_translation;
133          } else {          } else {
134                    cpu->run_instr = x86_run_instr;
135                  cpu->update_translation_table = x86_update_translation_table;                  cpu->update_translation_table = x86_update_translation_table;
136                  cpu->invalidate_translation_caches =                  cpu->invalidate_translation_caches =
137                      x86_invalidate_translation_caches;                      x86_invalidate_translation_caches;
# Line 142  int x86_cpu_new(struct cpu *cpu, struct Line 144  int x86_cpu_new(struct cpu *cpu, struct
144                  debug("%s", cpu->name);                  debug("%s", cpu->name);
145          }          }
146    
         x86_init_64bit_dummy_tables(cpu);  
   
147          return 1;          return 1;
148  }  }
149    
# Line 3164  cpu->machine->isa_pic_data.pic2->irr, cp Line 3164  cpu->machine->isa_pic_data.pic2->irr, cp
3164  }  }
3165    
3166    
3167  #define TRANSLATE_ADDRESS       x86_translate_address  #define TRANSLATE_ADDRESS       x86_translate_v2p
3168  #include "memory_x86.c"  #include "memory_x86.c"
3169  #undef TRANSLATE_ADDRESS  #undef TRANSLATE_ADDRESS
3170    

Legend:
Removed from v.24  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26