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

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

revision 23 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: cpu_x86.h,v 1.43 2006/02/13 04:23:25 debug Exp $   *  $Id: cpu_x86.h,v 1.47 2006/04/17 11:06:46 debug Exp $
32   *   *
33   *  x86 (including AMD64) cpu dependent stuff.   *  x86 (including AMD64) cpu dependent stuff.
34   */   */
# Line 103  struct x86_model { Line 103  struct x86_model {
103  #define X86_PC_TO_IC_ENTRY(a)           ((a) & (X86_IC_ENTRIES_PER_PAGE-1))  #define X86_PC_TO_IC_ENTRY(a)           ((a) & (X86_IC_ENTRIES_PER_PAGE-1))
104  #define X86_ADDR_TO_PAGENR(a)           ((a) >> X86_IC_ENTRIES_SHIFT)  #define X86_ADDR_TO_PAGENR(a)           ((a) >> X86_IC_ENTRIES_SHIFT)
105    
106    #define X86_L2N                 17
107    #define X86_L3N                 18
108    
109  DYNTRANS_MISC_DECLARATIONS(x86,X86,uint64_t)  DYNTRANS_MISC_DECLARATIONS(x86,X86,uint64_t)
110    DYNTRANS_MISC64_DECLARATIONS(x86,X86,uint8_t)
111    
112  #define X86_MAX_VPH_TLB_ENTRIES         128  #define X86_MAX_VPH_TLB_ENTRIES         128
113    
# Line 282  struct x86_cpu { Line 286  struct x86_cpu {
286  #define DESCR_TYPE_DATA         2  #define DESCR_TYPE_DATA         2
287    
288    
289    #define LONG_MODE               (cpu->cd.x86.efer & X86_EFER_LME)
290  #define PROTECTED_MODE          (cpu->cd.x86.cr[0] & X86_CR0_PE)  #define PROTECTED_MODE          (cpu->cd.x86.cr[0] & X86_CR0_PE)
291  #define REAL_MODE               (!PROTECTED_MODE)  #define REAL_MODE               (!PROTECTED_MODE)
292    
293    
294  /*  cpu_x86.c:  */  /*  cpu_x86.c:  */
295  void reload_segment_descriptor(struct cpu *cpu, int segnr, int selector,  void reload_segment_descriptor(struct cpu *cpu, int segnr, int selector,
296          uint64_t *curpcp);          uint64_t *curpcp);
# Line 299  void x86_invalidate_translation_caches(s Line 305  void x86_invalidate_translation_caches(s
305  void x8632_invalidate_translation_caches(struct cpu *cpu, uint64_t, int);  void x8632_invalidate_translation_caches(struct cpu *cpu, uint64_t, int);
306  void x86_invalidate_code_translation(struct cpu *cpu, uint64_t, int);  void x86_invalidate_code_translation(struct cpu *cpu, uint64_t, int);
307  void x8632_invalidate_code_translation(struct cpu *cpu, uint64_t, int);  void x8632_invalidate_code_translation(struct cpu *cpu, uint64_t, int);
308    void x86_init_64bit_dummy_tables(struct cpu *cpu);
309  int x86_cpu_family_init(struct cpu_family *);  int x86_cpu_family_init(struct cpu_family *);
310    
311    

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

  ViewVC Help
Powered by ViewVC 1.1.26