aboutsummaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-09 08:25:14 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-09 08:25:14 +0000
commit60897d369f10b464720d8a6de4553c47943ea927 (patch)
tree776af7d1e6636104314a1ef179ddd63ab89095fc /cpu-all.h
parentc58411661274631e2687deedd1597a34bfd38e2a (diff)
downloadqemu-60897d369f10b464720d8a6de4553c47943ea927.zip
qemu-60897d369f10b464720d8a6de4553c47943ea927.tar.gz
qemu-60897d369f10b464720d8a6de4553c47943ea927.tar.bz2
Debugger single step without interrupts (Jason Wessel).
This patch allows the qemu backend debugger to single step an instruction without running the hardware interrupts. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4391 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 2740da9..f1454d5 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -762,6 +762,11 @@ int cpu_watchpoint_insert(CPUState *env, target_ulong addr);
int cpu_watchpoint_remove(CPUState *env, target_ulong addr);
int cpu_breakpoint_insert(CPUState *env, target_ulong pc);
int cpu_breakpoint_remove(CPUState *env, target_ulong pc);
+
+#define SSTEP_ENABLE 0x1 /* Enable simulated HW single stepping */
+#define SSTEP_NOIRQ 0x2 /* Do not use IRQ while single stepping */
+#define SSTEP_NOTIMER 0x4 /* Do not Timers while single stepping */
+
void cpu_single_step(CPUState *env, int enabled);
void cpu_reset(CPUState *s);