/[qemu]/qemu/cpu-exec.c
ViewVC logotype

Diff of /qemu/cpu-exec.c

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

revision 1.17 by bellard, Tue Sep 30 20:57:29 2003 UTC revision 1.18 by bellard, Mon Oct 27 21:13:06 2003 UTC
# Line 225  int cpu_exec(CPUState *env1) Line 225  int cpu_exec(CPUState *env1)
225                      cpu_arm_dump_state(env, logfile, 0);                      cpu_arm_dump_state(env, logfile, 0);
226                      env->cpsr &= ~0xf0000000;                      env->cpsr &= ~0xf0000000;
227  #elif defined(TARGET_SPARC)  #elif defined(TARGET_SPARC)
228                                          cpu_sparc_dump_state (env, logfile, 0);                      cpu_sparc_dump_state (env, logfile, 0);
229  #else  #else
230  #error unsupported target CPU  #error unsupported target CPU
231  #endif  #endif
# Line 273  int cpu_exec(CPUState *env1) Line 273  int cpu_exec(CPUState *env1)
273                      tb->tc_ptr = tc_ptr;                      tb->tc_ptr = tc_ptr;
274                      tb->cs_base = (unsigned long)cs_base;                      tb->cs_base = (unsigned long)cs_base;
275                      tb->flags = flags;                      tb->flags = flags;
276                        /* XXX: an MMU exception can occur here */
277                      cpu_gen_code(env, tb, CODE_GEN_MAX_SIZE, &code_gen_size);                      cpu_gen_code(env, tb, CODE_GEN_MAX_SIZE, &code_gen_size);
278                      *ptb = tb;                      *ptb = tb;
279                      tb->hash_next = NULL;                      tb->hash_next = NULL;
# Line 456  static inline int handle_cpu_signal(unsi Line 457  static inline int handle_cpu_signal(unsi
457          return 1;          return 1;
458      }      }
459      /* see if it is an MMU fault */      /* see if it is an MMU fault */
460      ret = cpu_x86_handle_mmu_fault(env, address, is_write);      ret = cpu_x86_handle_mmu_fault(env, address, is_write,
461                                       ((env->hflags & HF_CPL_MASK) == 3), 0);
462      if (ret < 0)      if (ret < 0)
463          return 0; /* not an MMU fault */          return 0; /* not an MMU fault */
464      if (ret == 0)      if (ret == 0)

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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