/[qemu]/qemu/translate-i386.c
ViewVC logotype

Diff of /qemu/translate-i386.c

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

revision 1.43 by bellard, Tue Jun 24 13:20:53 2003 UTC revision 1.44 by bellard, Wed Jun 25 16:19:50 2003 UTC
# Line 4036  void cpu_x86_close(CPUX86State *env) Line 4036  void cpu_x86_close(CPUX86State *env)
4036    
4037  /***********************************************************/  /***********************************************************/
4038  /* x86 mmu */  /* x86 mmu */
4039    /* XXX: add PGE support */
4040    
4041  /* called when cr3 or PG bit are modified */  /* called when cr3 or PG bit are modified */
4042  static int last_pg_state = -1;  static int last_pg_state = -1;
# Line 4091  void cpu_x86_init_mmu(CPUX86State *env) Line 4092  void cpu_x86_init_mmu(CPUX86State *env)
4092      cpu_x86_update_cr0(env);      cpu_x86_update_cr0(env);
4093  }  }
4094    
4095    /* XXX: also flush 4MB pages */
4096  void cpu_x86_flush_tlb(CPUX86State *env, uint32_t addr)  void cpu_x86_flush_tlb(CPUX86State *env, uint32_t addr)
4097  {  {
4098        int flags;
4099        unsigned long virt_addr;
4100    
4101        flags = page_get_flags(addr);
4102        if (flags & PAGE_VALID) {
4103            virt_addr = addr & ~0xfff;
4104            munmap((void *)virt_addr, 4096);
4105            page_set_flags(virt_addr, virt_addr + 4096, 0);
4106        }
4107  }  }
4108    
4109  /* return value:  /* return value:

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26