diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-03-16 23:58:11 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-03-16 23:58:11 +0000 |
commit | 6658ffb81ee56a510d7d77025872a508a9adce3a (patch) | |
tree | 6cd595ce75c8cf82c7d38e997fdfd09de4fafefb /cpu-exec.c | |
parent | b35d7448b1d27a77bc6f59acc697710d5bd3823c (diff) |
Watchpoint support (previous commit got eaten by Savannah server crash).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2479 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu-exec.c b/cpu-exec.c index 058688fc77..48c2a93a79 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -409,6 +409,11 @@ int cpu_exec(CPUState *env1) #endif interrupt_request = env->interrupt_request; if (__builtin_expect(interrupt_request, 0)) { + if (interrupt_request & CPU_INTERRUPT_DEBUG) { + env->interrupt_request &= ~CPU_INTERRUPT_DEBUG; + env->exception_index = EXCP_DEBUG; + cpu_loop_exit(); + } #if defined(TARGET_I386) if ((interrupt_request & CPU_INTERRUPT_SMI) && !(env->hflags & HF_SMM_MASK)) { |